{"id":27062914,"url":"https://github.com/getsentry/sentry-mcp","last_synced_at":"2026-04-01T17:36:23.117Z","repository":{"id":286774002,"uuid":"957245447","full_name":"getsentry/sentry-mcp","owner":"getsentry","description":"An MCP server for interacting with Sentry via LLMs.","archived":false,"fork":false,"pushed_at":"2026-03-27T03:50:56.000Z","size":29482,"stargazers_count":611,"open_issues_count":74,"forks_count":96,"subscribers_count":27,"default_branch":"main","last_synced_at":"2026-03-27T11:14:40.991Z","etag":null,"topics":["mcp-server","tag-production"],"latest_commit_sha":null,"homepage":"https://mcp.sentry.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getsentry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"custom":["https://sentry.io/pricing/","https://sentry.io/"]}},"created_at":"2025-03-29T22:23:13.000Z","updated_at":"2026-03-27T09:50:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fa2b4e0-4a65-4f28-bad1-2912ba616779","html_url":"https://github.com/getsentry/sentry-mcp","commit_stats":null,"previous_names":["getsentry/sentry-mcp"],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/getsentry/sentry-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getsentry","download_url":"https://codeload.github.com/getsentry/sentry-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mcp-server","tag-production"],"created_at":"2025-04-05T16:00:28.670Z","updated_at":"2026-04-01T17:36:23.093Z","avatar_url":"https://github.com/getsentry.png","language":"TypeScript","readme":"# sentry-mcp\n\nSentry's MCP service is primarily designed for human-in-the-loop coding agents. Our tool selection and priorities are focused on developer workflows and debugging use cases, rather than providing a general-purpose MCP server for all Sentry functionality.\n\nThis remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools. It's based on [Cloudflare's work towards remote MCPs](https://blog.cloudflare.com/remote-model-context-protocol-servers-mcp/).\n\n## Getting Started\n\nYou'll find everything you need to know by visiting the deployed service in production:\n\n\u003chttps://mcp.sentry.dev\u003e\n\nIf you're looking to contribute, learn how it works, or to run this for self-hosted Sentry, continue below.\n\n### Claude Code Plugin\n\nInstall as a Claude Code plugin for automatic subagent delegation:\n\n```shell\nclaude plugin marketplace add getsentry/sentry-mcp\nclaude plugin install sentry-mcp@sentry-mcp\n```\n\nThis provides a `sentry-mcp` subagent that Claude automatically delegates to when you ask about Sentry errors, issues, traces, or performance.\n\nFor forward-looking tool variants and features:\n\n```shell\nclaude plugin install sentry-mcp@sentry-mcp-experimental\n```\n\n### Stdio vs Remote\n\nWhile this repository is focused on acting as an MCP service, we also support a `stdio` transport. This is still a work in progress, but is the easiest way to adapt run the MCP against a self-hosted Sentry install.\n\n**Note:** The AI-powered search tools (`search_events`, `search_issues`, etc.) require an LLM provider (OpenAI or Anthropic). These tools use natural language processing to translate queries into Sentry's query syntax. Without a configured provider, these specific tools will be unavailable, but all other tools will function normally.\n\nTo utilize the `stdio` transport, you'll need to create an User Auth Token in Sentry with the necessary scopes. As of writing this is:\n\n```\norg:read\nproject:read\nproject:write\nteam:read\nteam:write\nevent:write\n```\n\nLaunch the transport:\n\n```shell\nnpx @sentry/mcp-server@latest --access-token=sentry-user-token\n```\n\nNeed to connect to a self-hosted deployment? Add \u003ccode\u003e--host\u003c/code\u003e (hostname\nonly, e.g. \u003ccode\u003e--host=sentry.example.com\u003c/code\u003e) when you run the command.\n\nSome features (like Seer) may not be available on self-hosted instances. You can\ndisable specific skills to prevent unsupported tools from being exposed:\n\n```shell\nnpx @sentry/mcp-server@latest --access-token=TOKEN --host=sentry.example.com --disable-skills=seer\n```\n\n#### Environment Variables\n\n```shell\nSENTRY_ACCESS_TOKEN=         # Required: Your Sentry auth token\n\n# LLM Provider Configuration (required for AI-powered search tools)\nEMBEDDED_AGENT_PROVIDER=     # Required: 'openai' or 'anthropic'\nOPENAI_API_KEY=              # Required if using OpenAI\nANTHROPIC_API_KEY=           # Required if using Anthropic\n\n# Optional overrides\nSENTRY_HOST=                 # For self-hosted deployments\nMCP_DISABLE_SKILLS=          # Disable specific skills (comma-separated, e.g. 'seer')\n```\n\n**Important:** Always set `EMBEDDED_AGENT_PROVIDER` to explicitly specify your LLM provider. Auto-detection based on API keys alone is deprecated and will be removed in a future release. See [docs/embedded-agents.md](docs/embedded-agents.md) for detailed configuration options.\n\n#### Example MCP Configuration\n\n```json\n{\n  \"mcpServers\": {\n    \"sentry\": {\n      \"command\": \"npx\",\n      \"args\": [\"@sentry/mcp-server\"],\n      \"env\": {\n        \"SENTRY_ACCESS_TOKEN\": \"your-token\",\n        \"EMBEDDED_AGENT_PROVIDER\": \"openai\",\n        \"OPENAI_API_KEY\": \"sk-...\"\n      }\n    }\n  }\n}\n```\n\nIf you leave the host variable unset, the CLI automatically targets the Sentry\nSaaS service. Only set the override when you operate self-hosted Sentry.\n\nFor self-hosted instances that don't support Seer:\n\n```json\n{\n  \"mcpServers\": {\n    \"sentry\": {\n      \"command\": \"npx\",\n      \"args\": [\"@sentry/mcp-server\"],\n      \"env\": {\n        \"SENTRY_ACCESS_TOKEN\": \"your-token\",\n        \"SENTRY_HOST\": \"sentry.example.com\",\n        \"MCP_DISABLE_SKILLS\": \"seer\"\n      }\n    }\n  }\n}\n```\n\n### MCP Inspector\n\nMCP includes an [Inspector](https://modelcontextprotocol.io/docs/tools/inspector), to easily test the service:\n\n```shell\npnpm inspector\n```\n\nEnter the MCP server URL (\u003chttp://localhost:5173\u003e) and hit connect. This should trigger the authentication flow for you.\n\nNote: If you have issues with your OAuth flow when accessing the inspector on `127.0.0.1`, try using `localhost` instead by visiting `http://localhost:6274`.\n\n## Local Development\n\nTo contribute changes, you'll need to set up your local environment:\n\n1. **Set up environment and agent skills:**\n\n   ```shell\n   make setup-env  # Creates .env files and installs shared agent skills\n   ```\n\n   This also runs `npx @sentry/dotagents install` to install shared skills from [getsentry/skills](https://github.com/getsentry/skills) into `.agents/skills/` (symlinked into `.claude/skills` and `.cursor/skills`). If you need to update skills later, run it directly:\n\n   ```shell\n   npx @sentry/dotagents install\n   ```\n\n2. **Create an OAuth App in Sentry** (Settings =\u003e API =\u003e [Applications](https://sentry.io/settings/account/api/applications/)):\n\n   - Homepage URL: `http://localhost:5173`\n   - Authorized Redirect URIs: `http://localhost:5173/oauth/callback`\n   - Note your Client ID and generate a Client secret\n\n3. **Configure your credentials:**\n\n   - Edit `.env` in the root directory and add your `OPENAI_API_KEY`\n   - Edit `packages/mcp-cloudflare/.env` and add:\n     - `SENTRY_CLIENT_ID=your_development_sentry_client_id`\n     - `SENTRY_CLIENT_SECRET=your_development_sentry_client_secret`\n     - `COOKIE_SECRET=my-super-secret-cookie`\n\n4. **Start the development server:**\n\n   ```shell\n   pnpm dev\n   ```\n\n### Verify\n\nRun the server locally to make it available at `http://localhost:5173`\n\n```shell\npnpm dev\n```\n\nTo test the local server, enter `http://localhost:5173/mcp` into Inspector and hit connect. Once you follow the prompts, you'll be able to \"List Tools\".\n\n### Tests\n\nThere are three test suites included: unit tests, evaluations, and manual testing.\n\n**Unit tests** can be run using:\n\n```shell\npnpm test\n```\n\n**Evaluations** require a `.env` file in the project root with some config:\n\n```shell\n# .env (in project root)\nOPENAI_API_KEY=  # Also required for AI-powered search tools in production\n```\n\nNote: The root `.env` file provides defaults for all packages. Individual packages can have their own `.env` files to override these defaults during development.\n\nOnce that's done you can run them using:\n\n```shell\npnpm eval\n```\n\n**Manual testing** (preferred for testing MCP changes):\n\n```shell\n# Test with local dev server (default: http://localhost:5173)\npnpm -w run cli \"who am I?\"\n\n# Test agent mode (use_sentry tool only)\npnpm -w run cli --agent \"who am I?\"\n\n# Test against production\npnpm -w run cli --mcp-host=https://mcp.sentry.dev \"query\"\n\n# Test with local stdio mode (requires SENTRY_ACCESS_TOKEN)\npnpm -w run cli --access-token=TOKEN \"query\"\n```\n\nNote: The CLI defaults to `http://localhost:5173`. Override with `--mcp-host` or set `MCP_URL` environment variable.\n\n**Comprehensive testing playbooks:**\n- **Stdio testing:** See `docs/testing-stdio.md` for complete guide on building, running, and testing the stdio implementation (IDEs, MCP Inspector)\n- **Remote testing:** See `docs/testing-remote.md` for complete guide on testing the remote server (OAuth, web UI, CLI client)\n\n## Development Notes\n\n### Automated Code Review\n\nThis repository uses automated code review tools (like Cursor BugBot) to help identify potential issues in pull requests. These tools provide helpful feedback and suggestions, but **we do not recommend making these checks required** as the accuracy is still evolving and can produce false positives.\n\nThe automated reviews should be treated as:\n\n- ✅ **Helpful suggestions** to consider during code review\n- ✅ **Starting points** for discussion and improvement\n- ❌ **Not blocking requirements** for merging PRs\n- ❌ **Not replacements** for human code review\n\nWhen addressing automated feedback, focus on the underlying concerns rather than strictly following every suggestion.\n\n### Contributor Documentation\n\nLooking to contribute or explore the full documentation map? See `CLAUDE.md` (also available as `AGENTS.md`) for contributor workflows and the complete docs index. The `docs/` folder contains the per-topic guides and tool-integrated `.md` files.\n","funding_links":["https://sentry.io/pricing/","https://sentry.io/"],"categories":["Monitoring \u0026 Observability","🏢 Enterprise-Supported Implementations","Monitoring","可用服务","📚 Projects (1974 total)","پیاده‌سازی‌های سرور","Official Servers","Cloud Services","🌐 Web Development","📂 카테고리"],"sub_categories":["Video","Developer Tools","监控","MCP Servers","📊 \u003ca name=\"monitoring\"\u003e\u003c/a\u003eنظارت","📊 Monitoring"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fsentry-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetsentry%2Fsentry-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fsentry-mcp/lists"}