Sentry MCP Server
The Sentry MCP Server allows AI assistants to interact with the Sentry API for error analysis, project management, and performance monitoring. You can:
List Projects: View all accessible Sentry projects with their details
Resolve Short ID: Map a short ID to issue details and context
Get Events: Retrieve and analyze specific events from issues
List Error Events: View recent errors and patterns in a project
Create Projects: Set up new Sentry projects with tracking capabilities
Monitor Issues: Track issues by status, severity, and frequency
List Issue Events: Analyze events for specific issues
Retrieve Issues: Get details for issues using ID or URL
List Replays: Monitor user sessions and interactions
Setup Sentry: Initialize Sentry for a project with DSN and instructions
Allows interaction with the Sentry API to retrieve and analyze error data, manage projects, and monitor application performance, including capabilities to list projects, resolve short IDs, get event details, list error events, create projects, list project issues, list issue events, get issue details, and list organization replays
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sentry MCP Server list issues in my-app project for acme-org"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sentry MCP Server
A Model Context Protocol (MCP) server for interacting with Sentry. This MCP server provides tools to interact with the Sentry API, allowing AI assistants to retrieve and analyze error data, manage projects, and monitor application performance.
Requirements
Node.js (v14 or higher)
npm or yarn
Sentry account with API access
Sentry authentication token with appropriate permissions
Related MCP server: Sentry MCP Server
Setup
Install dependencies:
npm install
Using this within an IDE
This MCP has been verified to work against Codeium Windsurf.
Cursor is currently having issues with its MCP implementation; and this tool is not yet fully functional.
Using with Claude
To use this MCP server with Claude, add the following configuration to your Claude settings:
{
"mcpServers": {
"sentry": {
"command": "npx",
"args": ["ts-node", "/Users/<your-user-directory>/mcp-sentry-ts/index.ts"],
"env": {
"SENTRY_AUTH": "<YOUR_AUTH_TOKEN>"
}
}
}
}Update with your directory path in the
argsfield.Replace
<YOUR_AUTH_TOKEN>with your Sentry authentication token.
Available Tools
list_projects
Lists all accessible Sentry projects for a given organization.
Parameters:
organization_slug(string, required): The slug of the organization to list projects fromview(string, optional): View type, either "summary" or "detailed" (default: "detailed")format(string, optional): Output format, either "plain" or "markdown" (default: "markdown")
resolve_short_id
Retrieves details about an issue using its short ID.
Parameters:
organization_slug(string, required): The slug of the organization the issue belongs toshort_id(string, required): The short ID of the issue to resolve (e.g., PROJECT-123)format(string, optional): Output format, either "plain" or "markdown" (default: "markdown")
get_sentry_event
Retrieves and analyzes a specific Sentry event from an issue.
Parameters:
issue_id_or_url(string, required): Either a full Sentry issue URL or just the numeric issue IDevent_id(string, required): The specific event ID to retrieveview(string, optional): View type, either "summary" or "detailed" (default: "detailed")format(string, optional): Output format, either "plain" or "markdown" (default: "markdown")
list_error_events_in_project
Lists error events from a specific Sentry project.
Parameters:
organization_slug(string, required): The slug of the organization the project belongs toproject_slug(string, required): The slug of the project to list events fromview(string, optional): View type, either "summary" or "detailed" (default: "detailed")format(string, optional): Output format, either "plain" or "markdown" (default: "markdown")
create_project
Creates a new project in Sentry and retrieves its client keys.
Parameters:
organization_slug(string, required): The slug of the organization to create the project inteam_slug(string, required): The slug of the team to assign the project toname(string, required): The name of the new projectplatform(string, optional): The platform for the new projectview(string, optional): View type, either "summary" or "detailed" (default: "detailed")format(string, optional): Output format, either "plain" or "markdown" (default: "markdown")
list_project_issues
Lists issues from a specific Sentry project.
Parameters:
organization_slug(string, required): The slug of the organization the project belongs toproject_slug(string, required): The slug of the project to list issues fromview(string, optional): View type, either "summary" or "detailed" (default: "detailed")format(string, optional): Output format, either "plain" or "markdown" (default: "markdown")
list_issue_events
Lists events for a specific Sentry issue.
Parameters:
organization_slug(string, required): The slug of the organization the issue belongs toissue_id(string, required): The ID of the issue to list events fromview(string, optional): View type, either "summary" or "detailed" (default: "detailed")format(string, optional): Output format, either "plain" or "markdown" (default: "markdown")
get_sentry_issue
Retrieves and analyzes a Sentry issue.
Parameters:
issue_id_or_url(string, required): Either a full Sentry issue URL or just the numeric issue IDview(string, optional): View type, either "summary" or "detailed" (default: "detailed")format(string, optional): Output format, either "plain" or "markdown" (default: "markdown")
list_organization_replays
Lists replays from a specific Sentry organization.
Parameters:
organization_slug(string, required): The slug of the organization to list replays fromproject_ids(string[], optional): List of project IDs to filter replays byenvironment(string, optional): Environment to filter replays bystats_period(string, optional): Time period for stats (e.g., "24h", "7d")start(string, optional): Start date for filtering replaysend(string, optional): End date for filtering replayssort(string, optional): Field to sort replays byquery(string, optional): Search query to filter replaysper_page(number, optional): Number of replays per pagecursor(string, optional): Cursor for paginationview(string, optional): View type, either "summary" or "detailed" (default: "detailed")format(string, optional): Output format, either "plain" or "markdown" (default: "markdown")
Running the Server
npx ts-node index.tsAuthentication
This tool requires a Sentry authentication token with appropriate permissions to access the Sentry API. You can generate a token in your Sentry account settings under "API Keys".
Error Handling
The server includes comprehensive error handling for:
Missing authentication token
API request failures
Invalid parameters
Network errors
All errors are logged to the console for debugging.
Available Tools
11 toolscreate_projectB
Create a new project in Sentry. Track deployments, releases, and health metrics.
Inputs: organization_slug (required), team_slug (required), name (required), platform, +2 more.
get_sentry_eventB
Retrieve a specific Sentry event from an issue. Requires issue ID/URL and event ID.
Inputs: issue_id_or_url (required), event_id (required), organization_slug (required), view, +1 more.
get_sentry_issueC
Retrieve and analyze a Sentry issue. Accepts issue URL or ID.
Inputs: issue_id_or_url (required), organization_slug (required), view, format.
list_error_events_in_projectC
List error events from a specific Sentry project. View recent errors, frequency patterns, and occurrence timestamps.
Inputs: organization_slug (required), project_slug (required), view, format.
list_issue_eventsC
List events for a specific Sentry issue. Analyze event details, metadata, and patterns.
Inputs: organization_slug (required), issue_id (required), view, format.
list_organization_replaysC
List replays from a Sentry organization. Monitor user sessions, interactions, errors, and experience issues.
Inputs: organization_slug (required), project_ids, environment, stats_period, +8 more.
list_project_issuesC
List issues from a Sentry project. Monitor issue status, severity, frequency, and timing.
Inputs: organization_slug (required), project_slug (required), view, format.
list_projectsC
List accessible Sentry projects. View project slugs, IDs, status, settings, features, and organization details.
Inputs: organization_slug (required), view, format.
resolve_short_idC
Retrieve details about an issue using its short ID. Maps short IDs to issue details, project context, and status.
Inputs: organization_slug (required), short_id (required), format.
search_errors_in_fileC
Search for Sentry errors occurring in a specific file. Find all issues related to a particular file path or filename.
Inputs: organization_slug (required), project_slug (required), file_identifier (required), identifier_type (required), +2 more.
setup_sentryC
Set up Sentry for a project returning a dsn and instructions for setup.
Inputs: organization_slug (required), team_slug (required), project_name (required), environment, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools have distinct purposes targeting different resources like projects, issues, events, replays, and errors, with clear boundaries. However, 'get_sentry_event' and 'list_issue_events' could be slightly confusing as both relate to issue events, though the former retrieves a specific event while the latter lists events, which is clarified in descriptions.
All tool names follow a consistent verb_noun pattern using snake_case, such as 'create_project', 'list_projects', 'get_sentry_issue', and 'search_errors_in_file'. There are no deviations in naming conventions, making the set predictable and easy to parse.
With 11 tools, the count is well-scoped for a Sentry monitoring and debugging server. It covers core operations like project management, issue and event retrieval, error searching, and setup without feeling excessive or insufficient for the domain.
The tool surface provides strong coverage for monitoring and debugging in Sentry, including CRUD-like operations for projects and issues, event listing, error searching, and setup. A minor gap is the lack of tools for updating or deleting resources, such as updating issue status or deleting projects, but agents can still perform key workflows effectively.
Related MCP Connectors
MCP server for Sentry - error monitoring, issue tracking, and debugging for AI assistants
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- FlicenseBqualityDmaintenanceA Model Context Protocol server that retrieves and analyzes Sentry.io issues, allowing users to inspect error reports, stacktraces, and debugging information from their Sentry account.223-
- AlicenseNot gradedqualityDmaintenanceA TypeScript server that allows AI agents to access, retrieve, and analyze Sentry error data through the Modern Context Protocol.39 npm2MIT

Sentry MCP Serverofficial
AlicenseBqualityDmaintenanceA Model Context Protocol server that lets AI assistants interact with the Sentry API to retrieve and analyze error data, manage projects, and monitor application performance.1112ISC
Sentry MCPofficial
AlicenseAqualityBmaintenanceA remote Model Context Protocol server acting as middleware to the Sentry API, allowing AI assistants like Claude to access Sentry data and functionality through natural language interfaces.746 npm961MIT