Skip to main content

A Model Context Protocol server providing tools to interact with the Honeybadger API via LLMs

Project description

honeybadger-mcp-server: A Honeybadger API MCP Server

Overview

A Model Context Protocol server for interacting with the Honeybadger API. This server provides tools to query error details and fault information from your Honeybadger projects via Large Language Models.

Please note that honeybadger-mcp-server requires both a Honeybadger API key and Project ID to function. You can obtain these from your Honeybadger account settings.

Tools

  1. list_faults

    • List faults from Honeybadger with optional filtering
    • Inputs:
      • q (string, optional): A search string
      • created_after (number, optional): Unix timestamp (seconds since epoch)
      • occurred_after (number, optional): Unix timestamp (seconds since epoch)
      • occurred_before (number, optional): Unix timestamp (seconds since epoch)
      • limit (number, optional): Number of results to return (max and default are 25)
      • order (string, optional): Sort order ("recent" or "frequent", default: "recent")
    • Returns: List of faults matching the criteria
  2. get_fault_details

    • Get detailed notice information for a specific fault
    • Inputs:
      • fault_id (string): The ID of the fault
      • created_after (number, optional): Unix timestamp (seconds since epoch)
      • created_before (number, optional): Unix timestamp (seconds since epoch)
      • limit (number, optional): Number of notices to return (max 25, default: 1)
    • Returns: Detailed fault notice information

Installation

Option 1: Install from PyPI (Recommended)

You can install using either uv (recommended) or pip:

# Using uv (recommended for better dependency management)
uv pip install honeybadger-mcp-server

# Or using pip
pip install honeybadger-mcp-server

After installation, you can run the server using either:

# Using uvx (recommended)
uvx honeybadger-mcp-server

# Or using python directly
python -m honeybadger_mcp_server

Option 2: Local Development

For local development, clone this repository and install in development mode:

git clone https://github.com/yourusername/honeybadger-mcp
cd honeybadger-mcp

# Using uv (recommended)
uv pip install -e .

# Or using pip
pip install -e .

Then run using either:

# Using uv (recommended)
uv run --directory . -m honeybadger_mcp_server

# Or using python directly
python -m honeybadger_mcp_server

Note: While uv is recommended for better dependency management and isolation, the server will work with standard Python tools as well.

Configuration

The server requires both a Honeybadger API key and Project ID to be set in the environment:

export HONEYBADGER_API_KEY="your-api-key-here"
export HONEYBADGER_PROJECT_ID="your-project-id-here"

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

If installed from PyPI:

{
  "mcpServers": {
    "honeybadger": {
      "command": "uvx",
      "args": ["honeybadger-mcp-server"],
      "env": {
        "HONEYBADGER_API_KEY": "your-api-key-here",
        "HONEYBADGER_PROJECT_ID": "your-project-id-here"
      }
    }
  }
}

For local development:

{
  "mcpServers": {
    "honeybadger": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/honeybadger-mcp",
        "-m",
        "honeybadger_mcp_server"
      ],
      "env": {
        "HONEYBADGER_API_KEY": "your-api-key-here",
        "HONEYBADGER_PROJECT_ID": "your-project-id-here"
      }
    }
  }
}

Usage with Zed

Add to your Zed settings.json:

If installed from PyPI:

"context_servers": {
  "honeybadger": {
    "command": {
      "path": "uvx",
      "args": ["honeybadger-mcp-server"],
      "env": {
        "HONEYBADGER_API_KEY": "your-api-key-here",
        "HONEYBADGER_PROJECT_ID": "your-project-id-here"
      }
    }
  }
}

For local development:

"context_servers": {
  "honeybadger": {
    "command": {
      "path": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/honeybadger-mcp",
        "-m",
        "honeybadger_mcp_server"
      ],
      "env": {
        "HONEYBADGER_API_KEY": "your-api-key-here",
        "HONEYBADGER_PROJECT_ID": "your-project-id-here"
      }
    }
  }
}

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx honeybadger-mcp-server

Or if you've installed the package in a specific directory or are developing on it:

cd path/to/servers/src/honeybadger
npx @modelcontextprotocol/inspector uv run honeybadger_mcp_server

Running tail -n 20 -f ~/Library/Logs/Claude/mcp*.log will show the logs from the server and may help you debug any issues.

Development

If you are doing local development, you can test your changes using the MCP inspector:

# From your project directory
npx @modelcontextprotocol/inspector -- uv run --directory . -m honeybadger_mcp_server

Running tail -n 20 -f ~/Library/Logs/Claude/mcp*.log will show the logs from the server and may help you debug any issues.

Docker Support

The MCP server can be run in a Docker container. This provides an isolated environment and makes deployment easier.

Building the Docker Image

# Build the image
docker build -t honeybadger-mcp-server .

Running with Docker

# Run the container with your Honeybadger credentials
docker run \
  -e HONEYBADGER_API_KEY=your_api_key_here \
  -e HONEYBADGER_PROJECT_ID=your_project_id_here \
  honeybadger-mcp-server

# Run with custom verbosity level
docker run \
  -e HONEYBADGER_API_KEY=your_api_key_here \
  -e HONEYBADGER_PROJECT_ID=your_project_id_here \
  honeybadger-mcp-server --verbose

# Run in detached mode
docker run -d \
  -e HONEYBADGER_API_KEY=your_api_key_here \
  -e HONEYBADGER_PROJECT_ID=your_project_id_here \
  honeybadger-mcp-server

Environment Variables

The Docker container accepts the following environment variables:

  • HONEYBADGER_API_KEY (required): Your Honeybadger API key
  • HONEYBADGER_PROJECT_ID (required): Your Honeybadger Project ID

Docker Best Practices

  1. Never commit your API key or Project ID in the Dockerfile or docker-compose files
  2. Use environment files or secure secrets management for sensitive credentials
  3. Consider using Docker health checks in production
  4. The container runs as a non-root user for security

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

honeybadger_mcp_server-0.1.0.tar.gz (65.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

honeybadger_mcp_server-0.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file honeybadger_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: honeybadger_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 65.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for honeybadger_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ac8b00809b92dfc0fc74efa364fbf707849611dcc7f04d244c6cb89b4c754aac
MD5 0a43f400dde6964632aebb9bf6c63142
BLAKE2b-256 1c5e1c7663e665aa756d8e1109399e02c545f3eef22c3b78e45c8239d21fd85f

See more details on using hashes here.

File details

Details for the file honeybadger_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for honeybadger_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4aca327f9015249f6b0dac7b056b9bf7d2b3b0dbeb4c13ca8a14a23376908ef0
MD5 9cc80ec32202bf383e6baa715aba1b7f
BLAKE2b-256 82189b59b356d742bd2f4d3af0ab35c1b8e9c9ccce4764f5838c78362301f1cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page