Sentry MCP for Claude Code: Setup & Config
Claude Code: Sentry MCP brings production issues, events, and traces into coding-assistant workflows.
What you can do with Sentry in Claude Code
Bring Sentry investigation and issue triage directly into a human-guided coding session.
- Resolve, reopen, ignore, or assign issues.
- Search event statistics and retrieve trace resources.
- Request Seer analysis for an issue.
Before you start: Sentry in Claude Code
- Node.js with npx
- Sentry user token
- LLM provider credentials for AI-powered search
This is the README stdio configuration. Required token scopes are event:write, project:write, team:read, org:read, team:write, and project:read. Remote access is also documented at https://mcp.sentry.dev/mcp. Use --host for self-hosted Sentry; unsupported skills can be disabled.
Sentry Claude Code configuration
Choose Claude Code configuration scope
For Sentry MCP, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.
Add Sentry MCP to Claude Code
Use the sentry-mcp entry below in mcpServers. Keep Sentry MCP's documented stdio connection fields and your other Claude Code entries.
Check Sentry MCP in Claude Code
Sentry MCP: Inspect claude mcp list and /mcp status.
Config file · Project scope: .mcp.json at the repository root
{
"mcpServers": {
"sentry-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"@sentry/mcp-server"
],
"env": {
"SENTRY_ACCESS_TOKEN": "<Sentry user auth token with documented scopes>",
"EMBEDDED_AGENT_PROVIDER": "<Explicit LLM provider for AI-powered search>",
"OPENAI_API_KEY": "<OpenAI key if selecting OpenAI>"
}
}
}
}claude mcp add-json --scope project 'sentry-mcp' '{"type":"stdio","command":"npx","args":["@sentry/mcp-server"],"env":{"SENTRY_ACCESS_TOKEN":"<Sentry user auth token with documented scopes>","EMBEDDED_AGENT_PROVIDER":"<Explicit LLM provider for AI-powered search>","OPENAI_API_KEY":"<OpenAI key if selecting OpenAI>"}}'Sentry tools available to Claude Code
Sentry's stored tool list documents 9 tools; compare it with Claude Code's connected tool list, because the stored list is not a live check.
- find_organizations
For Sentry's find_organizations, review the permission request and arguments in Claude Code before approval.
- find_projects
For Sentry's find_projects, review the permission request and arguments in Claude Code before approval.
- update_issue
For Sentry's update_issue, review the permission request and arguments in Claude Code before approval.
Change an issue status or assignment.
- search_events
For Sentry's search_events, review the permission request and arguments in Claude Code before approval.
Search events and replays, including statistical queries.
- analyze_issue_with_seer
For Sentry's analyze_issue_with_seer, review the permission request and arguments in Claude Code before approval.
Ask Seer to investigate an error and propose code fixes.
- search_issues
For Sentry's search_issues, review the permission request and arguments in Claude Code before approval.
- get_sentry_resource
For Sentry's get_sentry_resource, review the permission request and arguments in Claude Code before approval.
- search_sentry_tools
For Sentry's search_sentry_tools, review the permission request and arguments in Claude Code before approval.
Find additional operations in the Sentry MCP tool catalog.
- execute_sentry_tool
For Sentry's execute_sentry_tool, review the permission request and arguments in Claude Code before approval.
Run a discovered operation with arguments matching its schema.
Troubleshooting Sentry in Claude Code
- If Sentry MCP fails to start, check npx @sentry/mcp-server (Node.js/npm), the working directory, and Claude Code's selected scope; inspect claude mcp list and /mcp.
- Sentry MCP: check EMBEDDED_AGENT_PROVIDER, OPENAI_API_KEY, SENTRY_ACCESS_TOKEN; keep credentials out of shared .mcp.json.
- Sentry MCP uses stdio here: Claude Code must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
- Known limitation: AI-powered search needs an LLM provider.
- Known limitation: Some self-hosted deployments lack Seer.
- Known limitation: The README describes stdio support as work in progress.
- General Claude Code troubleshooting lives in the /clients/claude-code guide.
Sentry MCP — details. Claude Code guide