A dynamic MCP server implementation for Rollbar API integration, enabling LLMs to interact with Rollbar error tracking data.
ROLLBAR_PROJECT_TOKEN
: Rollbar Project Access Token - Required for APIs to retrieve project error and deployment informationROLLBAR_ACCOUNT_TOKEN
: Rollbar Account Access Token - Required for APIs to access account-wide project and user informationROLLBAR_PROJECT_ID
: Default project ID (used when not specified in requests) - OptionalROLLBAR_PROJECT_NAME
: Default project name for reference - OptionalNote: Depending on the features you use, you'll need either
ROLLBAR_PROJECT_TOKEN
,ROLLBAR_ACCOUNT_TOKEN
, or both. For full functionality, it's recommended to configure both tokens, but the service will work with only the relevant token for specific APIs.
API | Required Token |
---|---|
rollbar_list_items | ROLLBAR_PROJECT_TOKEN |
rollbar_get_item | ROLLBAR_PROJECT_TOKEN |
rollbar_get_item_by_counter | ROLLBAR_PROJECT_TOKEN |
rollbar_list_occurrences | ROLLBAR_PROJECT_TOKEN |
rollbar_get_occurrence | ROLLBAR_PROJECT_TOKEN |
rollbar_list_environments | ROLLBAR_PROJECT_TOKEN |
rollbar_list_deploys | ROLLBAR_PROJECT_TOKEN |
rollbar_get_deploy | ROLLBAR_PROJECT_TOKEN |
rollbar_list_projects | ROLLBAR_ACCOUNT_TOKEN |
rollbar_get_project | ROLLBAR_ACCOUNT_TOKEN |
rollbar_list_users | ROLLBAR_ACCOUNT_TOKEN |
rollbar_get_user | ROLLBAR_ACCOUNT_TOKEN |
You can obtain Rollbar access tokens as follows:
Add to your ~/.cursor/mcp.json
:
{
"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"
}
}
}
}
After cloning this repository, follow these steps to set up the MCP client:
$ cd mcp-rollbar-server
$ npm install
$ npm run build
Add to your ~/.cursor/mcp.json
:
{
"mcpServers": {
"rollbar-mcp": {
"command": "YOUR_NODE_PATH",
"args": ["YOUR_PROJECT_PATH/mcp-rollbar-server/dist/src/index.js"],
"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"
}
}
}
}
To find the value for "YOUR_NODE_PATH", run which node in your terminal.
List the most recent errors in my production environment.
Get detailed information for error item with ID 12345, including stack trace and recent occurrences.
Show me the recent deployments for project 67890.
List all critical errors that occurred in the last week.
List items (errors) from Rollbar
status
(string, optional): Filter by status (active, resolved, muted, etc.)level
(string, optional): Filter by level (critical, error, warning, info, debug)environment
(string, optional): Filter by environment (production, staging, etc.)limit
(number, optional): Maximum number of items to return (default: 20)page
(number, optional): Page number for pagination (default: 1)Get a specific item (error) from Rollbar using the internal item ID maintained by Rollbar's system.
id
(number): Item IDGet a specific item by project counter from Rollbar. The counter is the visible ID that appears in the Rollbar UI.
counter
(number): Project counter for the itemList occurrences of errors from Rollbar
itemId
(number, optional): Item ID to filter occurrenceslimit
(number, optional): Maximum number of occurrences to return (default: 20)page
(number, optional): Page number for pagination (default: 1)Get a specific occurrence of an error from Rollbar
id
(string): Occurrence IDList projects from Rollbar
Get a specific project from Rollbar
id
(number): Project IDList environments from Rollbar
projectId
(number): Project IDList users from Rollbar
Get a specific user from Rollbar
id
(number): User IDList deploys from Rollbar
projectId
(number): Project IDenvironment
(string, optional): Environment namelimit
(number, optional): Maximum number of deploys to return (default: 20)page
(number, optional): Page number for pagination (default: 1)Get a specific deploy from Rollbar
deployId
(number): Deploy IDSeamless access to top MCP servers powering the future of AI integration.