# Rollbar — how to use (mcp.ai)

Connect your Rollbar account and use 17 tools for developer tools straight from your AI agent. Connect with your own API key. Error tracking and monitoring platform for developers.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_rollbar?ms=1787295840000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `rollbar_check_team_project_assignment`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/rollbar`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/rollbar/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/rollbar/check/team/project/assignment` — Tool to check if a team is assigned to a project in Rollbar. Use when you need to verify team-project relationships or validate access permissions. Returns 404 if the project is not assigned to the te
  - body: { team_id: integer, project_id: integer }
- `POST https://api.mcp.ai/api/rollbar/check/user/team/assignment` — Tool to check if a user is assigned to a team in Rollbar. Use when you need to verify team membership for a specific user.
  - body: { team_id: integer, user_id: integer }
- `POST https://api.mcp.ai/api/rollbar/get/occurrences/metrics` — Get occurrence counts over a span of time with flexible grouping, filtering, and aggregation. Use this to analyze error patterns, track occurrence metrics across time periods, and generate custom repo
  - body: { sort?: object, limit?: integer, offset?: integer, filters?: object[], end_time: integer, group_by?: string[], timezone?: string, aggregates?: object[], start_time: integer, granularity?: string }
- `POST https://api.mcp.ai/api/rollbar/get/project` — Tool to retrieve details of a specific Rollbar project by its ID. Use when you need to get project information including name, status, settings, and timestamps.
  - body: { project_id: integer }
- `POST https://api.mcp.ai/api/rollbar/get/team` — Tool to retrieve details of a specific team by ID. Use when you need to fetch information about a team including its name, account ID, and access level.
  - body: { team_id: integer }
- `POST https://api.mcp.ai/api/rollbar/get/ttr/metrics` — Get resolution time metrics for a list of projects. Use when you need to analyze how long it takes to resolve issues in Rollbar projects.
  - body: { levels?: string[], end_time?: integer, function?: string, timezone?: string, frameworks?: string[], start_time: integer, granularity?: string, project_ids?: integer[], environments?: string[] }
- `POST https://api.mcp.ai/api/rollbar/get/user` — Tool to retrieve a specific user from Rollbar by their user ID. Use when you need to fetch user details including username, email, and notification settings.
  - body: { user_id: integer }
- `POST https://api.mcp.ai/api/rollbar/list/all/projects` — Tool to list all projects in the Rollbar account. Use when you need to retrieve all projects associated with the account.
- `POST https://api.mcp.ai/api/rollbar/list/all/teams` — Tool to list all teams in a Rollbar account. Use when you need to retrieve all teams for an account.
- `POST https://api.mcp.ai/api/rollbar/list/all/users` — Tool to list all users in the Rollbar account. Use when you need to retrieve user information or filter users by email address.
  - body: { email?: string }
- `POST https://api.mcp.ai/api/rollbar/list/project/teams` — Tool to list all teams with access to a Rollbar project. Use when you need to retrieve teams associated with a specific project.
  - body: { project_id: integer, exclude_builtin_teams?: integer }
- `POST https://api.mcp.ai/api/rollbar/list/rql/jobs` — Tool to list all RQL (Rollbar Query Language) jobs. Use when you need to retrieve all RQL jobs and their statuses.
  - body: { page?: integer }
- `POST https://api.mcp.ai/api/rollbar/list/team/invitations` — Tool to list pending invitations to a Rollbar team. Use when you need to view all outstanding team invitations.
  - body: { page?: integer, team_id: integer }
- `POST https://api.mcp.ai/api/rollbar/list/team/projects` — Tool to list all projects a team has access to in Rollbar. Use when you need to see which projects are associated with a specific team.
  - body: { team_id: integer }
- `POST https://api.mcp.ai/api/rollbar/list/team/users` — Tool to list all users in a Rollbar team. Use when you need to retrieve team membership information.
  - body: { page?: integer, team_id: integer }
- `POST https://api.mcp.ai/api/rollbar/list/user/projects` — Tool to list all projects a user has access to. Use when you need to retrieve projects for a specific user by their user ID.
  - body: { user_id: integer }
- `POST https://api.mcp.ai/api/rollbar/list/user/teams` — Tool to list all teams a user belongs to in Rollbar. Use when you need to retrieve team memberships for a specific user.
  - body: { user_id: string }

## Example prompts
- "What can I do in Rollbar?"
- "Show me a summary of my Rollbar account"

## More
- Page: https://mcp.ai/rollbar
- Agent spec (llms.txt): https://mcp.ai/rollbar/llms.txt
- Postman collection: https://mcp.ai/rollbar/postman.json
