sentry
Built by Metorial, the integration platform for agentic AI.
sentry
Server Summary
Monitor application errors
Analyze error traces
Search Sentry documentation
Query performance metrics
The Sentry MCP Server provides comprehensive integration with Sentry's error tracking and performance monitoring platform, enabling AI assistants to interact with your Sentry data through natural language. This server allows you to search issues and events, analyze errors with AI-powered root cause analysis, manage releases and projects, access documentation, and much more—all without leaving your development environment.
This MCP server transforms how you interact with Sentry by providing intelligent access to your application monitoring data. Whether you need to investigate production errors, analyze performance traces, retrieve SDK configuration details, or search through Sentry's extensive documentation, this server acts as a bridge between your AI assistant and the Sentry platform. It supports both Sentry's cloud service and self-hosted installations, with automatic region detection for multi-region deployments.
Quickly identify yourself and discover which organizations and teams you have access to. These foundational tools help establish context for all other operations and ensure you're working with the correct organizational scope.
Browse projects across your organizations and track releases with detailed version information and deployment history. The release management capabilities make it easy to correlate errors with specific versions and understand when issues were introduced.
Search through grouped issues using natural language queries that are automatically translated into Sentry's powerful query syntax. Find issues by status, assignment, user impact, error type, and more without memorizing complex search patterns.
Query individual error events, log entries, and performance spans with full support for aggregations and statistics. This is your go-to tool for answering questions like "how many errors occurred today" or "what's the average response time for API calls."
Leverage Sentry's Seer AI to perform deep analysis of production errors, receiving detailed root cause explanations with specific code fixes and implementation guidance. The analysis includes file locations, line numbers, and step-by-step troubleshooting instructions.
Search and retrieve Sentry's SDK documentation for any platform or framework. Whether you're setting up a new integration, configuring advanced features, or troubleshooting SDK issues, the documentation tools provide instant access to relevant guides and examples.
Access distributed traces for performance analysis and download event attachments like screenshots and log files. These capabilities are essential for understanding complex performance issues and accessing diagnostic artifacts.
Identify the authenticated user in Sentry, returning name and email address information.
Parameters: None required
Retrieve all organizations the authenticated user has access to, including organization slugs needed for other API operations.
Parameters: None required
List all teams within a specific organization.
Parameters:
organizationSlug
(required): The organization's slugregionUrl
(optional): Region-specific URL for cloud deploymentsDiscover all projects within an organization.
Parameters:
organizationSlug
(required): The organization's slugregionUrl
(optional): Region-specific URL for cloud deploymentsSearch for releases across projects, with optional query filtering to find specific versions.
Parameters:
organizationSlug
(required): The organization's slugprojectSlug
(optional): Limit results to a specific projectquery
(optional): Search string to match against version namesregionUrl
(optional): Region-specific URL for cloud deploymentsRetrieve comprehensive information about a specific issue by ID or URL, including stack traces, event details, and metadata.
Parameters:
issueId
(optional): Issue identifier like "PROJECT-123"eventId
(optional): Specific event identifierissueUrl
(optional): Full URL to the issueorganizationSlug
(optional): Required if using issueId or eventIdregionUrl
(optional): Region-specific URL for cloud deploymentsFetch detailed information about a distributed trace, including span breakdown and performance statistics.
Parameters:
organizationSlug
(required): The organization's slugtraceId
(required): 32-character hexadecimal trace identifierregionUrl
(optional): Region-specific URL for cloud deploymentsDownload or list attachments associated with a specific event, such as screenshots or log files.
Parameters:
organizationSlug
(required): The organization's slugprojectSlug
(required): The project's slugeventId
(required): The event identifierattachmentId
(optional): Specific attachment to download; omit to list all attachmentsregionUrl
(optional): Region-specific URL for cloud deploymentsSearch for individual events with support for aggregations and statistics. This is the primary tool for queries involving counts, sums, averages, or individual event listings. Automatically selects the appropriate dataset (errors, logs, or spans) based on your query.
Parameters:
organizationSlug
(required): The organization's slugnaturalLanguageQuery
(required): Natural language description of the searchprojectSlug
(optional): Limit results to a specific projectlimit
(optional): Maximum results to return (1-100, default 10)includeExplanation
(optional): Include query translation explanationregionUrl
(optional): Region-specific URL for cloud deploymentsRetrieve DSN (Data Source Name) configuration values for a specific project, needed for SDK setup.
Parameters:
organizationSlug
(required): The organization's slugprojectSlug
(required): The project's slugregionUrl
(optional): Region-specific URL for cloud deploymentsTrigger AI-powered root cause analysis for a specific issue, receiving detailed explanations, code fixes, and troubleshooting guidance. Automatically checks for existing analysis and initiates new analysis if needed.
Parameters:
issueId
(optional): Issue identifier like "PROJECT-123"issueUrl
(optional): Full URL to the issueorganizationSlug
(optional): Required if using issueIdinstruction
(optional): Custom guidance for the AI analysisregionUrl
(optional): Region-specific URL for cloud deploymentsSearch Sentry's technical documentation for SDK setup instructions, configuration guides, and integration examples across all supported platforms and frameworks.
Parameters:
query
(required): Search query in natural language (2-200 characters)guide
(optional): Filter to specific platform or integration (e.g., "javascript/nextjs", "python/django")maxResults
(optional): Number of results to return (1-10, default 3)Retrieve the full markdown content of a specific Sentry documentation page.
Parameters:
path
(required): Documentation path ending in .md (e.g., "/platforms/javascript/guides/nextjs.md")Search for grouped issues using natural language queries. Returns lists of issues with metadata like title, status, and affected user counts. Does not support aggregations or counts—use search_events for statistics.
Parameters:
organizationSlug
(required): The organization's slugnaturalLanguageQuery
(required): Natural language description of issues to findprojectSlugOrId
(optional): Limit to specific project by slug or numeric IDlimit
(optional): Maximum results to return (1-100, default 10)includeExplanation
(optional): Include query translation explanationregionUrl
(optional): Region-specific URL for cloud deploymentsA specialized prompt for discovering errors in Sentry associated with a specific filename, useful for file-centric debugging workflows.
Arguments:
organizationSlug
(required): The organization's slugfilename
(required): The filename to search for errorsA workflow prompt that orchestrates the process of analyzing and fixing an issue using Seer AI, combining issue retrieval with root cause analysis.
Arguments:
organizationSlug
(optional): The organization's slugissueId
(optional): Issue identifier like "PROJECT-123"issueUrl
(optional): Full URL to the issueAccess Sentry SDK documentation for a specific platform as markdown content.
URI Template: https://docs.sentry.io/platforms/{platform}/
Parameters:
platform
: The platform identifier (e.g., "javascript", "python", "java")MIME Type: text/markdown
Access integration guides for specific frameworks within a platform as markdown content.
URI Template: https://docs.sentry.io/platforms/{platform}/guides/{framework}/
Parameters:
platform
: The platform identifier (e.g., "javascript", "python")framework
: The framework identifier (e.g., "nextjs", "django")MIME Type: text/markdown
When working with this MCP server, you'll typically follow these patterns:
Issue Investigation: Start by searching for issues with search_issues
, then drill into specific problems with get_issue_details
, and finally use analyze_issue_with_seer
for in-depth root cause analysis and fix recommendations.
Performance Analysis: Use search_events
with natural language queries to find performance spans, then examine specific traces with get_trace_details
to understand the full request flow.
SDK Setup: Search documentation with search_docs
to find relevant integration guides, then retrieve complete documentation pages with get_doc
for implementation details.
Statistics and Metrics: Use search_events
for any questions involving counts, aggregations, or statistics across errors, logs, or performance data.
Project Discovery: Begin with find_organizations
to identify available organizations, then use find_projects
to discover projects, and find_dsns
to retrieve configuration values for SDK integration.
The natural language query capabilities in search_events
and search_issues
make it easy to ask questions without memorizing Sentry's query syntax, while the AI-powered analysis tools provide actionable insights for resolving production issues quickly.