RA

Raygun MCP Server: Crash Reporting and Monitoring

Interact with crash reports and real-time monitoring on the Raygun MCP server to investigate errors, prioritize fixes, and boost app reliability.

Quick Install
npx -y @MindscapeHQ/mcp-server-raygun

Overview

The Raygun MCP Server implements a Model Context Protocol (MCP) adapter for Raygun, providing a focused interface for interacting with crash reports and real-time monitoring data. It acts as a bridge between your Raygun project and developer tools, exposing a consistent API and streaming endpoints so you can query events, inspect stack traces, and subscribe to live error feeds for faster triage and debugging.

By centralizing crash and telemetry access, the MCP server helps teams prioritize fixes, verify releases, and monitor production stability in near real time. Developers can embed the server into CI pipelines, dashboards, or chatops workflows to surface the most critical issues and reduce time-to-resolution.

Features

  • Query historical crash reports and aggregation metadata
  • Real-time event streaming (WebSocket or Server-Sent Events) for live error notifications
  • Filter and paginate results by application, environment, severity, tags, and timeframe
  • Consistent REST API that can be integrated with dashboards, automation scripts, or developer tools
  • Lightweight adapter that proxies Raygun data while applying access controls or transformations
  • Configurable via environment variables and supports containerized deployment

Installation / Configuration

Clone the repository and install dependencies:

git clone https://github.com/MindscapeHQ/mcp-server-raygun.git
cd mcp-server-raygun
# If this is a Node project
npm install
# Or if it uses another language, follow the language-specific install steps

Create a configuration file or environment file (.env) with the required Raygun credentials and server settings. Example .env:

RAYGUN_API_KEY=your-raygun-api-key
RAYGUN_APP_ID=your-raygun-app-id
MCP_PORT=3000
MCP_HOST=0.0.0.0
LOG_LEVEL=info

Start the server locally:

# If provided by the project
npm start
# Or run the binary / script directly
node server.js

Docker (example):

# Build (if project includes Dockerfile)
docker build -t mcp-server-raygun .

# Run container
docker run -e RAYGUN_API_KEY=your-key -e RAYGUN_APP_ID=app-id -p 3000:3000 mcp-server-raygun

Adjust the configuration to match your environment and any reverse proxy or authentication layers you plan to use.

Available Resources

  • GitHub repository: https://github.com/MindscapeHQ/mcp-server-raygun
  • REST API endpoints for querying reports and metadata
  • Real-time streaming endpoint for live notifications (WebSocket / SSE)
  • Environment-driven configuration for CI/CD and container orchestration

Environment variables (common):

VariablePurpose
RAYGUN_API_KEYAPI key for accessing Raygun REST APIs
RAYGUN_APP_IDTarget Raygun application/project identifier
MCP_PORTLocal port the MCP server will listen on
MCP_HOSTHost binding (default 0.0.0.0)
LOG_LEVELLogging verbosity (debug, info, warn, error)

Note: Exact variable names and endpoint URLs may vary by release—refer to the repository’s configuration docs for up-to-date details.

Use Cases

  • Triage incoming crashes during a release window: subscribe to the real-time stream to surface new, high-severity exceptions as they occur and route them to the on-call channel.
  • Prioritize bug fixes based on impact: query aggregated crash reports to find the most frequent exceptions, affected versions, and common user environments before planning sprint work.
  • Integrate with custom dashboards: use the REST API to fetch summary metrics and error trends and render them in internal dashboards or status pages.
  • Automate alerts and workflows: connect the MCP server stream to automation tools to create tickets, trigger rollbacks, or run health checks when error rates spike.
  • Reproduce and debug: retrieve raw payloads and stack traces from the API to reproduce issues locally or attach them to issue trackers with full context.

Example API Calls

Fetch recent reports (example):

curl "http://localhost:3000/api/reports?appId=your-app-id&limit=25&sort=latest"

Subscribe to live events (WebSocket example):

# Using wscat (for WebSocket)
wscat -c "ws://localhost:3000/stream?appId=your-app-id"

Filter by environment and severity:

curl "http://localhost:3000/api/reports?appId=your-app-id&environment=production&severity=error"

Next Steps

  • Review the repository README and any examples included for endpoint specifics and authentication methods.
  • Add appropriate access controls if exposing the MCP server to public networks.
  • Integrate the server into your monitoring or CI pipelines to make crash data actionable for teams.

For detailed usage and the latest configuration options, consult the GitHub repository: https://github.com/MindscapeHQ/mcp-server-raygun.