Sentry

Connect AI Agents to
Sentry

Automate workflows and connect AI agents to Sentry. Metorial is built for developers. Handling OAuth, compliance, observability, and more.

Sentry on Metorial

The Sentry integration lets you monitor and debug application errors directly from your development environment, enabling you to query issues, view stack traces, and manage error reports without leaving your workflow.

Deploy on Metorial

Combine Sentry with other tools

Metorial has 600+ integrations available. Here are some related ones you might find interesting.

Hackernews

Hackernews

The Hackernews integration lets you search and retrieve stories, comments, and user data from Hackernews directly within your workflow, enabling you to analyze trends, monitor discussions, and gather insights from the tech community.

Exa

Exa

The Exa integration lets you search the web using neural search capabilities and retrieve high-quality, AI-ready content directly within your MCP-enabled applications.

Google Drive

Google Drive

The Google Drive integration lets you search, read, create, and manage files and folders in your Drive directly through AI interactions. Use it to organize documents, retrieve file contents, share files, and automate common Drive tasks without switching to your browser.

Neon

Neon

The Neon integration lets you connect to your Neon Postgres databases to query data, inspect schemas, and manage database operations directly from your AI assistant.

Supabase

Supabase

The Supabase integration lets you query and manage your database, authentication, and storage directly from your AI assistant, enabling natural language database operations and real-time data access.

Linear

Linear

The Linear integration lets you create, update, and search issues directly from your workspace, enabling seamless project management and task tracking without leaving your development environment.

Gmail

Gmail

The Gmail integration lets you read, send, and manage emails directly from your workspace, enabling you to automate email workflows and quickly access your inbox without switching applications.

Sentry

Sentry

The Sentry integration lets you monitor and debug application errors directly from your development environment, enabling you to query issues, view stack traces, and manage error reports without leaving your workflow.

Firecrawl

Firecrawl

The Firecrawl integration lets you scrape websites, extract structured data, and convert web pages into LLM-ready formats directly from your MCP-enabled applications.

Connect anything. Anywhere.

Supported tools and capabilities

Metorial helps you connect AI agents to Sentry with various tools and resources. Tools allow you to interact with perform specific actions, while resources provide read-only access to data and information.

whoami

whoami

Identify the authenticated user in Sentry. Use this tool when you need to: - Get the user's name and email address.

find_organizations

find_organizations

Find organizations that the user has access to in Sentry. Use this tool when you need to: - View all organizations in Sentry - Find an organization's slug to aid other tool requests

find_teams

find_teams

Find teams in an organization in Sentry. Use this tool when you need to: - View all teams in a Sentry organization - Find a team's slug to aid other tool requests

find_projects

find_projects

Find projects in Sentry. Use this tool when you need to: - View all projects in a Sentry organization - Find a project's slug to aid other tool requests

find_releases

find_releases

Find releases in Sentry. Use this tool when you need to: - Find recent releases in a Sentry organization - Find the most recent version released of a specific project - Determine when a release was deployed to an environment <examples> ### Find the most recent releases in the 'my-organization' organization ``` find_releases(organizationSlug='my-organization') ``` ### Find releases matching '2ce6a27' in the 'my-organization' organization ``` find_releases(organizationSlug='my-organization', query='2ce6a27') ``` </examples> <hints> - If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>. </hints>

get_issue_details

get_issue_details

Get detailed information about a specific Sentry issue by ID. 🔍 USE THIS TOOL WHEN USERS: - Provide a specific issue ID (e.g., 'CLOUDFLARE-MCP-41', 'PROJECT-123') - Ask to 'explain [ISSUE-ID]', 'tell me about [ISSUE-ID]' - Want details/stacktrace/analysis for a known issue - Provide a Sentry issue URL ❌ DO NOT USE for: - General searching or listing issues (use search_issues) - Root cause analysis (use analyze_issue_with_seer) TRIGGER PATTERNS: - 'Explain ISSUE-123' → use get_issue_details - 'Tell me about PROJECT-456' → use get_issue_details - 'What happened in [issue URL]' → use get_issue_details <examples> ### Explain specific issue ``` get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41') ``` ### Get details for event ID ``` get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243') ``` </examples> <hints> - If the user provides the `issueUrl`, you can ignore the other parameters. - If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required. </hints>

get_trace_details

get_trace_details

Get detailed information about a specific Sentry trace by ID. 🔍 USE THIS TOOL WHEN USERS: - Provide a specific trace ID (e.g., 'a4d1aae7216b47ff8117cf4e09ce9d0a') - Ask to 'show me trace [TRACE-ID]', 'explain trace [TRACE-ID]' - Want high-level overview and link to view trace details in Sentry - Need trace statistics and span breakdown ❌ DO NOT USE for: - General searching for traces (use search_events with trace queries) - Individual span details (this shows trace overview) TRIGGER PATTERNS: - 'Show me trace abc123' → use get_trace_details - 'Explain trace a4d1aae7216b47ff8117cf4e09ce9d0a' → use get_trace_details - 'What is trace [trace-id]' → use get_trace_details <examples> ### Get trace overview ``` get_trace_details(organizationSlug='my-organization', traceId='a4d1aae7216b47ff8117cf4e09ce9d0a') ``` </examples> <hints> - Trace IDs are 32-character hexadecimal strings </hints>

get_event_attachment

get_event_attachment

Download attachments from a Sentry event. Use this tool when you need to: - Download files attached to a specific event - Access screenshots, log files, or other attachments uploaded with an error report - Retrieve attachment metadata and download URLs <examples> ### Download a specific attachment by ID ``` get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345') ``` ### List all attachments for an event ``` get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243') ``` </examples> <hints> - If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource - If `attachmentId` is omitted, all attachments for the event will be listed with download information - The `projectSlug` is required to identify which project the event belongs to </hints>

search_events

search_events

Search for events AND perform counts/aggregations - the ONLY tool for statistics and counts. Supports TWO query types: 1. AGGREGATIONS (counts, sums, averages): 'how many errors', 'count of issues', 'total tokens' 2. Individual events with timestamps: 'show me error logs from last hour' 🔢 USE THIS FOR ALL COUNTS/STATISTICS: - 'how many errors today' → returns count - 'count of database failures' → returns count - 'total number of issues' → returns count - 'average response time' → returns avg() - 'sum of tokens used' → returns sum() 📋 ALSO USE FOR INDIVIDUAL EVENTS: - 'error logs from last hour' → returns event list - 'database errors with timestamps' → returns event list - 'trace spans for slow API calls' → returns span list Dataset Selection (AI automatically chooses): - errors: Exception/crash events - logs: Log entries - spans: Performance data, AI/LLM calls, token usage ❌ DO NOT USE for grouped issue lists → use search_issues <examples> search_events(organizationSlug='my-org', naturalLanguageQuery='how many errors today') search_events(organizationSlug='my-org', naturalLanguageQuery='count of database failures this week') search_events(organizationSlug='my-org', naturalLanguageQuery='total tokens used by model') search_events(organizationSlug='my-org', naturalLanguageQuery='error logs from the last hour') </examples> <hints> - If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlug>. - Parse org/project notation directly without calling find_organizations or find_projects. </hints>

find_dsns

find_dsns

List all Sentry DSNs for a specific project. Use this tool when you need to: - Retrieve a SENTRY_DSN for a specific project <hints> - If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>. - If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first. </hints>

analyze_issue_with_seer

analyze_issue_with_seer

Use Seer AI to analyze production errors and get detailed root cause analysis with specific code fixes. Use this tool when you need: - Detailed AI-powered root cause analysis - Specific code fixes and implementation guidance - Step-by-step troubleshooting for complex issues - Understanding why an error is happening in production What this tool provides: - Root cause analysis with code-level explanations - Specific file locations and line numbers where errors occur - Concrete code fixes you can apply - Step-by-step implementation guidance This tool automatically: 1. Checks if analysis already exists (instant results) 2. Starts new AI analysis if needed (~2-5 minutes) 3. Returns complete fix recommendations <examples> ### User: "What's causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43" ``` analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43') ``` ### User: "Can you help me understand why this is failing in production?" ``` analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456') ``` </examples> <hints> - Use this tool when you need deeper analysis beyond basic issue details - If the user provides an issueUrl, extract it and use that parameter alone - The analysis includes actual code snippets and fixes, not just error descriptions - Results are cached - subsequent calls return instantly </hints>

search_docs

search_docs

Search Sentry documentation for SDK setup, instrumentation, and configuration guidance. Use this tool when you need to: - Set up Sentry SDK in any language (Python, JavaScript, Go, Ruby, etc.) - Configure specific features like performance monitoring, error sampling, or release tracking - Implement custom instrumentation (spans, transactions, breadcrumbs) - Set up integrations with frameworks (Django, Flask, Express, Next.js, etc.) - Configure data scrubbing, filtering, or sampling rules - Troubleshoot SDK issues or find best practices This tool searches technical documentation, NOT general information about Sentry as a company. <examples> ### Setting up Sentry in a Python Django app ``` search_docs(query='Django setup configuration SENTRY_DSN', guide='python/django') ``` ### Setting up source maps for Next.js ``` search_docs(query='source maps webpack upload', guide='javascript/nextjs') ``` ### Configuring release tracking ``` search_docs(query='release tracking deployment integration CI/CD') ``` </examples> <hints> - Use guide parameter to filter results to specific technologies (e.g., 'javascript' or 'javascript/nextjs') - Include the programming language/framework in your query for SDK-specific results - Use technical terms like 'instrumentation', 'spans', 'transactions' for performance docs - Include specific feature names like 'beforeSend', 'tracesSampleRate', 'SENTRY_DSN' </hints>

Help & Documentation

Find guides and articles to help you get started with Sentry on Metorial.

More about Sentry

Sentry MCP Server

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.

Overview

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.

Key Capabilities

User and Organization Management

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.

Project and Release Discovery

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.

Intelligent Issue Search

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.

Event and Performance Analysis

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."

AI-Powered Root Cause Analysis

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.

Comprehensive Documentation Access

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.

Trace and Attachment Support

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.

Tools

whoami

Identify the authenticated user in Sentry, returning name and email address information.

Parameters: None required

find_organizations

Retrieve all organizations the authenticated user has access to, including organization slugs needed for other API operations.

Parameters: None required

find_teams

List all teams within a specific organization.

Parameters:

  • organizationSlug (required): The organization's slug
  • regionUrl (optional): Region-specific URL for cloud deployments

find_projects

Discover all projects within an organization.

Parameters:

  • organizationSlug (required): The organization's slug
  • regionUrl (optional): Region-specific URL for cloud deployments

find_releases

Search for releases across projects, with optional query filtering to find specific versions.

Parameters:

  • organizationSlug (required): The organization's slug
  • projectSlug (optional): Limit results to a specific project
  • query (optional): Search string to match against version names
  • regionUrl (optional): Region-specific URL for cloud deployments

get_issue_details

Retrieve 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 identifier
  • issueUrl (optional): Full URL to the issue
  • organizationSlug (optional): Required if using issueId or eventId
  • regionUrl (optional): Region-specific URL for cloud deployments

get_trace_details

Fetch detailed information about a distributed trace, including span breakdown and performance statistics.

Parameters:

  • organizationSlug (required): The organization's slug
  • traceId (required): 32-character hexadecimal trace identifier
  • regionUrl (optional): Region-specific URL for cloud deployments

get_event_attachment

Download or list attachments associated with a specific event, such as screenshots or log files.

Parameters:

  • organizationSlug (required): The organization's slug
  • projectSlug (required): The project's slug
  • eventId (required): The event identifier
  • attachmentId (optional): Specific attachment to download; omit to list all attachments
  • regionUrl (optional): Region-specific URL for cloud deployments

search_events

Search 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 slug
  • naturalLanguageQuery (required): Natural language description of the search
  • projectSlug (optional): Limit results to a specific project
  • limit (optional): Maximum results to return (1-100, default 10)
  • includeExplanation (optional): Include query translation explanation
  • regionUrl (optional): Region-specific URL for cloud deployments

find_dsns

Retrieve DSN (Data Source Name) configuration values for a specific project, needed for SDK setup.

Parameters:

  • organizationSlug (required): The organization's slug
  • projectSlug (required): The project's slug
  • regionUrl (optional): Region-specific URL for cloud deployments

analyze_issue_with_seer

Trigger 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 issue
  • organizationSlug (optional): Required if using issueId
  • instruction (optional): Custom guidance for the AI analysis
  • regionUrl (optional): Region-specific URL for cloud deployments

search_docs

Search 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)

get_doc

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_issues

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 slug
  • naturalLanguageQuery (required): Natural language description of issues to find
  • projectSlugOrId (optional): Limit to specific project by slug or numeric ID
  • limit (optional): Maximum results to return (1-100, default 10)
  • includeExplanation (optional): Include query translation explanation
  • regionUrl (optional): Region-specific URL for cloud deployments

Prompts

find_errors_in_file

A specialized prompt for discovering errors in Sentry associated with a specific filename, useful for file-centric debugging workflows.

Arguments:

  • organizationSlug (required): The organization's slug
  • filename (required): The filename to search for errors

fix_issue_with_seer

A 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 slug
  • issueId (optional): Issue identifier like "PROJECT-123"
  • issueUrl (optional): Full URL to the issue

Resource Templates

sentry-docs-platform

Access 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

sentry-docs-platform-guide

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

Usage Patterns

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.

Ready to build with Metorial?

Let's take your AI-powered applications to the next level, together.

About Metorial

Metorial provides developers with instant access to 600+ MCP servers for building AI agents that can interact with real-world tools and services. Built on MCP, Metorial simplifies agent tool integration by offering pre-configured connections to popular platforms like Google Drive, Slack, GitHub, Notion, and hundreds of other APIs. Our platform supports all major AI agent frameworks—including LangChain, AutoGen, CrewAI, and LangGraph—enabling developers to add tool calling capabilities to their agents in just a few lines of code. By eliminating the need for custom integration code, Metorial helps AI developers move from prototype to production faster while maintaining security and reliability. Whether you're building autonomous research agents, customer service bots, or workflow automation tools, Metorial's MCP server library provides the integrations you need to connect your agents to the real world.

Star us on GitHub