Sentry MCP

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SENTRY_URLNoBase URL for Sentry, used for self-hosted instanceshttps://sentry.io
SENTRY_CLIENT_IDNoClient ID for the Sentry OAuth application
SENTRY_AUTH_TOKENYesSentry authentication token with required scopes (org:read project:read project:write team:read team:write event:read)
SENTRY_CLIENT_SECRETNoClient secret for the Sentry OAuth application

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
list_organizations

List all organizations that the user has access to in Sentry.

Use this tool when you need to:

  • View all organizations in Sentry
list_teams

List all teams in an organization in Sentry.

Use this tool when you need to:

  • View all teams in a Sentry organization
list_projects

Retrieve a list of projects in Sentry.

Use this tool when you need to:

  • View all projects in a Sentry organization
get_error_details

Retrieve error details from Sentry for a specific Issue ID, including the stacktrace and error message. Either issueId or issueUrl MUST be provided.

Use this tool when you need to:

  • Investigate a specific production error
  • Access detailed error information and stacktraces from Sentry
search_errors_in_file

Search for errors recently occurring in a specific file. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename.

Use this tool when you need to:

  • Search for production errors in a specific file
  • Analyze error patterns and frequencies
  • Find recent or frequently occurring errors.
create_team

Create a new team in Sentry.

Use this tool when you need to:

  • Create a new team in a Sentry organization
create_project

Create a new project in Sentry, giving you access to a new SENTRY_DSN.

Use this tool when you need to:

  • Create a new project in a Sentry organization
ID: dorqx191hb