Bugsnag MCP Server

Bugsnag MCP Server

A Model Context Protocol server for AI-powered Bugsnag error monitoring and management.

18
Stars
5
Forks
18
Watchers
3
Issues
Bugsnag MCP Server provides a Model Context Protocol-compliant interface for AI tools to interact with Bugsnag, enabling advanced error monitoring, analysis, and management. It allows navigation of organizations and projects, filtering and investigation of errors and events, and detailed stacktrace and exception chain visualization. The server is designed for easy integration with LLM-powered agents like Cursor and Claude, supporting rich context retrieval and automated issue resolution workflows.

Key Features

Model Context Protocol (MCP) compliance for interoperability with LLM tools
Organization and project navigation within Bugsnag
Filtering and searching of errors and events
Detailed stacktrace and source code context presentation
Exception chain visualization for root cause analysis
Distinction between project and library code
Error pattern recognition across issues
Comprehensive error and event history access
Easy configuration via environment variables and tool integration
Tool endpoints for listing organizations, projects, errors, and events

Use Cases

AI-assisted investigation and triage of Bugsnag errors
Automated searching and filtering for specific bug patterns
Providing LLM agents with detailed project and error context for debugging
Root cause analysis through stacktrace and exception chain visualization
Automated error summary and reporting for development teams
Integrating Bugsnag error analytics into LLM-driven workflows
Enhancing developer productivity with conversational access to error data
Automating error status updates and comment management in Bugsnag
Identifying recurring errors across projects for prioritization
Contextual code snippet retrieval for faster diagnosis and resolution

README

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

🚀 Quick Setup

Setting up the Bugsnag MCP server is simple and doesn't require any installation or downloading source code.

For Cursor

  1. Add the Bugsnag MCP server configuration:

    json
    {
      "mcpServers": {
        "bugsnag": {
          "command": "npx",
          "args": ["-y", "bugsnag-mcp-server"],
          "env": {
            "BUGSNAG_API_KEY": "your-bugsnag-api-key"
          },
          "disabled": false,
          "alwaysAllow": []
        }
      }
    }
    
  2. Replace your-bugsnag-api-key with your Bugsnag API key

For Claude Desktop

  1. Add the Bugsnag MCP server configuration:

    json
    {
      "mcpServers": {
        "bugsnag": {
          "command": "npx",
          "args": ["-y", "bugsnag-mcp-server"],
          "env": {
            "BUGSNAG_API_KEY": "your-bugsnag-api-key"
          },
          "disabled": false,
          "alwaysAllow": []
        }
      }
    }
    
  2. Replace your-bugsnag-api-key with your Bugsnag API key

🔑 Obtaining a Bugsnag API Key

To use this MCP server, you'll need a Bugsnag API key:

  1. Log in to your Bugsnag account at https://app.bugsnag.com/
  2. Go to Settings > Organization settings > Access tokens
  3. Create a new personal access token with the following permissions:
    • Read projects
    • Read and write errors
    • Read and write comments
  4. 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 organizations
Show 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 ID
  • status: 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 ID
  • error_id (required): Bugsnag error ID
  • limit: 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 ID
  • event_id (required): Bugsnag event ID

Stacktrace Analysis

view_stacktrace

Extracts and formats stacktrace information from an event.

Parameters:

  • project_id (required): Bugsnag project ID
  • event_id (required): Bugsnag event ID
  • include_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 ID
  • event_id (required): Bugsnag event ID

Issue Management

search_issues

Searches for issues using various criteria.

Parameters:

  • project_id (required): Bugsnag project ID
  • query: Search query
  • error_class: Filter by error class
  • app_version: Filter by app version

🛠️ Advanced Usage

Testing Your API Key

You can test if your Bugsnag API key is valid using:

bash
npx bugsnag-mcp-server test-api-key your-bugsnag-api-key

If 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:

bash
npm install -g bugsnag-mcp-server

For Developers

If you're interested in contributing or modifying the code:

  1. Clone the repository:

    bash
    git clone https://github.com/yourusername/bugsnag-mcp.git
    cd bugsnag-mcp
    
  2. Install dependencies:

    bash
    npm install
    
  3. Build the project:

    bash
    npm run build
    
  4. Run tests:

    bash
    npm test
    
  5. Run tests with coverage:

    bash
    npm run test:coverage
    
  6. Format code:

bash
npm run format
  1. Check code formatting:
bash
npm run format:check

Continuous 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

Star History

Star History Chart

Repository Owner

tgeselle
tgeselle

User

Repository Details

Language API Blueprint
Default Branch master
Size 164 KB
Contributors 1
MCP Verified Nov 12, 2025

Programming Languages

API Blueprint
89.92%
TypeScript
9.27%
JavaScript
0.82%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Weblate MCP Server

    Weblate MCP Server

    Seamlessly connect AI assistants to Weblate for translation management via the Model Context Protocol.

    Weblate MCP Server enables AI assistants and clients to directly manage Weblate translation projects through the Model Context Protocol (MCP). It integrates with the Weblate REST API, allowing natural language interaction for project and translation management. The tool offers multiple transport options including HTTP, SSE, and STDIO, and is optimized for large language model workflows. Full support for project, component, and translation operations is provided, with a focus on type safety and flexible environment configuration.

    • 9
    • MCP
    • mmntm/weblate-mcp
  • Plane MCP Server

    Plane MCP Server

    Enables LLMs to manage Plane.so projects and issues via the Model Context Protocol.

    Plane MCP Server provides a standardized interface to connect large language models with Plane.so project management APIs. It enables LLMs to interact directly with project and issue data, supporting tasks such as listing projects, retrieving detailed information, creating and updating issues, while prioritizing user control and security. Installation is streamlined through tools like Smithery, and configuration supports multiple clients including Claude for Desktop.

    • 32
    • MCP
    • kelvin6365/plane-mcp-server
  • Raygun MCP Server

    Raygun MCP Server

    Access and interact with Raygun crash reporting data via Model Context Protocol for AI assistants.

    Raygun MCP Server provides a remote MCP endpoint that enables AI assistants to securely access, analyze, and manage crash reporting and real user monitoring data from Raygun through natural language conversations. It supports various AI tools and assistants, allowing users to investigate errors, monitor deployments, track user sessions, and gather performance insights seamlessly. Integration is streamlined with step-by-step guides for connecting through multiple popular AI environments.

    • 19
    • MCP
    • MindscapeHQ/mcp-server-raygun
  • Last9 MCP Server

    Last9 MCP Server

    Enables AI agents to access real-time production observability data for automated code fixes.

    Last9 MCP Server is an implementation of the Model Context Protocol (MCP) designed to provide seamless integration between AI agents and production observability data. It allows tools and agents to fetch live logs, metrics, traces, events, and alerts from Last9 systems, supporting a range of development environments and IDEs. This enables faster debugging, automated code fixes, and insightful context directly within local development workflows.

    • 46
    • MCP
    • last9/last9-mcp-server
  • MCP-Typescribe

    MCP-Typescribe

    An MCP server for serving TypeScript API context to language models.

    MCP-Typescribe is an open-source implementation of the Model Context Protocol (MCP) focused on providing LLMs with contextual, real-time access to TypeScript API documentation. It parses TypeScript (and other) definitions using TypeDoc-generated JSON and serves this information via a queryable server that supports tools used by AI coding assistants. The solution enables AI agents to dynamically explore, search, and understand unknown APIs, accelerating onboarding and supporting agentic behaviors in code generation.

    • 45
    • MCP
    • yWorks/mcp-typescribe
  • Binary Ninja MCP

    Binary Ninja MCP

    Seamlessly integrate Binary Ninja with Model Context Protocol clients for enhanced reverse engineering.

    Binary Ninja MCP enables real-time integration of Binary Ninja's reverse engineering environment with various Model Context Protocol (MCP) clients. It acts as a server exposing Binary Ninja's capabilities via HTTP endpoints and includes a bridge to connect to MCP clients. The extension supports auto-setup with popular clients such as Cline, Claude Desktop, Roo Code, and others, streamlining the use of AI-assisted workflows. This enhances tasks such as analyzing binaries, switching targets, and leveraging LLM-driven automation in reverse engineering.

    • 112
    • MCP
    • fosdickio/binary_ninja_mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results