Sentry
MCP server by getsentry Community
Connects AI assistants to Sentry for error monitoring, issue tracking and debugging. It is built for coding agents such as Claude Code and Codex. It runs as a remote server or as a local stdio command through the Sentry CLI.
Install Sentry
Built from the published package, never by AI.
claude mcp add sentry -- npx -y @sentry/mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"sentry": {
"args": [
"-y",
"@sentry/mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"sentry": {
"args": [
"-y",
"@sentry/mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"sentry": {
"args": [
"-y",
"@sentry/mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add sentry -- npx -y @sentry/mcp-server{
"mcpServers": {
"sentry": {
"args": [
"-y",
"@sentry/mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add sentry npx -y @sentry/mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the sentry block.
About
The Sentry MCP server connects AI assistants to Sentry's error monitoring, issue tracking and debugging data. It acts as middleware to the upstream Sentry API. It is available as a remote server at mcp.sentry.dev, and as a stdio server started with the Sentry CLI's sentry mcp command.
Sentry says the service is primarily designed for human-in-the-loop coding agents, such as Claude Code, Codex and Grok Build, rather than as a general-purpose server for all Sentry functionality. The AI-powered search tools need an LLM provider such as OpenAI, Azure OpenAI, Anthropic or OpenRouter, while other tools work without one. It also supports self-hosted Sentry and can be limited to one organization or project.
Written from the project's README and checked against it.
Tools it gives your assistant
search_errorsAI-powered search that translates natural language into Sentry's query syntax for errors.search_tracesAI-powered search that translates natural language into Sentry's query syntax for traces.search_logsAI-powered search that translates natural language into Sentry's query syntax for logs.search_issuesAI-powered search that translates natural language into Sentry's query syntax for issues.
What you need
- A Sentry account or user auth token
- Sentry CLI, or npx for the legacy package
- An LLM provider API key for the AI search tools (OpenAI, Azure OpenAI, Anthropic or OpenRouter)
| Setting | Needed | What it is |
|---|---|---|
SENTRY_Environment variable, secret | Optional | Sentry auth token. Optional after `npx -y @sentry/mcp-server auth login`. |
SENTRY_Environment variable | Optional | Self-hosted Sentry hostname or URL. Takes precedence over SENTRY_URL. Defaults to sentry.io. |
SENTRY_Environment variable | Optional | Self-hosted Sentry URL, such as https://sentry.example.com. Defaults to sentry.io. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Search Sentry for errors from the checkout service in the last day
- Find slow traces for the API service from this week
- Show Sentry issues about database timeouts
Good to know
- AI-powered search tools are unavailable without a configured LLM provider.
- Tool calls are subject to Sentry API rate limits, so run them one at a time if rate limited.
- Seer is not part of self-hosted Sentry, so the seer skill is left out by default on self-hosted hosts.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl https://cli.sentry.dev/install -fsS | bash
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Sentry
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Sentry: common questions
Does the Sentry MCP server work with self-hosted Sentry?
Yes. The source says to log in with sentry auth login --url and set SENTRY_HOST, or use SENTRY_URL for plain HTTP deployments.
Which AI-powered search tools need an LLM provider?
The source names search_errors, search_traces, search_logs and search_issues as requiring an LLM provider such as OpenAI, Azure OpenAI, Anthropic or OpenRouter. All other tools work without one.
Is this a general-purpose server for all Sentry features?
No. The source says the service is primarily designed for human-in-the-loop coding agents, and its tool selection focuses on developer workflows and debugging.
How do I install Sentry?
In Claude Code run claude mcp add sentry -- npx -y @sentry/mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Sentry the official server?
Sentry is a community project by getsentry, not verified by a company domain.
Is Sentry free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is Sentry safe to use?
It scores 88 of 100. Grades: maintenance A, licence F, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to Sentry?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Sentry work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
