Skip to content

MCP server

Sentry MCP server

Sentry's official MCP server lets AI search errors, events and traces, read issue details, get AI analysis and update issues.

At a glance

Maintained by
Sentry
Tools exposed
10 listed below
Reviewed
September 24, 2026

Why it matters

What it does and why it matters

Sentry collects errors and performance traces from applications. Its official MCP server lets an assistant search issues and events, read issue details and traces, run Sentry's own AI analysis and update issues. Combined with a code server, an assistant can go from an error report to the line of code that caused it.

That shortens the time between "users see an error" and "a developer understands it".

It replaces the archived MCP reference server. Most tools read data, but it can also update issues and create projects, teams and keys. Use an account with access only to the projects a team works on. Error events can contain personal data, so check your data scrubbing settings in Sentry.

Use cases

Best business use cases

Error investigation

Explain a new error and find related events.

Trace review

Read a slow trace and find the bottleneck.

Issue triage

Summarize this week's top issues.

AI analysis

Run Sentry's own analysis on an issue.

Docs lookup

Search Sentry documentation.

Tools

Available tools

Tool names as published by the maintainer at review time. Versions change, so check the repository for the current list.

Read and write: Mostly read: searches errors, traces and issues; can also update issues and create projects, teams and DSNs.

  • whoami

    Identify the signed-in Sentry user.

  • find_organizations

    Find organizations you can access.

  • find_projects

    Find projects in Sentry.

  • search_issues

    Search issues using plain language or Sentry syntax.

  • search_events

    Search events using plain language or Sentry syntax.

  • get_issue_details

    Get details about a specific issue.

  • get_trace_details

    Get details about a specific trace.

  • analyze_issue_with_seer

    Use Seer to find the root cause and suggest code fixes.

  • update_issue

    Change an issue's status or assignment.

  • search_docs

    Search Sentry documentation.

Workflows

Example workflows

From error to fix

  1. 1

    A new issue appears after a release.

  2. 2

    The assistant reads the issue and stack trace.

  3. 3

    It uses the GitHub server to open the code.

  4. 4

    It explains the cause and drafts a fix.

  5. 5

    A developer reviews and merges.

Weekly error review

  1. 1

    Ask for the top issues this week.

  2. 2

    The assistant lists them by frequency.

  3. 3

    It groups related errors.

  4. 4

    It suggests owners.

  5. 5

    The team plans work.

Prompts

Example prompts

  • “What are the five most frequent errors in the web project this week?”

  • “Explain this issue and show the line of code that throws it.”

  • “Why is the checkout trace slow?”

Setup

Installation and configuration

Examples for Claude Desktop and Claude Code. Replace the placeholder values with your own keys, and store secrets outside version control.

Claude Desktop: claude_desktop_config.json

{
    "mcpServers": {
        "sentry": {
            "command": "npx",
            "args": [
                "@sentry/mcp-server"
            ],
            "env": {
                "SENTRY_ACCESS_TOKEN": "your-token",
                "EMBEDDED_AGENT_PROVIDER": "openai",
                "OPENAI_API_KEY": "sk-..."
            }
        }
    }
}

Claude Code: terminal

claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
  • Hosted server: streamable-http; https://mcp.sentry.dev/mcp; OAuth, or header Authorization: Sentry-Bearer <SENTRY_ACCESS_TOKEN>.
  • Local server: stdio; @sentry/mcp-server.
  • Needs: SENTRY_ACCESS_TOKEN (local); EMBEDDED_AGENT_PROVIDER plus OPENAI_API_KEY / ANTHROPIC_API_KEY / OPENROUTER_API_KEY for AI search tools (local); SENTRY_HOST for self-hosted.

Security

Security considerations

  • Project access

    Limit the account to relevant projects.

  • Personal data in events

    Check Sentry data scrubbing settings.

  • Write actions

    Updating issues and creating keys should be reviewed.

  • Audit

    Review changes made through the assistant.

Related servers

Servers that pair well with it

GitHub

GitHub's official MCP server lets AI read repositories, search code, manage issues and pull requests and, when allowed, change files.

GitLab

GitLab's built-in MCP server lets AI read projects, code, merge requests and pipelines and create commits and work items. In beta.

Elasticsearch

Elastic's Agent Builder MCP endpoint lets AI search indices, run ES|QL queries and read mappings and documents in Elasticsearch.

Keep exploring

FAQ

Questions people ask us

Have a question that is not here? Ask us directly.

Start a project

Want this connected to your own systems? We build AI workflows with MCP.

Send a short brief. We reply with questions, a suggested plan and an estimate you can compare with other offers.

Your privacy choices

We use necessary storage to run this site. With your permission we also use Google Analytics to see which pages help people, and load maps from Google. You can change this at any time. Read the cookie policy.