Skip to content

Menu

Rollbar MCP Server logo

Rollbar MCP Server

Published · Updated

At a glance

Watch out for
Configuring both a user token and an account token fails at startup, so you have to pick one mode.

Rollbar publishes its own MCP server in the rollbar/rollbar-mcp-server repository, distributed on npm as @rollbar/mcp-server. It runs over stdio, so your AI tool starts it as a child process; there is no separate service to host and no HTTP endpoint to point at.

The server talks to the Rollbar API with one of three kinds of credentials. A project access token covers a single project, an account access token reaches every project in the account, and a user-scoped account token acts as you, which is what you need for posting comments and for Rollbar's AI root cause analysis and Resolve tasks. Multiple projects can also be described in a .rollbar-mcp.json config file with a token per project.

Beyond the usual item lookups, it exposes occurrence and trace metrics, session replays, deploy history, and tools to start and follow RCA and Resolve runs, which can end in a pull request you refine with feedback.

How it connects

Your AI app

An assistant or agent that supports MCP

Rollbar MCP Server

Runs as

  • npx (Node.js)

Gives the agent

  • Items and occurrences
  • Triage
  • Metrics and replays
  • History and comments
  • Updating items
  • RCA and Resolve

Rollbar

The data or system the tools act on

Your AI app talks to Rollbar MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Items and occurrences
get-item-details returns an item plus its latest occurrence, list-items searches by status, level, environment or query, and list-occurrences pages through the individual occurrences behind an item.
Triage
get-top-items shows the items with the most occurrences in the last 24 hours for an environment, and get-version and get-deployments line errors up against releases.
Metrics and replays
get-metrics answers count and breakdown questions against the occurrences or traces tables, and get-replay fetches a session replay so you can see what a user did before an error.
History and comments
list-item-events reads an item's history such as comments and status changes, and post-item-comment adds a comment as the connected user.
Updating items
update-item changes status, level, title, assignee, resolved version, snooze state or owning team.
RCA and Resolve
start-rca and start-resolve kick off Rollbar's root cause analysis and fix runs, list-agent-tasks and get-agent-task-status follow them, and send-resolve-feedback refines an existing Resolve pull request.

Setting it up

For Claude Code, add a server to .mcp.json with "type": "stdio", "command": "npx" and "args": ["-y", "@rollbar/mcp-server@latest"], and put ROLLBAR_ACCESS_TOKEN in its env block for a single project. Swap that for ROLLBAR_ACCOUNT_ACCESS_TOKEN to reach every project in the account, ROLLBAR_USER_ACCESS_TOKEN for user mode, or ROLLBAR_CONFIG_FILE pointing at a .rollbar-mcp.json file listing several projects. You create an account token under account settings, Account Access Tokens, with read scope, or read and write if you plan to use update-item. ROLLBAR_API_BASE is optional and overrides the default https://api.rollbar.com/api/1. The README gives the same command for VS Code (Copilot now reads it under mcpServers in the workspace-root .mcp.json), for Cursor, and for Codex CLI under [mcp_servers.rollbar] in ~/.codex/config.toml.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Ask what is breaking in production right now and get the top items from the last 24 hours with their latest stack traces.
  • Check whether errors started after a particular deploy by comparing get-deployments with get-version for a git SHA.
  • Pull a session replay for an error to see the user's steps before it fired.
  • Start a root cause analysis on an item, poll its status, and feed corrections back into the resulting Resolve pull request.
  • Mark an item resolved in a version and leave a comment explaining the fix.

Limitations and things to watch

  • Configuring both a user token and an account token fails at startup, so you have to pick one mode.
  • post-item-comment needs a user token with read and write scope and comment permission; project tokens and ordinary account tokens cannot post comments.
  • start-rca, start-resolve and send-resolve-feedback consume credits, need AI features enabled on the account, and are non-idempotent writes that are not retried automatically.
  • list-occurrences returns an explicit group_item_not_supported error for group items, because Rollbar's public API cannot list their occurrences yet.
  • Large occurrences are capped by max_tokens (default 20000), so very long stack traces or request payloads can come back trimmed.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…