Introduction
The Rootly MCP Server implements the Model Context Protocol to expose Rootly incident data and actions as tools that any MCP-compatible client can use. This means you can query incidents, check on-call schedules, find similar past incidents, and take action — all from within Cursor, Windsurf, Claude Code, Gemini CLI, or any other MCP-compatible environment. The server dynamically generates tools from Rootly’s OpenAPI specification, so it always reflects the current API surface. It also includes a set of intelligent tools built on top of that foundation:find_related_incidents— uses TF-IDF similarity analysis to surface historically similar incidentssuggest_solutions— mines past incident resolutions to recommend actionable next stepsget_oncall_shift_metrics— shift counts, hours, and days on-call grouped by user, team, or scheduleget_oncall_handoff_summary— current and next on-call plus incidents during shifts, with optional regional filteringget_shift_incidents— incidents during a time window, filterable by severity, status, and tags
Before You Begin
Before connecting the Rootly MCP Server, make sure you have a Rootly API token. Generate one in Account > Manage API keys > Generate New API Key. Choose the token type based on your needs:| Token Type | Access Level |
|---|---|
| Global API Key (recommended) | Full access across all teams, schedules, and incidents |
| Team API Key | Full read/write access scoped to a single team |
| Personal API Key | Inherits the permissions of the user who created it |
Tools like
get_oncall_handoff_summary and get_oncall_shift_metrics require organization-wide visibility. A Global API Key is recommended for full functionality.- Python 3.12 or higher
- The
uvpackage manager
Installation
Choose the deployment option that fits your team. The hosted option is the fastest way to get started and requires no local setup.Hosted (recommended)
Connect to Rootly’s managed MCP server — always up to date, zero maintenance. Transport Options:- Streamable HTTP:
https://mcp.rootly.com/mcp - SSE:
https://mcp.rootly.com/sse - Code Mode:
https://mcp.rootly.com/mcp-codemode
Client-Specific Setup
Claude Code
Streamable HTTP:.mcp.json in your project root:
Cursor
Add to.cursor/mcp.json or ~/.cursor/mcp.json:
Windsurf
Add to~/.codeium/windsurf/mcp_config.json:
Claude Desktop
Add toclaude_desktop_config.json:
Gemini CLI
Install as an extension:~/.gemini/settings.json:
Local Installation
The package is downloaded automatically when you first open your editor. Local installation provides additional security controls not available in the hosted version. Withuv:
uvx:
Security Controls (Local Only)
Local installations support granular permission controls through environment variables: Default Mode (All Tools):Full Access by Default — Local installations match hosted behavior with all tools available. Use
ROOTLY_MCP_ENABLE_WRITE_TOOLS=false to restrict to read-only mode.| Variable | Description | Default |
|---|---|---|
ROOTLY_API_TOKEN | Your Rootly API authentication token | Required |
ROOTLY_MCP_ENABLE_WRITE_TOOLS | Enable write operations (create, update) | true |
ROOTLY_MCP_ENABLED_TOOLS | Comma-separated allowlist of specific tools | All available tools |
Self-Hosted
For organizations that need full control over infrastructure or data flow:The MCP server is now connected. Your MCP client can call Rootly tools to list incidents, check on-call schedules, find related incidents, and more.
Alternative: Rootly CLI — For terminal-based workflows, check out the Rootly CLI which provides direct command-line access to incidents, alerts, and on-call operations.
Available Tools
The MCP server exposes 100+ tools dynamically generated from Rootly’s OpenAPI specification, plus custom agentic tools for intelligent incident analysis.Custom Agentic Tools
check_oncall_health_risk— detects workload health risk in scheduled responderscheck_responder_availability— checks responder availabilitycollect_incidents— collects incident data with filteringcreateIncident— create incidents with scoped fields for agent workflowscreate_override_recommendation— suggests on-call override recommendationsfind_related_incidents— uses TF-IDF similarity to find historically similar incidentsgetIncident— retrieve single incidents with PIR-related fieldsget_alert_by_short_id— get alerts using short IDsget_oncall_handoff_summary— complete handoff informationget_oncall_schedule_summary— schedule overviewget_oncall_shift_metrics— comprehensive shift analyticsget_server_version— server version informationget_shift_incidents— incidents during specific time periodslist_endpoints— available API endpointslist_incidents— incident listing with filterslist_shifts— on-call shift informationsearch_incidents— advanced incident searchsuggest_solutions— mines past resolutions for actionable recommendationsupdateIncident— scoped incident updates for summary and retrospective progress
OpenAPI-Generated Tools
The server includes all standard Rootly API operations for comprehensive incident management, including tools for alerts, environments, escalation policies, functionalities, incident types, on-call roles, schedules, services, severities, teams, workflows, and more.Example Skills
Rootly Incident Responder
The MCP server includes a pre-built Rootly Incident Responder skill for Claude Code that demonstrates a complete incident response workflow:- Analyzes production incidents with full context
- Finds similar historical incidents using ML-based similarity matching
- Suggests solutions based on past successful resolutions
- Coordinates with on-call teams across timezones
- Correlates incidents with recent code changes and deployments
- Creates action items and remediation plans
- Provides confidence scores and time estimates
Example Tools
On-Call Shift Metrics
Get shift counts, hours, and days on-call for any time period, grouped by user, team, or schedule:On-Call Handoff Summary
Get current and next on-call responders plus incidents that occurred during their shifts. Supports optional regional filtering to show only responders on-call during business hours in a given timezone:Shift Incidents
Incidents during a time window, filterable by severity, status, and tags. Returns an incident list plus a summary with counts and average resolution time:On-Call Health Integration
The MCP server integrates with On-Call Health to detect workload health risk in scheduled responders. Set theONCALLHEALTH_API_KEY environment variable to enable it:
Troubleshooting
The server connects but tools are not appearing
The server connects but tools are not appearing
Some MCP clients require a restart after adding a new server configuration. Fully restart your editor or AI assistant after saving the configuration. Also confirm that the JSON configuration is valid — a missing comma or bracket will silently prevent the server from loading.
Authentication errors when calling tools
Authentication errors when calling tools
Confirm that the API token is active and has not been revoked. Go to Account > Manage API keys in Rootly and verify the key exists. Also check that the token is passed correctly — for hosted configurations it goes in the
Authorization header as Bearer <token>, and for local/self-hosted it goes in the ROOTLY_API_TOKEN environment variable.Organization-wide tools return incomplete data
Organization-wide tools return incomplete data
Tools like
get_oncall_handoff_summary and get_oncall_shift_metrics require visibility across all teams. If results are incomplete, your API token may be scoped to a single team. Switch to a Global API Key for full access.The local server fails to start
The local server fails to start
Confirm that Python 3.12 or higher is installed (
python --version) and that uv is available (uv --version). If using uvx, the package is downloaded on first run — ensure you have network access. For proxy environments, you may need to configure uv proxy settings.On-Call Health tools are not available
On-Call Health tools are not available
The
check_oncall_health_risk tool only appears when ONCALLHEALTH_API_KEY is set. Confirm the environment variable is present in your MCP server configuration and that the key is valid at oncallhealth.ai.Related Pages
API Reference
Browse the full Rootly API — all endpoints exposed by the MCP server come from here.
Rootly AI
Learn about Rootly’s built-in AI features for incident management.
MCP Server on GitHub
Source code, issues, and release notes for the Rootly MCP Server.