MCP ExplorerExplorer

Rollbar Mcp Server

@rollbaron a year ago
8 MIT
FreeCommunity
AI Systems
Pre-release - Model Context Protocol server for Rollbar

Overview

What is Rollbar Mcp Server

rollbar-mcp-server is a pre-release Model Context Protocol server designed for integration with Rollbar, allowing AI tools to interact with Rollbar’s error monitoring and reporting capabilities.

Use cases

Use cases include diagnosing the root cause of specific Rollbar items, integrating Rollbar’s error monitoring into AI-driven applications, and enhancing debugging processes in software development.

How to use

To use rollbar-mcp-server, install the necessary dependencies with ‘npm install’ and build the project using ‘npm run build’. Configure your .mcp.json or .vscode/mcp.json file to include the server settings and provide your Rollbar access token.

Key features

Key features include the implementation of the ‘stdio’ server type, allowing direct execution by AI tools, and the ability to fetch item details from Rollbar using the ‘get-item-details’ tool.

Where to use

rollbar-mcp-server is suitable for use in software development environments where error tracking and monitoring are essential, particularly in applications that utilize Rollbar for error reporting.

Content

rollbar-mcp-server

A Model Context Protocl (MCP) server for Rollbar.

[!NOTE]
This software is pre-release, alpha quality, and under active development.

Features

This MCP server implementes the stdio server type, which means your AI tool (e.g. Claude) will run it directly; you don’t run a separate process.

Configuration

ROLLBAR_ACCESS_TOKEN: a read-scope access token for your Rollbar project.

Tools

get-item-details(counter): Given an item number, fetch the item details and last occurrence details. Example prompt: Diagnose the root cause of Rollbar item #123456

get-deployments(limit): List deploy data for the given project. Example prompt: List the last 5 deployments or Are there any failed deployments?

get-version(version, environment): Fetch version details for the given version string, environment name, and the configured project.

get-top-items(environment): Fetch the top items in the last 24 hours given the environment name, and the configured project.

list-items(environment): List items filtered by status, environment and a search query.

How to Use

Tested with node 22 (nvm use 22).

Install and build:

npm install
npm run build

Claude Code

Configure your .mcp.json as follows:

{
  "mcpServers": {
    "rollbar": {
      "type": "stdio",
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/TO/rollbar-mcp-server/build/index.js"
      ],
      "env": {
        "ROLLBAR_ACCESS_TOKEN": "<project read access token>"
      }
    }
  }
}

VS Code

Configure your .vscode/mcp.json as follows:

{
  "servers": {
    "rollbar": {
      "type": "stdio",
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/TO/rollbar-mcp-server/build/index.js"
      ],
      "env": {
        "ROLLBAR_ACCESS_TOKEN": "<project read access token>"
      }
    }
  }
}

How to Develop

Install and build:

npm install
npm run build

You can test an individual tool using the @modelcontextprotocol/inspector module. For example, test the tool get-item-details with arg counter=2455389:

npx @modelcontextprotocol/inspector --cli -e ROLLBAR_ACCESS_TOKEN=$TOKEN node build/index.js --method tools/call --tool-name get-item-details --tool-arg counter=2455389 --debug

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers