A Model Context Protocol server for Rootly APIs using OpenAPI spec
Project description
Rootly MCP Server
An MCP server for Rootly API that you can plug into your favorite MCP-compatible editors like Cursor, Windsurf, and Claude. Resolve production incidents in under a minute without leaving your IDE.
Prerequisites
- Python 3.12 or higher
uvpackage managercurl -LsSf https://astral.sh/uv/install.sh | sh
- Rootly API token
Run it in your IDE
Install with our PyPi package or by cloning this repo.
To set it up in your favorite MCP-compatible editor (we tested it with Cursor and Windsurf), here is the config :
{
"mcpServers": {
"rootly": {
"command": "uvx",
"args": [
"--from",
"rootly-mcp-server",
"rootly-mcp-server"
],
"env": {
"ROOTLY_API_TOKEN": "<YOUR_ROOTLY_API_TOKEN>"
}
}
}
}
If you want to customize allowed_paths to access more Rootly API paths, clone the package and use this config.
{
"mcpServers": {
"rootly": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/rootly-mcp-server",
"rootly-mcp-server"
],
"env": {
"ROOTLY_API_TOKEN": "<YOUR_ROOTLY_API_TOKEN>"
}
}
}
}
Features
This server dynamically generates MCP resources based on Rootly's OpenAPI (Swagger) specification:
- Dynamically generated MCP tools based on Rootly's OpenAPI specification
- Default pagination (10 items) for incident endpoints to prevent context window overflow
- Limits the number of API paths exposed to the AI agent
We limited the number of API paths exposed for 2 reasons
- Context size: because Rootly's API is very rich in paths, AI agents can get overwhelmed and not perform simple actions properly. As of now we only expose the /incidents and /incidents/{incident_id}/alerts.
- Security: if you want to limit the type of information or actions that users can access through the MCP server
If you want to make more path available, edit the variable allowed_paths in src/rootly_mcp_server/server.py.
Disclaimer
This project is a prototype and not intended for production use. If you have featured ideas or spotted some issues, feel free to submit a PR or open an issue.
About the Rootly AI Labs
This project was developed by the Rootly AI Labs. The AI Labs is building the future of system reliability and operational excellence. We operate as an open-source incubator, sharing ideas, experimenting, and rapidly prototyping. We're committed to ensuring our research benefits the entire community.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_rootly_mcp_server-0.0.5.tar.gz.
File metadata
- Download URL: mseep_rootly_mcp_server-0.0.5.tar.gz
- Upload date:
- Size: 6.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ee8c95f450cfb18610c71d2980b532d9849039ae5460814d05330455e04acda
|
|
| MD5 |
f093346920c637361a538cf1fd0b0479
|
|
| BLAKE2b-256 |
8b5ee644be574a93c5e1650013e1ee3068b53e32e6b4b54a82333ced87ce94fc
|
File details
Details for the file mseep_rootly_mcp_server-0.0.5-py3-none-any.whl.
File metadata
- Download URL: mseep_rootly_mcp_server-0.0.5-py3-none-any.whl
- Upload date:
- Size: 132.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a51cfff13756abd7bd8c017d16e93207a04d6a054dad723413bfa75f57fb15c
|
|
| MD5 |
b0b10aa68013c975f67c88ad5bc33458
|
|
| BLAKE2b-256 |
3e795b63afda4da2aa05c4d29ae43556e469dee89eb69d0c8ced104aedd3e4f8
|