sentry
Built by Metorial, the integration platform for agentic AI.
sentry
Server Summary
Query error tracking data
Search Sentry documentation
Analyze production issues
Monitor performance metrics
A comprehensive Model Context Protocol (MCP) server that provides deep integration with Sentry's error tracking and performance monitoring platform. This server enables AI assistants to search, analyze, and troubleshoot production issues, access detailed error information, query performance data, and navigate Sentry's extensive documentation—all through natural language interactions.
The Sentry MCP server bridges the gap between conversational AI and production monitoring by providing direct access to your Sentry data. Whether you need to investigate a critical error, analyze performance metrics, find documentation for SDK setup, or get AI-powered root cause analysis, this server offers a complete toolkit for working with Sentry through natural language queries.
Identify the currently authenticated user in Sentry. Returns the user's name and email address associated with the API token.
Parameters: None
List all Sentry organizations that the authenticated user has access to. Essential for discovering organization slugs needed for other operations.
Parameters: None
Discover teams within a specific Sentry organization. Useful for understanding team structure and finding team slugs for assignment or filtering purposes.
Parameters:
organizationSlug (required): The organization's slugregionUrl (optional): Region-specific URL for multi-region deploymentsList all projects within a Sentry organization. Projects are the primary organizational unit in Sentry where errors and performance data are collected.
Parameters:
organizationSlug (required): The organization's slugregionUrl (optional): Region-specific URL for multi-region deploymentsSearch for releases in a Sentry organization. Find recent deployments, locate specific version numbers, or determine when a release was deployed to an environment.
Parameters:
organizationSlug (required): The organization's slugquery (optional): Search string to filter releases by versionprojectSlug (optional): Limit results to a specific projectregionUrl (optional): Region-specific URL for multi-region deploymentsRetrieve the Data Source Name (DSN) configuration for a specific project. The DSN is required to configure Sentry SDKs in your applications.
Parameters:
organizationSlug (required): The organization's slugprojectSlug (required): The project's slugregionUrl (optional): Region-specific URL for multi-region deploymentsFetch comprehensive information about a specific Sentry issue including stack traces, metadata, tags, and occurrence patterns. Use this when you have a specific issue ID or URL and need detailed diagnostic information.
Parameters:
issueUrl (optional): Full URL to the issue in SentryorganizationSlug (optional): The organization's slugissueId (optional): Issue identifier (e.g., "PROJECT-123")eventId (optional): Specific event IDregionUrl (optional): Region-specific URL for multi-region deploymentsSearch for grouped issues using natural language queries. Returns a list of issues with metadata like title, status, user impact, and assignment. The AI automatically translates your natural language into Sentry's search syntax.
Parameters:
organizationSlug (required): The organization's slugnaturalLanguageQuery (required): Plain English description of what to search forprojectSlugOrId (optional): Limit search to a specific projectlimit (optional): Maximum results to return (1-100, default 10)includeExplanation (optional): Show how the query was translatedregionUrl (optional): Region-specific URL for multi-region deploymentsExamples:
Use Sentry's Seer AI to perform deep root cause analysis on production errors. Receives detailed explanations, specific code locations, concrete fixes, and step-by-step implementation guidance. The analysis is cached, so subsequent requests return instantly.
Parameters:
issueUrl (optional): Full URL to the issueorganizationSlug (optional): The organization's slugissueId (optional): Issue identifierinstruction (optional): Custom instruction for the AI analysisregionUrl (optional): Region-specific URL for multi-region deploymentsSearch for individual events and perform statistical aggregations. This is the primary tool for querying error logs, performance spans, and computing metrics like counts, averages, and sums. The AI automatically selects the appropriate dataset (errors, logs, or spans) and translates natural language into Sentry's query language.
Parameters:
organizationSlug (required): The organization's slugnaturalLanguageQuery (required): What you want to search for or calculateprojectSlug (optional): Limit to a specific projectlimit (optional): Maximum results (1-100, default 10)includeExplanation (optional): Show query translation detailsregionUrl (optional): Region-specific URL for multi-region deploymentsExamples:
Retrieve comprehensive information about a distributed trace including span breakdown, timing statistics, and service interactions. Provides a high-level overview with links to view detailed trace visualization in Sentry.
Parameters:
organizationSlug (required): The organization's slugtraceId (required): 32-character hexadecimal trace identifierregionUrl (optional): Region-specific URL for multi-region deploymentsDownload or list attachments associated with a Sentry event, such as screenshots, log files, or other files uploaded with error reports.
Parameters:
organizationSlug (required): The organization's slugprojectSlug (required): The project's slugeventId (required): The event identifierattachmentId (optional): Specific attachment to download; omit to list allregionUrl (optional): Region-specific URL for multi-region deploymentsSearch Sentry's comprehensive technical documentation for SDK setup guides, instrumentation instructions, configuration options, and integration tutorials. Covers all supported platforms and frameworks.
Parameters:
query (required): Search terms (2-200 characters)guide (optional): Filter to specific platform/framework (e.g., "javascript/nextjs", "python/django")maxResults (optional): Number of results (1-10, default 3)Examples:
Fetch the complete markdown content of a specific Sentry documentation page. Use paths obtained from search_docs results to retrieve full implementation details and code examples.
Parameters:
path (required): Documentation path (e.g., "/platforms/javascript/guides/nextjs.md")Access platform-specific SDK documentation for any supported Sentry platform.
URI Template: https://docs.sentry.io/platforms/{platform}/
Parameters:
platform: Platform identifier (e.g., "javascript", "python", "java")Access integration guides for specific frameworks within a platform.
URI Template: https://docs.sentry.io/platforms/{platform}/guides/{framework}/
Parameters:
platform: Platform identifierframework: Framework identifier (e.g., "nextjs", "django", "spring-boot")A pre-configured prompt that searches for all errors occurring in a specific file within your codebase. Useful for targeted debugging when you know which file is problematic.
Arguments:
organizationSlug (required): The organization's slugfilename (required): The filename to search forA guided prompt for getting AI-powered fixes for production issues. Automatically invokes Seer analysis and presents actionable remediation steps.
Arguments:
issueUrl (optional): Full URL to the issueorganizationSlug (optional): The organization's slugissueId (optional): Issue identifierIncident Response: Quickly investigate production errors by asking "show me critical issues from the last hour" and then diving into specific issues with "analyze this error and tell me how to fix it."
Performance Optimization: Query performance metrics with natural language like "what are the slowest database queries this week" or "show me API endpoints with response times over 2 seconds."
SDK Integration: Get instant access to setup documentation by asking "how do I set up Sentry in Next.js" or "show me Django configuration options."
Team Collaboration: Discover organizational structure, find project DSNs for team members, and track releases across environments.
Root Cause Analysis: Use Seer AI integration to get detailed explanations of complex errors, including specific code fixes and implementation guidance.
This MCP server communicates directly with Sentry's API using your authentication credentials. All queries respect your Sentry organization's access controls and permissions. No data is stored or transmitted to third parties beyond your Sentry instance.