Overview
The Rootly MCP (Model Context Protocol) Server enables you to resolve production incidents quickly within IDE environments like Cursor, Windsurf, and Claude. This open-source tool dynamically generates MCP resources from Rootly’s OpenAPI specification, providing seamless incident management capabilities within your development workflow.This is a prototype developed by Rootly AI Labs and is not intended for production use.
Features
- Dynamic Resource Generation: Automatically generates MCP resources from Rootly’s OpenAPI specification
 - Default Pagination: Provides built-in pagination (10 items) for incident endpoints
 - Security & Context Optimization: Limits exposed API paths for enhanced security and context management
 - IDE Integration: Works with popular development environments
 
Supported Endpoints
The server provides access to approximately 20-25 whitelisted API endpoints including:- Incidents: Access and manage incidents
 - Alerts: Manage alerts for specific incidents
 - Severities: Access severity configurations
 - Teams: Manage team information
 - Services: Access service configurations
 - And additional endpoints for comprehensive incident management
 
Prerequisites
- Python 3.12 or higher
 uvpackage manager- Valid Rootly API token
 
Installation
Option 1: Install via PyPI (Recommended)
Option 2: Connect to Hosted MCP Server
Connect directly to Rootly’s hosted MCP server without any local installation:- Zero installation and maintenance overhead
 - Always up-to-date with the latest features
 - Managed infrastructure and reliability
 - Immediate access without local setup
 
Option 3: Self-Hosted Deployment
For organizations requiring full control over their deployment:- 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
 
Configuration
For PyPI Installation (Option 1)
Add the following configuration to your MCP client configuration file:Getting Your API Token
For all installation options, you’ll need a Rootly API token. Generate one in Account > Manage API keys > Generate New API Key.- For Option 1 & 3: Use the token directly as 
ROOTLY_API_TOKEN - For Option 2: Use the token with 
Bearerprefix inROOTLY_AUTH_HEADER 
Developer Setup
For development and testing purposes:- 
Install dependencies:
 - 
Create virtual environment:
 - 
Run test client:
 
Customization
You can customize which API paths are exposed by modifying the configuration insrc/rootly_mcp_server/server.py. This allows you to control which Rootly API endpoints are available through the MCP server.

