Atlas / MCP servers / getsentry / Sentry

SentryBLOCK

mcp/getsentry/sentry-5

An MCP server for interacting with Sentry via LLMs.

Verdict
BLOCK
Grade
F
Trust score
41 /100
Exposed tools
3 3r · 0w · 0d
Transport
stdio · streamable-http
License
NOASSERTION
Stars
864
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

Sentry's MCP service is primarily designed for human-in-the-loop coding agents. Our tool selection and priorities are focused on developer workflows and debugging use cases, rather than providing a general-purpose MCP server for all Sentry functionality.

This remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools. It's based on Cloudflare's work towards remote MCPs.

Getting Started

You'll find everything you need to know by visiting the deployed service in production:

If you're looking to contribute, learn how it works, or to run this for self-hosted Sentry, continue below.

Claude Code Plugin

Install as a Claude Code plugin for automatic subagent delegation:

claude plugin marketplace add getsentry/sentry-mcp
claude plugin install sentry-mcp@sentry-mcp

This provides a sentry-mcp subagent that Claude automatically delegates to when you ask about Sentry errors, issues, traces, or performance.

For forward-looking tool variants and features:

claude plugin install sentry-mcp@sentry-mcp-experimental

Stdio vs Remote

While this repository is focused on acting as an MCP service, we also support a stdio transport. This is still a work in progress, but is the easiest way to adapt run the MCP against a self-hosted Sentry install.

Note: The AI-powered search tools (search_events, search_issues, etc.) require an LLM provider (OpenAI, Azure OpenAI, Anthropic, or OpenRouter). These tools use natural language processing to translate queries into Sentry's query syntax. Without a configured provider, these specific tools will be unavailable, but all other tools will function normally.

To utilize the stdio transport, you'll need to create an User Auth Token in Sentry with the necessary scopes. As of writing this is

Read from source at commit 310dfd43d61dOBSERVED · 2026-09-27
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (npm)
claude mcp add mcp-server --env SENTRY_ACCESS_TOKEN=${SENTRY_ACCESS_TOKEN} -- npx -y @sentry/[email protected]
03

Exposed tools (3)

3 read · 0 write · 0 destructive.

ToolRiskDescription
DocumentationreadDeprecated legacy docs-only grant. Documentation tools are now available through Inspect Issues & Events.
SeerreadSentry
SentryreadConnect your Sentry account to search, analyze, and manage errors and performance issues across your applications.
04

Trust audit

BLOCKgrade F · trust 41/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (4 observation(s))
Network
declared (5 observation(s))
Shell
declared (5 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
packages/mcp-cloudflare/worker-configuration.d.ts:2279
exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
packages/mcp-cloudflare/worker-configuration.d.ts:7051
exec(query: string): Promise<D1ExecResult>;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
packages/mcp-server/src/auth/device-code-flow.ts:160
exec(`open ${JSON.stringify(url)}`);
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
packages/mcp-server/src/auth/device-code-flow.ts:162
exec(`start "" ${JSON.stringify(url)}`);
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
packages/mcp-server/src/auth/device-code-flow.ts:165
exec(`cmd.exe /c start "" ${JSON.stringify(url)}`);
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMInventory / provenance · inv.symlink · CWE-1104
.claude/skills
.claude/skills
Why it matters. link not followed
MEDIUMInventory / provenance · inv.symlink · CWE-1104
.cursor/skills
.cursor/skills
Why it matters. link not followed
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
packages/mcp-core/scripts/measure-token-cost.ts:219
console.log(`✅ Token stats written to: ${absolutePath}`);
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
packages/mcp-server/src/cli/commands/auth.ts:73
console.log(`Logged out (removed cached token for ${cached.user_email}).`);
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
packages/mcp-core/src/telem/sentry.test.ts:69
apiKey: "sk-abc123def456ghi789jkl012mno345pqr678stu901vwx234",
LOWInventory / provenance · inv.hidden_file · CWE-1104
.craft.yml
.craft.yml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
openspec/changes/refine-project-management-tools/.openspec.yaml
.openspec.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
packages/mcp-test-client/.env.test
.env.test
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.symlink · CWE-1104
CLAUDE.md
CLAUDE.md
Why it matters. link not followed
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
.github/workflows/token-cost.yml:119
if [ -f ../../main-stats/token-stats.json ]; then
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
.github/workflows/token-cost.yml:120
MAIN_TOKENS=$(jq -r '.total_tokens' ../../main-stats/token-stats.json)
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/mcp-cloudflare/src/client/components/animation/browser-ui/BrowserWindowIconSidebar.tsx:8
import { SentryIcon } from "../../ui/icons/sentry";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/mcp-cloudflare/src/client/components/chat/chat-messages.tsx:7
import { isAuthError, getErrorMessage } from "../../utils/chat-error-handler";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/mcp-cloudflare/src/client/components/chat/chat-messages.tsx:8
import { useAuth } from "../../contexts/auth-context";
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/testing/remote.md:199
MCP_OAUTH_REDIRECT_URI=http://192.168.1.20:8765/callback \
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
packages/mcp-cloudflare/src/server/lib/html-utils.test.ts:87
["http://127.0.0.1:8765/callback", "loopback"],
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
packages/mcp-cloudflare/src/server/lib/redirect-uri.test.ts:16
isRegisteredRedirectUri("http://127.0.0.1:62210/callback", [
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
packages/mcp-cloudflare/src/server/lib/redirect-uri.test.ts:17
"http://127.0.0.1/callback",
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
packages/mcp-cloudflare/src/server/lib/redirect-uri.test.ts:40
isRegisteredRedirectUri("http://127.0.0.1:3118/callback", [
LOWNetwork egress · net.tls_off · CWE-200, CWE-319
packages/mcp-server/src/cli/parse.test.ts:9
"--insecure-http",
Why it matters. certificate verification is disabled
Fix. leave verification on

Gates applied: no_behavioural_pass.

Audited 2026-09-27 · audit v0.4.1 · source sha 310dfd43d61dfull audit observations/trust-audit/mcp-server/getsentry__sentry-5.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-27310dfd43d61dBLOCKF41first audit
06

Questions

What is the Sentry MCP server?

An MCP server for interacting with Sentry via LLMs.

What tools does Sentry expose?

3 in total: 3 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Sentry safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (41/100) and found 5 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does Sentry need?

It reads ANTHROPIC_API_KEY, MCP_OAUTH_REDIRECT_URI, OPENAI_API_KEY, OPENROUTER_API_KEY, SENTRY_ACCESS_TOKEN, SENTRY_MCP_AUTH_CACHE and SENTRY_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Sentry run?

It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @sentry/mcp-smoke-tests at 0.42.0.

How current is this page?

The grade is for one exact copy of the source (310dfd43d61d), read on 2026-09-27. The repository is watched and re-audited when it changes.

Advertisement