Connector guide11-minute read34 MCP tools7 languages

How to Connect Rollbar to Gemini via MCP

Rollbar error monitoring in any AI agent: items with their history and occurrences, full stack traces, top active items and occurrence reports, the Metrics API, deploys, environments and code versions, RQL queries, and the account's projects, users and teams. It also resolves, mutes, assigns and snoozes items, comments on them and reports deploys.

HCBy HelpCode teamUpdated 11 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Rollbar

Rollbar

Rollbar error monitoring: items with their history and occurrences, top active items and occurrence reports, the Metrics API, deploys, environments and code versions, RQL queries, and the account's projects, users and teams. Resolve, mute, assign and snooze items, comment, and report deploys.

tools

34

Region

INTL

Category

Monitoring

Authentication

API Key

Required env vars

ROLLBAR_ACCESS_TOKEN
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Rollbar in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Rollbar error monitoring in any AI agent: items with their history and occurrences, full stack traces, top active items and occurrence reports, the Metrics API, deploys, environments and code versions, RQL queries, and the account's projects, users and teams. It also resolves, mutes, assigns and snoozes items, comments on them and reports deploys.

Try asking

Example prompts for Rollbar

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Rollbar · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Rollbar, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Rollbar + Gemini

Rollbar error monitoring in any AI agent: items with their history and occurrences, full stack traces, top active items and occurrence reports, the Metrics API, deploys, environments and code versions, RQL queries, and the account's projects, users and teams. It also resolves, mutes, assigns and snoozes items, comments on them and reports deploys.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

ROLLBAR_ACCESS_TOKEN

Step 1 — Get credentials

Setting up takes about 3 minutes. You need a Rollbar account and one access token. Which kind of token you paste decides what the connector can reach:

  1. One project: in the project open Settings, Project Access Tokens and create or copy a project access token. Give it the read scope for reading, write to change items and post_server_item to report deploys. A project token always works on its own project, but it cannot list projects, users or teams.
  2. The whole account: create an account access token instead. A service token (account Settings, API Access Tokens, Service tab) reaches every project; a personal access token (User Settings, Personal access tokens) can do only what its user can do. Their scopes are read and write. With an account token the AI passes project_id (from rollbar_list_projects) on project tools, and rollbar_list_items searches every project the token can read unless you name project_ids.
  3. Paste the token into ROLLBAR_ACCESS_TOKEN. It is sent as the X-Rollbar-Access-Token header to https://api.rollbar.com/api/1.
  4. Install the connector and run rollbar_list_items to check the token.

Only a personal access token can comment on items, and only a project token with post_server_item can report deploys.

What is broken right now: rollbar_get_top_active_items shows the items with the most occurrences in the last hours (1 to 168, default 24) with hourly counts, like the Top 10 on the project dashboard. rollbar_list_items lists and searches items (grouped errors and messages) by status, level, environment, framework, assignee, snooze state or the same search text as the Items page. rollbar_get_item reads one item. The number in a Rollbar URL (#123) is the project counter, not the item id: rollbar_get_item_by_counter turns a counter, or the UUID of an occurrence, into the item.

Investigating: rollbar_list_item_occurrences lists the single events of one item and rollbar_list_occurrences the latest events of the whole project, each with timestamp, code version and payload. rollbar_get_occurrence returns the full payload as in the Raw JSON view: exception class and message, stack trace frames, request, person, server, client, custom data and telemetry. rollbar_list_item_events shows who commented on, changed, assigned, snoozed or merged an item.

Triage: rollbar_update_item resolves an item (optionally with resolved_in_version, for example a git SHA), mutes or reactivates it, changes its level or title, assigns it to a user or team (ids from rollbar_list_users and rollbar_list_teams) or snoozes it for a number of seconds (snoozing needs a paid plan). rollbar_add_item_comment adds a comment in Markdown to the item's timeline. These need the write scope.

Trends and metrics: rollbar_get_occurrence_counts gives occurrences per minute, hour or day, rollbar_get_activated_item_counts new and reactivated items per day, and rollbar_get_item_metrics occurrence counts with first and last occurrence for a list of items. On the Advanced plan, rollbar_query_occurrence_metrics queries the Metrics API with filters, grouping and aggregates (for example occurrences per environment per day, or the top browsers of an item), and rollbar_get_resolution_time_metrics gives the time to resolve items (median, mean, min or max) per period.

Releases: rollbar_list_deploys, rollbar_get_deploy and rollbar_list_environments read deploys and environments. rollbar_report_deploy records a deploy of a revision to an environment, and rollbar_update_deploy finishes one reported as started (succeeded, failed or timed_out). To see what a release broke, rollbar_get_version counts new, reactivated, repeated and resolved items of one code version in one environment, and rollbar_list_version_items with event: new lists the items first seen in it.

RQL: for ad hoc analysis the AI starts a query in Rollbar's SQL-like language with rollbar_create_rql_job (tables item_occurrence and deploy), polls rollbar_get_rql_job until status is success and reads the rows with rollbar_get_rql_job_result. rollbar_list_rql_jobs and rollbar_cancel_rql_job manage earlier and running jobs. RQL changes no data.

Account: with an account token, rollbar_list_projects, rollbar_get_project, rollbar_list_users, rollbar_get_user and rollbar_list_teams.

Switched off at install: rollbar_request_person_deletion, which erases a tracked person (the end user attached to occurrences) from every project of the account, for example for a GDPR request. It cannot be undone, so a workspace admin turns it on when needed; rollbar_get_person_deletion_status then follows the job.

Data formats: every answer is {"err": 0, "result": ...}; err: 1 comes with a message. rollbar_report_deploy answers {"data": {"deploy_id": ...}}. All timestamps are Unix seconds in GMT, and report graphs are [timestamp, count] pairs. Item status is active, resolved, muted or archived; level is debug, info, warning, error or critical. Occurrence lists leave out request headers, cookies and notifier details; the full payload of rollbar_get_occurrence may contain personal data of your end users.

Paging: items come 100 per page; occurrences, deploys, environments and item events 20 per page by default, with limit up to 5000 where offered. Pass page from 1; occurrence lists can also page with last_id. total_count is null on projects with more than 100,000 items.

Limits: each token has its own Rollbar rate limit; X-Rate-Limit-Remaining shows what is left. The Metrics API tools need the Advanced plan.

Common errors: 401 means a missing or malformed token. 403 means the token is disabled, lacks the scope, is a project token on an account tool, or (Requires project access) is an account token without a usable project_id. 404 is an unknown id or one of another account, 422 invalid parameters and 429 the token's rate limit.

The connector does not send errors to Rollbar (that is the job of the Rollbar SDK in your app), does not delete items, and does not create projects, teams, users or access tokens.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Gemini

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Gemini CLI reads MCP servers from ~/.gemini/settings.json (on Windows %USERPROFILE%\.gemini\settings.json). Add:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of YOUR_MCP_API_KEY.
  2. Save the file and restart gemini.
  3. Run /mcp inside Gemini CLI (or gemini mcp list in your shell): anythingmcp should show as connected.
  4. Start prompting: Gemini CLI can now call the Rollbar tools.

Available tools

ToolWhat it does
rollbar_list_itemsList or search items (grouped errors and messages), 100 per page: id, counter, title, level, status, environment, framework, total…
rollbar_get_itemGet one item by its id: title, level, status, environment, platform, framework, counter, total occurrences, first and last occurrence (with…
rollbar_get_item_by_counterFind an item by the project counter shown in Rollbar URLs and the UI (#123), or by the UUID of one of its occurrences
rollbar_update_itemChange an item: resolve it (optionally with the version it was fixed in), mute it or reactivate it, change its level or title, assign it to…
rollbar_list_item_eventsList the history of an item, oldest first: comments, status, level, title and assignment changes, snoozes and merges, each with user and…
rollbar_add_item_commentAdd a comment to an item's timeline, attributed to the token's user
rollbar_list_occurrencesList the project's latest occurrences (single error events), newest first: occurrence id, item id, timestamp, code version and the payload…
rollbar_list_item_occurrencesList the occurrences of one item, newest first, with timestamp, code version and payload (exception, stack trace, request, person)
rollbar_get_occurrenceGet one occurrence with its full payload, as the Raw JSON view in Rollbar: exception class and message, stack trace frames, request…
rollbar_get_top_active_itemsGet the items with the most occurrences in the last hours (like the Top 10 on the project dashboard), each with its hourly occurrence counts
rollbar_get_occurrence_countsGet the recent number of occurrences per minute, hour or day as [timestamp, count] pairs (the Hourly and Daily Error/Critical Occurrences…
rollbar_get_activated_item_countsGet the number of new and reactivated items per day as [timestamp, count] pairs (the Daily New/Reactivated Items graph), in the project…
rollbar_get_item_metricsGet metrics for a list of items of one project: occurrence counts and the time of the first and last occurrence of each
rollbar_query_occurrence_metricsQuery occurrence metrics over time with filters, grouping and aggregates (count_all, count_distinct, topk and more), e.g. occurrences per…
rollbar_get_resolution_time_metricsGet the time to resolve items over a window (median by default, or mean, min, max), per period, filtered by environments, levels and…
rollbar_list_deploysList the project's deploys, most recent first: id, environment, revision, status, user, comment and start and finish times
rollbar_get_deployGet one deploy: environment, revision, status, user, comment and start and finish times
rollbar_report_deployRecord a deploy of a revision to an environment, so new errors can be linked to it
rollbar_update_deployFinish a deploy reported as started: set its status to succeeded, failed or timed_out, with an optional comment
rollbar_list_environmentsList the environments of the project (production, staging and so on) with their ids, 20 per page
rollbar_get_versionGet what happened in one code version in one environment: when it was first and last seen, and the number of new, reactivated, repeated and…
rollbar_list_version_itemsList the items of one code version in one environment by what happened in it: new (first seen in this version), repeated, reactivated or…
rollbar_create_rql_jobStart an RQL query (Rollbar's SQL-like query language over items and occurrences), e.g. `SELECT item.counter, count(*) FROM item_occurrence…
rollbar_get_rql_jobCheck an RQL job: status (new, running, success, failed, cancelled, timed_out), query and times
rollbar_get_rql_job_resultGet the result of a finished RQL job: column names (selectionColumns) and rows, plus any errors and warnings
rollbar_list_rql_jobsList earlier RQL jobs with their query, status and times, newest first
rollbar_cancel_rql_jobCancel an RQL job that is still new or running, e.g. a slow query that was started by mistake
rollbar_list_projectsList the projects of the account: id, name, status and creation date
rollbar_get_projectGet one project: id, name, account, status, time zone and grouping settings, and creation date (integration settings are left out)
rollbar_list_usersList the users of the account (id, username, email), optionally only the one with an email address
rollbar_get_userGet one user of the account: id, username, email and whether email notifications are on
rollbar_list_teamsList the teams of the account with id, name and access level (owner, standard, light, view)
rollbar_request_person_deletionErase a tracked person (the end user attached to occurrences) from every project of the account, by exactly one of email, username or id…
rollbar_get_person_deletion_statusCheck a person deletion job: state (new, running, paused, success, cancelled or failed)

Example prompts

  • "What are the top errors in production over the last 24 hours, and which ones are new?"
  • "Show me the full stack trace of the latest occurrence of Rollbar item #482."
  • "Which items were first seen in version 3f9c2ab in production? Group them by level."
  • "Resolve the TimeoutError item in version 1.8.3 and assign the NullPointerException to the backend team."
  • "How many error and critical occurrences did we have per day this week compared with last week?"

FAQ

Where does Gemini CLI look for MCP servers? In ~/.gemini/settings.json for your user, or in .gemini/settings.json inside a project. gemini mcp list shows each server and whether it connects.

Next steps

Was this guide helpful?

Your Rollbar agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect Rollbar to ChatGPT via MCP

Rollbar error monitoring in any AI agent: items with their history and occurrences, full stack traces, top active items and occurrence reports, the Metrics API, deploys, environments and code versions, RQL queries, and the account's projects, users and teams. It also resolves, mutes, assigns and snoozes items, comments on them and reports deploys.

Connectors

How to Connect Rollbar to Claude via MCP

Rollbar error monitoring in any AI agent: items with their history and occurrences, full stack traces, top active items and occurrence reports, the Metrics API, deploys, environments and code versions, RQL queries, and the account's projects, users and teams. It also resolves, mutes, assigns and snoozes items, comments on them and reports deploys.

Connectors

How to Connect Rollbar to Cursor via MCP

Rollbar error monitoring in any AI agent: items with their history and occurrences, full stack traces, top active items and occurrence reports, the Metrics API, deploys, environments and code versions, RQL queries, and the account's projects, users and teams. It also resolves, mutes, assigns and snoozes items, comments on them and reports deploys.

Connectors

How to Connect Rollbar to Meta Muse via MCP

Rollbar error monitoring in any AI agent: items with their history and occurrences, full stack traces, top active items and occurrence reports, the Metrics API, deploys, environments and code versions, RQL queries, and the account's projects, users and teams. It also resolves, mutes, assigns and snoozes items, comments on them and reports deploys.

Connectors

Rollbar to MCP: Errors, Occurrences, Stack Traces, Deploys, Metrics and RQL in any AI Agent

Rollbar error monitoring in any AI agent: items with their history and occurrences, full stack traces, top active items and occurrence reports, the Metrics API, deploys, environments and code versions, RQL queries, and the account's projects, users and teams. It also resolves, mutes, assigns and snoozes items, comments on them and reports deploys.

Connectors

How to Connect Rollbar to Microsoft Copilot via MCP

Rollbar error monitoring in any AI agent: items with their history and occurrences, full stack traces, top active items and occurrence reports, the Metrics API, deploys, environments and code versions, RQL queries, and the account's projects, users and teams. It also resolves, mutes, assigns and snoozes items, comments on them and reports deploys.