An MCP server for the Rootly API that integrates seamlessly with MCP-compatible editors like Cursor, Windsurf, and Claude. Resolve production incidents in under a minute without leaving your IDE. - Python 3.12 or higher - uv package manager - Rootly API token with appropriate permissions (see below) The MCP server requires a Rootly API token. Choose the appropriate token type based on your needs:
Add this skill
npx mdskills install Rootly-AI-Labs/rootly-mcp-serverWell-documented incident management MCP with intelligent tools, but overly permissive filesystem/shell access
1<!-- mcp-name: com.rootly/mcp-server -->2# Rootly MCP Server34[](https://pypi.org/project/rootly-mcp-server/)5[](https://pypi.org/project/rootly-mcp-server/)6[](https://pypi.org/project/rootly-mcp-server/)7[](https://cursor.com/install-mcp?name=rootly&config=eyJ1cmwiOiJodHRwczovL21jcC5yb290bHkuY29tL3NzZSIsImhlYWRlcnMiOnsiQXV0aG9yaXphdGlvbiI6IkJlYXJlciA8WU9VUl9ST09UTFlfQVBJX1RPS0VOPiJ9fQ==)89An MCP server for the [Rootly API](https://docs.rootly.com/api-reference/overview) that integrates seamlessly with MCP-compatible editors like Cursor, Windsurf, and Claude. Resolve production incidents in under a minute without leaving your IDE.10111213## Prerequisites1415- Python 3.12 or higher16- `uv` package manager17 ```bash18 curl -LsSf https://astral.sh/uv/install.sh | sh19 ```20- [Rootly API token](https://docs.rootly.com/api-reference/overview#how-to-generate-an-api-key%3F) with appropriate permissions (see below)2122### API Token Permissions2324The MCP server requires a Rootly API token. Choose the appropriate token type based on your needs:2526- **Global API Key** (Recommended): Full access to all entities across your Rootly instance. Required for organization-wide visibility across teams, schedules, and incidents.27- **Team API Key**: Team Admin permissions with full read/edit access to entities owned by that team. Suitable for team-specific workflows.28- **Personal API Key**: Inherits the permissions of the user who created it. Works for individual use cases but may have limited visibility.2930For full functionality of tools like `get_oncall_handoff_summary`, `get_oncall_shift_metrics`, and organization-wide incident search, a **Global API Key** is recommended.3132## Quick Start3334The fastest way to get started is to connect to our hosted MCP server โ no installation required, just add the configuration to your editor:3536```json37{38 "mcpServers": {39 "rootly": {40 "url": "https://mcp.rootly.com/sse",41 "headers": {42 "Authorization": "Bearer <YOUR_ROOTLY_API_TOKEN>"43 }44 }45 }46}47```4849For **Claude Code**, run:5051```bash52claude mcp add rootly --transport sse https://mcp.rootly.com/sse \53 --header "Authorization: Bearer YOUR_ROOTLY_API_TOKEN"54```5556## Alternative Installation (Local)5758If 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.5960### With uv6162```json63{64 "mcpServers": {65 "rootly": {66 "command": "uv",67 "args": [68 "tool",69 "run",70 "--from",71 "rootly-mcp-server",72 "rootly-mcp-server"73 ],74 "env": {75 "ROOTLY_API_TOKEN": "<YOUR_ROOTLY_API_TOKEN>"76 }77 }78 }79}80```8182### With uvx8384```json85{86 "mcpServers": {87 "rootly": {88 "command": "uvx",89 "args": [90 "--from",91 "rootly-mcp-server",92 "rootly-mcp-server"93 ],94 "env": {95 "ROOTLY_API_TOKEN": "<YOUR_ROOTLY_API_TOKEN>"96 }97 }98 }99}100```101102## Features103104- **Dynamic Tool Generation**: Automatically creates MCP resources from Rootly's OpenAPI (Swagger) specification105- **Smart Pagination**: Defaults to 10 items per request for incident endpoints to prevent context window overflow106- **API Filtering**: Limits exposed API endpoints for security and performance107- **Intelligent Incident Analysis**: Smart tools that analyze historical incident data108 - **`find_related_incidents`**: Uses TF-IDF similarity analysis to find historically similar incidents109 - **`suggest_solutions`**: Mines past incident resolutions to recommend actionable solutions110- **MCP Resources**: Exposes incident and team data as structured resources for easy AI reference111- **Intelligent Pattern Recognition**: Automatically identifies services, error types, and resolution patterns112- **On-Call Health Integration**: Detects workload health risk in scheduled responders113114## On-Call Health Integration115116Rootly MCP integrates with [On-Call Health](https://oncallhealth.ai) to detect workload health risk in scheduled responders.117118### Setup119120Set the `ONCALLHEALTH_API_KEY` environment variable:121122```json123{124 "mcpServers": {125 "rootly": {126 "command": "uvx",127 "args": ["rootly-mcp-server"],128 "env": {129 "ROOTLY_API_TOKEN": "your_rootly_token",130 "ONCALLHEALTH_API_KEY": "och_live_your_key"131 }132 }133 }134}135```136137### Usage138139```140check_oncall_health_risk(141 start_date="2026-02-09",142 end_date="2026-02-15"143)144```145146Returns at-risk users who are scheduled, recommended safe replacements, and action summaries.147148## Example Skills149150Want to get started quickly? We provide pre-built Claude Code skills that showcase the full power of the Rootly MCP server:151152### ๐จ [Rootly Incident Responder](examples/skills/rootly-incident-responder.md)153154An AI-powered incident response specialist that:155- Analyzes production incidents with full context156- Finds similar historical incidents using ML-based similarity matching157- Suggests solutions based on past successful resolutions158- Coordinates with on-call teams across timezones159- Correlates incidents with recent code changes and deployments160- Creates action items and remediation plans161- Provides confidence scores and time estimates162163**Quick Start:**164```bash165# Copy the skill to your project166mkdir -p .claude/skills167cp examples/skills/rootly-incident-responder.md .claude/skills/168169# Then in Claude Code, invoke it:170# @rootly-incident-responder analyze incident #12345171```172173This skill demonstrates a complete incident response workflow using Rootly's intelligent tools combined with GitHub integration for code correlation.174175### On-Call Shift Metrics176177Get on-call shift metrics for any time period, grouped by user, team, or schedule. Includes primary/secondary role tracking, shift counts, hours, and days on-call.178179```180get_oncall_shift_metrics(181 start_date="2025-10-01",182 end_date="2025-10-31",183 group_by="user"184)185```186187### On-Call Handoff Summary188189Complete handoff: current/next on-call + incidents during shifts.190191```python192# All on-call (any timezone)193get_oncall_handoff_summary(194 team_ids="team-1,team-2",195 timezone="America/Los_Angeles"196)197198# Regional filter - only show APAC on-call during APAC business hours199get_oncall_handoff_summary(200 timezone="Asia/Tokyo",201 filter_by_region=True202)203```204205Regional filtering shows only people on-call during business hours (9am-5pm) in the specified timezone.206207Returns: `schedules` with `current_oncall`, `next_oncall`, and `shift_incidents`208209### Shift Incidents210211Incidents during a time period, with filtering by severity/status/tags.212213```python214get_shift_incidents(215 start_time="2025-10-20T09:00:00Z",216 end_time="2025-10-20T17:00:00Z",217 severity="critical", # optional218 status="resolved", # optional219 tags="database,api" # optional220)221```222223Returns: `incidents` list + `summary` (counts, avg resolution time, grouping)224225226## Contributing227228See [CONTRIBUTING.md](CONTRIBUTING.md) for developer setup and guidelines.229230## Play with it on Postman231[<img src="https://run.pstmn.io/button.svg" alt="Run In Postman" style="width: 128px; height: 32px;">](https://god.gw.postman.com/run-collection/45004446-1074ba3c-44fe-40e3-a932-af7c071b96eb?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D45004446-1074ba3c-44fe-40e3-a932-af7c071b96eb%26entityType%3Dcollection%26workspaceId%3D4bec6e3c-50a0-4746-85f1-00a703c32f24)232233234## About Rootly AI Labs235236This project was developed by [Rootly AI Labs](https://labs.rootly.ai/), where we're building the future of system reliability and operational excellence. As an open-source incubator, we share ideas, experiment, and rapidly prototype solutions that benefit the entire community.237238239240
Full transparency โ inspect the skill content before installing.