Integration

Claude Code + Sentry

With Sentry's official MCP, your agent reads real production errors (issues, stack traces, events) and cross-references them with your local code, so diagnosis stops being copying and pasting traces.

Updated 2026-07-27

What you can do

ActionWhat it is for
Search issuesFind the errors that affect users the most.
Read an issue's detailBring the full stack trace into the agent's context.
List projectsWork on the right project when you manage several clients.
Query eventsSee the frequency and context of a failure over time.

How to connect it

  1. 01Have access to the project in Sentry with read permissions.
  2. 02Add Sentry's official MCP server to your client following its documentation.
  3. 03Authorize with your Sentry account.
  4. 04Test by asking for the most frequent issues of the last week.

Agency use case

From the production error to a proposed fix

  1. 1.You ask the agent for the project's most frequent error.
  2. 2.It brings in the issue and its stack trace through the MCP.
  3. 3.It cross-references the trace with the local repo's files and finds the cause.
  4. 4.It proposes the fix and you review it before applying it.

What you will trip over

  • Stack traces can carry user data. Watch what context goes to the agent if you handle sensitive information.
  • Read access is enough to diagnose: you don't need write permissions in Sentry.
  • Confirm the project before diagnosing when you manage several clients.

FAQ

Frequently asked questions

Does it work if my app isn't JavaScript?+

Yes. Sentry covers many languages and the MCP exposes the issues the same way, regardless of the app's stack.