---
title: How to connect Sentry MCP to Cursor
description: Add https://mcp.sentry.dev/mcp/<org>/<project> to .cursor/mcp.json and sign in. Skills, the main tools, approvals, a Sentry-Bearer token and self-hosted Sentry.
canonical: https://mcp1.com/blog/sentry-mcp-cursor
last-updated: 2026-12-01
---

# How to connect Sentry MCP to Cursor

Add https://mcp.sentry.dev/mcp/<org>/<project> to .cursor/mcp.json and sign in. Skills, the main tools, approvals, a Sentry-Bearer token and self-hosted Sentry.

![](https://avatars.githubusercontent.com/u/1297371?s=96&v=4)Eldad FuxFounder and CEO, Appwrite

 .cursor/mcp.json

"sentry": { "url": "https://mcp.sentry.dev/mcp/acme/web" }

sentryConnected

 .cursor/mcp.json

"sentry": { "url": "https://mcp.sentry.dev/mcp/acme/web" }

sentryConnected

To connect Sentry to Cursor, add `https://mcp.sentry.dev/mcp` to `.cursor/mcp.json`, enable the server under Customize and sign in to Sentry in the browser. Cursor’s agent can then search issues, read stack traces and traces, and fix the code they point to in the same chat. Add your organization and project slugs to the URL so it only sees the project you’re working on.

## How do I add the Sentry MCP server to Cursor?

Sentry hosts the server and signs you in with OAuth, so there is nothing to install and no token to paste.

1. 1Create `.cursor/mcp.json` in the repository, or `~/.cursor/mcp.json` for every project. Replace `acme` and `web` with your organization and project slugs:  
.cursor/mcp.json  
```  
{  
  "mcpServers": {  
    "sentry": {  
      "url": "https://mcp.sentry.dev/mcp/acme/web"  
    }  
  }  
}  
```
2. 2Open Customize in Cursor’s sidebar and enable sentry. A browser tab opens for Sentry’s sign-in and a consent screen where you pick which skills to grant.
3. 3Return to Cursor. The server shows as connected with its tools listed.

The Install in Cursor button on `mcp.sentry.dev` does the same at global scope, without the project in the URL. Its config is base64 for `{"url":"https://mcp.sentry.dev/mcp"}`:

Install link

```
cursor://anysphere.cursor-deeplink/mcp/install?name=Sentry&config=eyJ1cmwiOiJodHRwczovL21jcC5zZW50cnkuZGV2L21jcCJ9
```

Then ask for something that starts in Sentry and ends in your code:

Prompt

```
Find the most frequent unresolved error in acme/web since the last release,
show me its stack trace, and open the file in this repo where it starts.
Explain the cause before you change anything.
```

## Which Sentry tools does Cursor get?

Sentry groups its tools into skills. OAuth grants two by default: `inspect` (issues, events, traces, replays, releases, monitors, docs) and `seer` (Sentry’s root-cause analysis). `triage` and `project-management` are off unless you pick them. The tools a coding session uses most:

ToolWhat it does

`search_issues`

Finds issues from a plain-language description. Read.

`get_issue_details`

Reads one issue with its latest event. Read.

`get_event_stacktrace`

Returns an event’s stack trace. Read.

`search_errors`

Counts and groups errors. Read. search\_logs and search\_traces do the same for logs and spans.

`get_trace_details`

Reads a distributed trace across services. Read.

`find_releases`

Lists releases, to tie a spike to a deploy. Read.

`analyze_issue_with_seer`

Runs Seer’s root-cause analysis. Seer skill, depends on your plan.

`update_issue`

Resolves, ignores or assigns an issue. Triage skill, write.

`add_issue_note`

Comments on an issue. Triage skill, write.

To let the agent resolve the issue it just fixed, add the skills to the URL:

.cursor/mcp.json

```
{
  "mcpServers": {
    "sentry": {
      "url": "https://mcp.sentry.dev/mcp/acme/web?skills=inspect,seer,triage"
    }
  }
}
```

Leave `project-management` off. It brings `create_project`, `create_dsn`, `delete_alert_rule` and other tools a bug fix never needs.

## Does Cursor ask before running Sentry tools?

Yes, by default. Cursor asks before each MCP call and shows the arguments, so you see the issue ID and new status before `update_issue` runs. You can also switch off single tools by clicking them in the tools list. On team plans, admins can set an MCP allowlist under Team Settings, MCP Configuration, with a tool allowlist per server that decides which tools may run without asking. Put the `search_*`, `find_*` and `get_*` tools there and keep writes on manual approval. An empty tool list allows every tool.

## How do I share Sentry MCP with my team in Cursor?

Commit `.cursor/mcp.json`. It holds only the URL, so it is safe in git, and each teammate signs in with their own Sentry account and sees what their Sentry role allows. The skills each person grants are remembered per client, so put `?skills=` in the committed URL if you want everyone on the same set.

## Can I use a Sentry auth token instead of OAuth?

Yes, for headless runs or when the browser sign-in fails. Send the token with the `Sentry-Bearer` scheme; plain `Bearer` is reserved for Sentry’s OAuth tokens and is refused. Cursor fills `${env:NAME}` from your environment, so the token stays out of the file:

.cursor/mcp.json

```
{
  "mcpServers": {
    "sentry": {
      "url": "https://mcp.sentry.dev/mcp/acme/web?skills=inspect",
      "headers": {
        "Authorization": "Sentry-Bearer ${env:SENTRY_AUTH_TOKEN}"
      }
    }
  }
}
```

Tokens get every skill

A token session gets all active skills, writes included, unless the URL narrows them. Keep `?skills=inspect` on any token you don’t want resolving issues, and give the token only the scopes the job needs.

## Does Sentry MCP work with self-hosted Sentry in Cursor?

Not the hosted server. Run Sentry’s CLI as a local server instead: install it, run `sentry auth login --url https://sentry.example.com`, then point Cursor at it:

.cursor/mcp.json

```
{
  "mcpServers": {
    "sentry": {
      "command": "sentry",
      "args": ["mcp", "acme/web"],
      "env": { "SENTRY_HOST": "sentry.example.com" }
    }
  }
}
```

On self-hosted, `seer` isn’t in the defaults, and the AI search tools need an LLM provider set with `EMBEDDED_AGENT_PROVIDER` and its key.

## What if Sentry MCP doesn’t connect in Cursor?

Open the Output panel (`Cmd+Shift+U` on macOS), choose MCP Logs and match the error:

- Signed in, but no tools or Unauthorized. Remove the server, add it again and sign in fresh.
- Sign-in never completes. The desktop app takes the OAuth callback on localhost:8787\. Free that port and toggle the server off and on.
- 400 on connect. A name in `?skills=` is misspelled. The valid ones are `inspect`, `seer`, `triage` and `project-management`.
- Results from the wrong project. The URL isn’t scoped. Add the organization and project slugs to the path.
- Rate Limited. Ask the agent to run Sentry calls one at a time instead of in parallel.

## Sentry for the whole team, in every client

Everything above is per person and per client: each teammate grants skills in Cursor, again in Claude Code, again in ChatGPT, and nobody can see who resolved what. MCP1 is a gateway that does it once. An admin installs [Sentry](https://mcp1.com/servers/sentry) in the workspace with one-click OAuth and shares it with a group, read-only for most people. In Cursor, people install the gateway from the Connect page in the dashboard, or add its URL:

.cursor/mcp.json

```
{
  "mcpServers": {
    "mcp1": {
      "url": "https://mcp1.com/mcp/<workspace>/<gateway>"
    }
  }
}
```

Sentry’s tools appear as `sentry__<tool>` next to GitHub, Linear and the rest, a rule like `sentry__update_*` can ask first or hold writes to admins, and every call is in the audit log. The same setup in other clients: [Claude Code](https://mcp1.com/blog/sentry-mcp-claude-code) and [ChatGPT](https://mcp1.com/blog/sentry-mcp-chatgpt). The [docs](https://mcp1.com/docs) cover gateways and groups, and you can [start free](https://mcp1.com/signup).

## Common questions

### Do I need a Sentry auth token to use Sentry MCP in Cursor?

No. The hosted server signs you in with OAuth when you enable it. Use an auth token with the Sentry-Bearer scheme only for headless runs or when the browser sign-in fails.

### Can Cursor resolve or assign Sentry issues?

Only if you grant the triage skill, which adds update\_issue and add\_issue\_note. By default OAuth grants inspect and seer, which read and analyze but change nothing.

### Does Sentry MCP work with sentry.io in the EU region?

Yes. The hosted server looks up each organization’s region itself, so the URL stays https://mcp.sentry.dev/mcp.

### Can I use Sentry MCP with the Cursor CLI?

Yes. The CLI reads the same mcp.json but keeps its own sign-in, so run cursor-agent mcp login sentry once.

Give your team one URL

Create a workspace, install your servers and share a gateway with a group. Free for individuals.

[Start with MCP1](https://mcp1.com/signup)[Read the docs](https://mcp1.com/docs)

## More from the blog

[ \~/.codex/config.toml[mcp_servers.notion] url = "https://mcp.notion.com/mcp"codex mcp login notionSigned inHow to connect Notion MCP to CodexRun codex mcp add notion --url https://mcp.notion.com/mcp, then codex mcp login notion. Approvals, a token for CI, team config and fixes.![](https://avatars.githubusercontent.com/u/1297371?s=96&v=4)Eldad FuxFounder and CEO, Appwrite](https://mcp1.com/blog/notion-mcp-codex)[ Where PHI goes in one tool callMCP serverBAA, endpoint in scopeModel providerBAA, product namedGatewayBAA, audit logLogsEncrypted, retention setMCP and HIPAA: what to check before agents touch PHIEvery party that handles PHI in an MCP tool call needs a BAA, and model providers’ BAAs don’t cover MCP servers. What to check, limit and log.![](https://avatars.githubusercontent.com/u/1297371?s=96&v=4)Eldad FuxFounder and CEO, Appwrite](https://mcp1.com/blog/mcp-hipaa)

---

This is the markdown copy of https://mcp1.com/blog/sentry-mcp-cursor. Site index for agents: https://mcp1.com/llms.txt
