Skip to main content
Glama

Rootly MCP server

Official

Rootly MCP Server

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.

Demo GIF

Prerequisites

  • Python 3.12 or higher
  • uv package manager
    curl -LsSf https://astral.sh/uv/install.sh | sh
  • Rootly API token

Installation

Install via our PyPi package or by cloning this repository.

Configure your MCP-compatible editor (tested with Cursor and Windsurf) with the following:

With uv

{ "mcpServers": { "rootly": { "command": "uv", "args": [ "tool", "run", "--from", "rootly-mcp-server", "rootly-mcp-server", ], "env": { "ROOTLY_API_TOKEN": "<YOUR_ROOTLY_API_TOKEN>" } } } }

With uv-tool-uvx

{ "mcpServers": { "rootly": { "command": "uvx", "args": [ "--from", "rootly-mcp-server", "rootly-mcp-server", ], "env": { "ROOTLY_API_TOKEN": "<YOUR_ROOTLY_API_TOKEN>" } } } }

To customize allowed_paths and access additional Rootly API paths, clone the repository and use this configuration:

{ "mcpServers": { "rootly": { "command": "uv", "args": [ "run", "--directory", "/path/to/rootly-mcp-server", "rootly-mcp-server" ], "env": { "ROOTLY_API_TOKEN": "<YOUR_ROOTLY_API_TOKEN>" } } } }

Connect to Hosted MCP Server

Alternatively, connect directly to our hosted MCP server:

{ "mcpServers": { "rootly": { "command": "npx", "args": [ "-y", "mcp-remote", "https://mcp.rootly.com/sse", "--header", "Authorization:${ROOTLY_AUTH_HEADER}" ], "env": { "ROOTLY_AUTH_HEADER": "Bearer <YOUR_ROOTLY_API_TOKEN>" } } } }

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

Whitelisted Endpoints

By default, the following Rootly API endpoints are exposed to the AI agent (see allowed_paths in src/rootly_mcp_server/server.py):

/v1/incidents /v1/incidents/{incident_id}/alerts /v1/alerts /v1/alerts/{alert_id} /v1/severities /v1/severities/{severity_id} /v1/teams /v1/teams/{team_id} /v1/services /v1/services/{service_id} /v1/functionalities /v1/functionalities/{functionality_id} /v1/incident_types /v1/incident_types/{incident_type_id} /v1/incident_action_items /v1/incident_action_items/{incident_action_item_id} /v1/incidents/{incident_id}/action_items /v1/workflows /v1/workflows/{workflow_id} /v1/workflow_runs /v1/workflow_runs/{workflow_run_id} /v1/environments /v1/environments/{environment_id} /v1/users /v1/users/{user_id} /v1/users/me /v1/status_pages /v1/status_pages/{status_page_id}

Why Path Limiting?

We limit exposed API paths for two key reasons:

  1. Context Management: Rootly's comprehensive API can overwhelm AI agents, affecting their ability to perform simple tasks effectively
  2. Security: Control which information and actions are accessible through the MCP server

To expose additional paths, modify the allowed_paths variable in src/rootly_mcp_server/server.py.

About Rootly AI Labs

This project was developed by Rootly AI Labs, 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. Rootly AI logo

Developer Setup & Troubleshooting

Prerequisites

  • Python 3.12 or higher
  • uv for dependency management

1. Set Up Virtual Environment

Create and activate a virtual environment:

uv venv .venv source .venv/bin/activate # Always activate before running scripts

2. Install Dependencies

Install all project dependencies:

uv pip install .

To add new dependencies during development:

uv pip install <package>

3. Verify Installation

Run the test client to ensure everything is configured correctly:

python src/rootly_mcp_server/test_client.py
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Manage incidents from your IDE. An MCP server allowing to pull out incidents and their associated metadata using Rootly API.

  1. Prerequisites
    1. Run it in your IDE
      1. Features
        1. Whitelisted Endpoints
      2. About the Rootly AI Labs
        1. Developer Setup & Troubleshooting
          1. 1. Install dependencies with uv
          2. 2. Using a virtual environment
          3. 3. Running the test client
          4. 5. General tips
          5. 6. Connecting to Our MCP Server

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          An MCP server that provides tools for interacting with Linear issue tracking system, currently supporting issue search with plans to expand to issue creation, updates, comments, and project management.
          Last updated -
          1
          26
          1
          TypeScript
          MIT License
        • -
          security
          F
          license
          -
          quality
          A server that connects MCP clients (Claude, Cursor, Windsurf, etc.) to EventCatalog instances, allowing users to ask questions about their event-driven architecture and get insights about domains, services, and message schemas directly within their development tools.
          Last updated -
          7
          16
          TypeScript
          • Apple
        • -
          security
          F
          license
          -
          quality
          An MCP server that connects to Sentry.io or self-hosted Sentry instances to retrieve and analyze error reports, stack traces, and debugging information.
          Last updated -
          Python
        • -
          security
          F
          license
          -
          quality
          A remote MCP server that provides AI agents access to the Rootly API for incident management, allowing users to query and manage incidents, alerts, teams, services, and other incident management resources through natural language.
          Last updated -
          TypeScript

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rootly-AI-Labs/Rootly-MCP-server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server