Bugsnag MCP Server
Provides tools for interacting with Bugsnag's error monitoring and issue management platform, enabling investigation of errors, viewing stacktraces, searching issues, and managing projects.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Bugsnag MCP Server List my Bugsnag organizations"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bugsnag MCP Server
A Model Context Protocol (MCP) server for interacting with Bugsnag. This server allows LLM tools like Cursor and Claude to investigate and resolve issues in Bugsnag.
✨ Features
Error Monitoring & Analysis
Organization & Project Navigation: Easily browse your Bugsnag hierarchy
Error & Event Filtering: Find specific issues with powerful filtering options
Detailed Stacktrace Viewing: See formatted stacktraces with source code context and highlighted error lines
Exception Chain Visualization: Understand the root cause by viewing the full exception chain
Code Intelligence
Project vs. Library Code Distinction: Clearly identify your code vs third-party libraries
Source Code Context: View relevant code snippets around error locations
Error Patterns: Identify recurring patterns across multiple errors
Issue Management
Search Capabilities: Find issues by error class, message, or app version
Error Details: Get comprehensive information about each error
Event History: View all occurrences of a specific error
Related MCP server: Bugsink MCP Server
🚀 Quick Setup
Setting up the Bugsnag MCP server is simple and doesn't require any installation or downloading source code.
For Cursor
Add the Bugsnag MCP server configuration:
{ "mcpServers": { "bugsnag": { "command": "npx", "args": ["-y", "bugsnag-mcp-server"], "env": { "BUGSNAG_API_KEY": "your-bugsnag-api-key" }, "disabled": false, "alwaysAllow": [] } } }Replace
your-bugsnag-api-keywith your Bugsnag API key
For Claude Desktop
Add the Bugsnag MCP server configuration:
{ "mcpServers": { "bugsnag": { "command": "npx", "args": ["-y", "bugsnag-mcp-server"], "env": { "BUGSNAG_API_KEY": "your-bugsnag-api-key" }, "disabled": false, "alwaysAllow": [] } } }Replace
your-bugsnag-api-keywith your Bugsnag API key
🔑 Obtaining a Bugsnag API Key
To use this MCP server, you'll need a Bugsnag API key:
Log in to your Bugsnag account at https://app.bugsnag.com/
Go to Settings > Organization settings > Access tokens
Create a new personal access token with the following permissions:
Read projects
Read and write errors
Read and write comments
Copy the generated token for use with the MCP server
📋 Usage Examples
Once configured, you can use the Bugsnag MCP server with your LLM tool. Here are some example prompts:
Exploring Your Bugsnag Account
List all my Bugsnag organizationsShow me all projects in organization "org_12345"Finding and Analyzing Errors
List the open errors in my Bugsnag project "project_12345"Show me the details for Bugsnag error ID "error_12345"Show me the detailed stacktrace for event "event_12345" in project "project_12345"View the exception chain for event "event_12345" in project "project_12345"Searching for Specific Issues
Search for Bugsnag issues in project "project_12345" related to "NullPointerException"List all events for error "error_12345" in project "project_12345"📚 Available Tools
The Bugsnag MCP server provides the following tools:
Organization & Project Management
list_organizations
Lists available Bugsnag organizations.
Parameters:
None required
list_projects
Lists projects in an organization.
Parameters:
organization_id(required): Bugsnag organization ID
Error & Event Management
list_errors
Lists errors in a project with filtering options.
Parameters:
project_id(required): Bugsnag project IDstatus: Filter by error status ("open", "fixed", "ignored")sort: Sort order for errors ("newest", "oldest", "priority")limit: Maximum number of errors to return
view_error
Gets detailed information about a specific error.
Parameters:
error_id(required): Bugsnag error ID
list_error_events
Lists events (occurrences) for a specific error.
Parameters:
project_id(required): Bugsnag project IDerror_id(required): Bugsnag error IDlimit: Maximum number of events to return
view_latest_event
Views the latest event for an error.
Parameters:
error_id(required): Bugsnag error ID
view_event
Views detailed information about a specific event.
Parameters:
project_id(required): Bugsnag project IDevent_id(required): Bugsnag event ID
Stacktrace Analysis
view_stacktrace
Extracts and formats stacktrace information from an event.
Parameters:
project_id(required): Bugsnag project IDevent_id(required): Bugsnag event IDinclude_code: Include source code context if available (default: true)
view_exception_chain
Views the full chain of exceptions for an event.
Parameters:
project_id(required): Bugsnag project IDevent_id(required): Bugsnag event ID
Issue Management
search_issues
Searches for issues using various criteria.
Parameters:
project_id(required): Bugsnag project IDquery: Search queryerror_class: Filter by error classapp_version: Filter by app version
🛠️ Advanced Usage
Testing Your API Key
You can test if your Bugsnag API key is valid using:
npx bugsnag-mcp-server test-api-key your-bugsnag-api-keyIf your API key is valid, this will display a list of your Bugsnag projects with their IDs.
Installation Options
While using npx is recommended for most users, you can also install the package globally if you prefer:
npm install -g bugsnag-mcp-serverFor Developers
If you're interested in contributing or modifying the code:
Clone the repository:
git clone https://github.com/yourusername/bugsnag-mcp.git cd bugsnag-mcpInstall dependencies:
npm installBuild the project:
npm run buildRun tests:
npm testRun tests with coverage:
npm run test:coverageFormat code:
npm run formatCheck code formatting:
npm run format:checkContinuous Integration
This project uses GitHub Actions for continuous integration. The workflows automatically:
Runs on push to the main branch and on pull requests
Tests against multiple Node.js versions (18.x and 20.x)
Runs the test suite
Generates and uploads test coverage reports
Checks code formatting with Prettier
You can view the workflow configurations in:
.github/workflows/test.yml- For running tests.github/workflows/prettier.yml- For checking code formatting
License
MIT
Available Tools
11 toolslist_error_eventsA
List events (occurrences) for a specific error
Inputs: error_id (required), project_id (required), limit.
list_errorsC
List errors in a project with filtering options
Inputs: project_id (required), sort, limit, status.
list_organizationsA
List available Bugsnag organizations
Inputs: no named parameters.
list_projectsA
List projects in an organization
Inputs: organization_id (required).
search_issuesC
Search for issues using various criteria
Inputs: project_id (required), query, app_version, error_class.
view_errorB
Get detailed information about a specific error
Inputs: error_id (required).
view_eventA
View detailed information about a specific event
Inputs: event_id (required), project_id (required).
view_exception_chainB
View the full chain of exceptions for an event
Inputs: event_id (required), project_id (required).
view_latest_eventC
View the latest event for an error
Inputs: error_id (required), include_full_details.
view_stacktraceC
Extract and format stacktrace information from an event
Inputs: event_id (required), project_id (required), max_frames, include_code.
view_tabsA
View all event data tabs including app, device, user, request, breadcrumbs, metadata, and stacktrace
Inputs: event_id (required), project_id (required), max_frames, include_code, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools are clearly distinct, but list_errors and search_issues overlap in purpose (both list/filter errors/issues). view_latest_event is a convenience that could be derived from view_event, and view_stacktrace/view_exception_chain/view_tabs are similar views of event details, though their specific purposes are clear.
All tools follow a consistent verb_noun pattern (list_*, view_*, search_*) with snake_case throughout. The names are predictable and match their actions.
11 tools is well within the ideal range for an error-monitoring server. Each tool covers a distinct aspect of browsing organizations, projects, errors, and events without being excessive.
The tool set covers the main read-only workflows for Bugsnag: listing organizations/projects/errors/events, viewing details, and inspecting stacktraces. Minor gaps include no direct 'get project' tool and no ability to list events across a project (only per error), but these are workable.
Maintenance
Related MCP Connectors
Let AI agents list, read and resolve Bugsly error-tracking issues and check monitors.
Query your app's logs, metrics and incidents from your AI assistant.
Production errors and incidents for your agent: stack traces, breadcrumbs, likely causes, triage.
Production errors your coding agent can read: search, stack traces, context, trends, resolve.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables interaction with Glitchtip error tracking platform through natural language. Provides access to issues, events, projects, teams, and organization management for comprehensive error monitoring and debugging.718 npm3AGPL 3.0
- AlicenseBqualityDmaintenanceEnables AI assistants to query and analyze errors from Bugsink self-hosted error tracking instances. Supports listing projects, teams, issues, and viewing detailed error events with stacktraces.16113 npm19MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to query, analyze, and resolve errors within the GlitchTip error tracking platform by providing access to issue details and stacktraces. It allows users to list unresolved issues and mark them as fixed using natural language commands.322 PyPI2MIT
- AlicenseBqualityDmaintenanceIntegrates GlitchTip error monitoring with AI assistants to fetch, analyze, and debug production errors. It enables users to list issues, retrieve event details, and perform guided triage of application errors through natural language.2259 npm11MIT