Data as of
Sentry MCP for Claude Code: Setup & Config
Claude Code: Sentry MCP brings production issues, events, and traces into coding-assistant workflows.
Sentry MCP 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 in Claude Code: stdio checks
- 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.
- Tools
- find_organizations, find_projects, update_issue
Sentry MCP — details. Claude Code guide
Frequently asked questions
Register Sentry MCP with the displayed claude mcp add-json --scope project command, or merge the JSON into .mcp.json at the repository root.
Claude Code's sentry-mcp example uses stdio.
Sentry MCP's Claude Code configuration invokes npx @sentry/mcp-server (Node.js/npm).
Claude Code's Sentry MCP example references EMBEDDED_AGENT_PROVIDER, OPENAI_API_KEY, SENTRY_ACCESS_TOKEN. Check these names if startup or authentication fails; the example alone does not distinguish required from optional values.
Sentry MCP's stored list contains 9 tools, including find_organizations, find_projects, update_issue. Compare those names with Claude Code's connected tool list; the stored list is not a live check.