Overview
The Rootly MCP Server enables you to resolve production incidents in under a minute without leaving your IDE. It integrates seamlessly with MCP-compatible editors like Cursor, Windsurf, and Claude, dynamically generating MCP resources from Rootly’s OpenAPI specification.Features
- Dynamic Tool Generation: Automatically creates MCP resources from Rootly’s OpenAPI (Swagger) specification
- Smart Pagination: Defaults to 10 items per request for incident endpoints to prevent context window overflow
- API Filtering: Limits exposed API endpoints for security and performance
- Intelligent Incident Analysis: Smart tools that analyze historical incident data
find_related_incidents: Uses TF-IDF similarity analysis to find historically similar incidentssuggest_solutions: Mines past incident resolutions to recommend actionable solutions
- MCP Resources: Exposes incident and team data as structured resources for easy AI reference
- Intelligent Pattern Recognition: Automatically identifies services, error types, and resolution patterns
- On-Call Health Integration: Detects workload health risk in scheduled responders
Prerequisites
- Python 3.12 or higher (for local installation only)
uvpackage manager (for local installation only)- Rootly API token with appropriate permissions
API Token Permissions
The MCP server requires a Rootly API token. Choose the appropriate token type based on your needs:- Global API Key (Recommended): Full access to all entities across your Rootly instance. Required for organization-wide visibility across teams, schedules, and incidents.
- Team API Key: Team Admin permissions with full read/edit access to entities owned by that team. Suitable for team-specific workflows.
- Personal API Key: Inherits the permissions of the user who created it. Works for individual use cases but may have limited visibility.
get_oncall_handoff_summary, get_oncall_shift_metrics, and organization-wide incident search, a Global API Key is recommended.
Generate a token in Account > Manage API keys > Generate New API Key.
Quick Start
The fastest way to get started is to connect to Rootly’s hosted MCP server — no installation required.Hosted (Streamable HTTP, recommended)
Hosted (SSE, backward compatible)
- Zero installation and maintenance overhead
- Always up-to-date with the latest features
- Managed infrastructure and reliability
- Immediate access without local setup
Claude Code
For Claude Code, run:Gemini CLI
Install the extension:~/.gemini/settings.json:
Local Installation
If you prefer to run the MCP server locally, configure your editor with one of the options below. The package will be automatically downloaded and installed when you first open your editor.With uv
With uvx
Self-Hosted Deployment
For organizations requiring full control over their deployment:Transport Options
Choose one transport per server process:- Streamable HTTP endpoint path:
/mcp - SSE endpoint path:
/sse
- Host the MCP server on your own infrastructure
- Customize the server configuration and endpoints
- Ensure compliance with internal security policies
- Control data flow and API access patterns
On-Call Health Integration
Rootly MCP integrates with On-Call Health to detect workload health risk in scheduled responders.Setup
Set theONCALLHEALTH_API_KEY environment variable: