home / mcp / rollbar mcp server

Rollbar MCP Server

MCP server implementation for Rollbar API integration

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "hiyorineko-mcp-rollbar-server": {
      "command": "npx",
      "args": [
        "-y",
        "@hiyorineko/mcp-rollbar-server"
      ],
      "env": {
        "ROLLBAR_PROJECT_ID": "YOUR_PROJECT_ID",
        "ROLLBAR_PROJECT_NAME": "YOUR_PROJECT_NAME",
        "ROLLBAR_ACCOUNT_TOKEN": "YOUR_ACCOUNT_ACCESS_TOKEN",
        "ROLLBAR_PROJECT_TOKEN": "YOUR_PROJECT_ACCESS_TOKEN"
      }
    }
  }
}

You can connect your Rollbar data to your workflow with this MCP server, enabling you to query errors, deployments, users, environments, and more directly from an MCP client. It streamlines access to Rollbar’s error tracking data and lets you build conversational or automated tools on top of Rollbar API endpoints.

How to use

You integrate the Rollbar MCP server with your MCP client to query and manage Rollbar data. Use an MCP client to list and filter error items, view error details and occurrences, inspect deployments, and retrieve project, environment, user, and team information. You can also fetch environments, projects, and users for account-wide access if you have the appropriate tokens. Start by configuring tokens, then choose either a remote (HTTP) or local (stdio) connection method as shown in the examples.

How to install

Prerequisites you need before installation:

Install Node.js and npm on your system. You will run build steps that depend on npm to install dependencies and compile the MCP server.

Step 1. Build and prepare the server for local usage.

Additional sections

Configuration and tokens you will use include Rollbar project and account tokens. You may need both depending on the APIs you plan to call. The tokens are used to access project-level and account-wide Rollbar data.

Environment variables you will configure for the Rollbar MCP server are:

- ROLLBAR_PROJECT_TOKEN: Rollbar Project Access Token - required for APIs that retrieve project error and deployment information.

- ROLLBAR_ACCOUNT_TOKEN: Rollbar Account Access Token - required for APIs that access account-wide project and user information.

- ROLLBAR_PROJECT_ID: Default project ID (optional when not specified in requests).

- ROLLBAR_PROJECT_NAME: Default project name for reference (optional).

Note: The needed tokens depend on the features you use. For full functionality, configure both tokens, but the service will work with the relevant token for specific APIs.

Two example MCP config snippets appear for connecting the Rollbar MCP server. One demonstrates a remote execution using npx, and the other shows a local Node.js runtime path.

{
  "mcpServers": {
    "rollbar_mcp": {
      "command": "npx",
      "args": ["-y", "@hiyorineko/mcp-rollbar-server"],
      "env": {
        "ROLLBAR_PROJECT_TOKEN": "YOUR_PROJECT_ACCESS_TOKEN",
        "ROLLBAR_ACCOUNT_TOKEN": "YOUR_ACCOUNT_ACCESS_TOKEN",
        "ROLLBAR_PROJECT_ID": "YOUR_PROJECT_ID",
        "ROLLBAR_PROJECT_NAME": "YOUR_PROJECT_NAME"
      }
    }
  }
}

Tools

The Rollbar MCP server exposes a set of tools (endpoints) to interact with Rollbar data. Each tool corresponds to a Rollbar API operation, with inputs and returns described for practical use.

rollbar_list_items — List items (errors) from Rollbar. Supports filters like status, level, environment, and pagination.

rollbar_get_item — Get detailed information for a specific error item by its internal ID.

rollbar_get_item_by_counter — Retrieve an item by its Rollbar project counter (visible ID in the UI).

rollbar_list_occurrences — List occurrences for an error item, with optional item filter and pagination.

rollbar_get_occurrence — Get details about a specific error occurrence by its ID.

rollbar_list_projects — List projects available in the account.

rollbar_get_project — Retrieve a single project by its ID.

rollbar_list_environments — List environments for a given project.

rollbar_list_users — List users associated with the account.

rollbar_get_user — Get detailed information about a specific user by ID.

rollbar_list_deploys — List deploys for a project, with optional environment and pagination.

rollbar_get_deploy — Get detailed information about a particular deploy.

Available tools

rollbar_list_items

List error items with optional filters for status, level, environment, and pagination.

rollbar_get_item

Get detailed information for a specific error item by its internal ID.

rollbar_get_item_by_counter

Get a specific item by its project counter (UI-visible ID).

rollbar_list_occurrences

List occurrences for a given error item with optional limits and pagination.

rollbar_get_occurrence

Get detailed information about a specific error occurrence.

rollbar_list_projects

List all projects accessible with the provided credentials.

rollbar_get_project

Get detailed information about a single project by ID.

rollbar_list_environments

List environments for the specified project.

rollbar_list_users

List users associated with the account.

rollbar_get_user

Get detailed information about a user by ID.

rollbar_list_deploys

List deploys for a project and environment, with pagination.

rollbar_get_deploy

Get detailed information about a specific deployment.