Sentry MCP in Claude Code
Got another Sentry issue? Run it first through your LLM agent!
Integrating Sentry in Claude Code with MCP is straightforward:
claude mcp add \
--transport stdio sentry \
--env SENTRY_ACCESS_TOKEN=xxx \
--env SENTRY_HOST=sentry.example.com \
-- \
npx @sentry/mcp-server@latest
stdiotransport means Claude interacts with the MCP server via standard input / output streams instead of networking.SENTRY_ACCESS_TOKENis, unsurprisingly, your Sentry token (/settings/account/api/auth-tokens/new-token/) with read access on every permissionsSENTRY_HOSTis useful if you use a self-hosted Sentry, like we do in my company@sentry/mcp-server@latestis the official MCP server distributed by Sentry
You should then be able to run claude and /mcp to test the connectivity.
Then you can gently ask Fix sentry issue PROJECT-CF1 🚀
By Thomas Martin
Follow me or comment