# Sentry (MCP Server)

> Search Sentry errors, issues and traces and debug them with Seer

- Type: MCP server
- Publisher: Sentry (official)
- Categories: Development, DevOps & Cloud
- Website: https://mcp.sentry.dev/
- Source: https://github.com/getsentry/sentry-mcp
- Transport: streamable-http
- Server URL: https://mcp.sentry.dev/mcp
- Launch command: npx @sentry/mcp-server@latest --access-token=$SENTRY_ACCESS_TOKEN
- Sign-in: oauth
- Environment variables: SENTRY_ACCESS_TOKEN
- GitHub stars: 875
- Listed: 2025-04-01

## About

Sentry's official MCP server lets coding agents search errors and events, triage issues, analyze performance and read Sentry docs. The hosted server at mcp.sentry.dev uses OAuth and can be scoped to an organization or project; a stdio package is available for self-hosted Sentry using an access token. AI-powered search tools require an LLM provider key when run locally.

## Install

1. **Connect it in ChatGPT** Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://mcp.sentry.dev/mcp as the MCP server URL, then sign in with OAuth. Add it to a chat from the composer's tools menu.

2. **Or add it to Codex or the API**

   Codex CLI:

   ```bash
   codex mcp add sentry --url https://mcp.sentry.dev/mcp
   codex mcp login sentry
   ```

   config.toml:

   ```toml
   [mcp_servers.sentry]
   url = "https://mcp.sentry.dev/mcp"
   ```

   Responses API:

   ```python
   import os
   from openai import OpenAI
   
   client = OpenAI()
   
   response = client.responses.create(
       model="gpt-6-astra",
       tools=[{
           "type": "mcp",
           "server_label": "sentry",
           "server_url": "https://mcp.sentry.dev/mcp",
           "authorization": os.environ["SENTRY_ACCESS_TOKEN"],
           "require_approval": "never",
       }],
       input="What are the top unresolved issues in my frontend project this week?",
   )
   print(response.output_text)
   ```

## Tools

- `search_events`
- `search_issues`

## Example prompts

- "What are the top unresolved issues in my frontend project this week?"
- "Show me the stack trace for the latest TypeError in production"
- "Search events for 500 errors on /api/checkout in the last 24 hours"
- "Help me fix the most frequent error in this project"

## Also available as

- plugin: [Sentry](https://chatgptplugins.directory/plugins/sentry.md)

## Related

- [Chrome DevTools MCP](https://chatgptplugins.directory/mcp/chrome-devtools.md): Let coding agents control and debug a live Chrome browser
- [Playwright MCP](https://chatgptplugins.directory/mcp/playwright.md): Browser automation for agents via Playwright accessibility snapshots
- [GitHub](https://chatgptplugins.directory/mcp/github.md): Manage repos, issues, pull requests and Actions from your AI agent
- [Context7](https://chatgptplugins.directory/mcp/context7.md): Pull up-to-date, version-specific library docs into your coding agent
- [Supabase](https://chatgptplugins.directory/mcp/supabase.md): Manage Supabase databases, migrations, edge functions and logs
- [Stripe](https://chatgptplugins.directory/mcp/stripe.md): Query and act on your Stripe account and search Stripe docs from any agent

---
Source: https://chatgptplugins.directory/mcp/sentry · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
