
Sentry MCP Server
A Model Context Protocol server that enables AI assistants to interact with Sentry for error tracking and monitoring, allowing retrieval and analysis of error data, project management, and performance monitoring through the Sentry API.
codyde
Tools
list_projects
List accessible Sentry projects. View project slugs, IDs, status, settings, features, and organization details.
resolve_short_id
Retrieve details about an issue using its short ID. Maps short IDs to issue details, project context, and status.
get_sentry_event
Retrieve a specific Sentry event from an issue. Requires issue ID/URL and event ID.
list_error_events_in_project
List error events from a specific Sentry project. View recent errors, frequency patterns, and occurrence timestamps.
create_project
Create a new project in Sentry. Track deployments, releases, and health metrics.
list_project_issues
List issues from a Sentry project. Monitor issue status, severity, frequency, and timing.
list_issue_events
List events for a specific Sentry issue. Analyze event details, metadata, and patterns.
get_sentry_issue
Retrieve and analyze a Sentry issue. Accepts issue URL or ID.
list_organization_replays
List replays from a Sentry organization. Monitor user sessions, interactions, errors, and experience issues.
setup_sentry
Set up Sentry for a project returning a dsn and instructions for setup.
README
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
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
args
field. - 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.ts
Authentication
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.
Recommended Servers
Google Search Console MCP Server
A server that provides access to Google Search Console data through the Model Context Protocol, allowing users to retrieve and analyze search analytics data with customizable dimensions and reporting periods.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.
mcp-server-datadog
The MCP server provides an interface to the Datadog API, enabling seamless management of incidents, monitoring, logs, dashboards, metrics, traces, and hosts. Its extensible design allows easy integration of additional Datadog APIs for future expansions.

PostHog MCP Server
A Model Context Protocol server that enables Claude Desktop users to interact directly with PostHog, allowing them to view projects and create annotations through natural language commands.
metoro-mcp-server
Query and interact with kubernetes environments monitored by Metoro. Look at APM, metrics, traces, profiling information with LLMs.

Raygun MCP Server
MCP Server for Raygun's API V3 endpoints for interacting with your Crash Reporting and Real User Monitoring applications. This server provides comprehensive access to Raygun's API features through the Model Context Protocol.

systemd-coredump MCP Server
Enables MCP-capable applications to access, manage, and analyze system core dumps through integration with systemd-coredump functionality.

SQLite MCP Server
Enables querying log data stored in SQLite databases through the Model Context Protocol, allowing natural language interactions with log analysis.

Airbyte Status Checker
An MCP server for Claude Desktop that allows users to check the status of their Airbyte connections.