drio
Open app

Sentry MCP Server 🔍

Source

🤖 A TypeScript implementation of a Sentry MCP (Modern Context Protocol) tool that allows AI agents to access and analyze Sentry error data.

Catalog onlyCatalog onlySTDIO

Overview

Sentry MCP Server is a TypeScript implementation of a tool that allows AI agents to access and analyze Sentry error data using the Modern Context Protocol (MCP).

To use the Sentry MCP Server, install the dependencies with pnpm install, configure your Sentry auth token in a .env file, and start the server using pnpm build && pnpm start.

  • Retrieve and analyze Sentry issues - Get formatted issue details and metadata - View detailed stacktraces - Support for both tool and prompt interfaces - Robust error handling - Real-time communication
  1. Analyzing Sentry error data for debugging purposes.
  2. Integrating with development environments like Cursor IDE for seamless issue analysis.
  3. Providing AI agents with access to error data for automated troubleshooting.

Add to your AI client

Use these steps to connect Sentry MCP Server 🔍 in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "sentry-mcp-server-faurealexis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sentry-mcp-server-faurealexis"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "sentry-mcp-server-faurealexis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sentry-mcp-server-faurealexis"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "sentry-mcp-server-faurealexis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sentry-mcp-server-faurealexis"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "sentry-mcp-server-faurealexis": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sentry-mcp-server-faurealexis"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "sentry-mcp-server-faurealexis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sentry-mcp-server-faurealexis"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "sentry-mcp-server-faurealexis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sentry-mcp-server-faurealexis"
      ]
    }
  }
}

FAQ

What is the default port for the server?

The server starts on port 1337 by default.

How can I integrate it with Cursor IDE?

Start the MCP server locally and configure Cursor to use the local MCP server for enhanced development experience.

Is there support for real-time communication?

Yes, the server supports real-time communication for efficient error analysis.