MCP server
prom-mcp
Prometheus MCP server for AI agents: PromQL queries, alert explanations, series discovery.
Runs locally
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.2.0
- Listing updated
- 1 month ago
About prom-mcp
prom-mcp is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add prom-mcp --env PROM_TOKEN='<PROM_TOKEN>' -- npx -y https://github.com/aniketatgithub/prom-mcp/releases/download/v0.2.0/prom-mcp_v0.2.0_linux_amd64.mcpbAdd to claude_desktop_config.json
{
"mcpServers": {
"prom-mcp": {
"command": "npx",
"args": [
"-y",
"https://github.com/aniketatgithub/prom-mcp/releases/download/v0.2.0/prom-mcp_v0.2.0_linux_amd64.mcpb"
],
"env": {
"PROM_TOKEN": "<PROM_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"prom-mcp": {
"command": "npx",
"args": [
"-y",
"https://github.com/aniketatgithub/prom-mcp/releases/download/v0.2.0/prom-mcp_v0.2.0_linux_amd64.mcpb"
],
"env": {
"PROM_TOKEN": "<PROM_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"prom-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"https://github.com/aniketatgithub/prom-mcp/releases/download/v0.2.0/prom-mcp_v0.2.0_linux_amd64.mcpb"
],
"env": {
"PROM_TOKEN": "<PROM_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"prom-mcp": {
"command": "npx",
"args": [
"-y",
"https://github.com/aniketatgithub/prom-mcp/releases/download/v0.2.0/prom-mcp_v0.2.0_linux_amd64.mcpb"
],
"env": {
"PROM_TOKEN": "<PROM_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"prom-mcp": {
"command": "npx",
"args": [
"-y",
"https://github.com/aniketatgithub/prom-mcp/releases/download/v0.2.0/prom-mcp_v0.2.0_linux_amd64.mcpb"
],
"env": {
"PROM_TOKEN": "<PROM_TOKEN>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
PROM_URLBase URL of your Prometheus server.PROM_TOKENBearer token for an auth-protected Prometheus. Leave empty if not needed.PROM_TIMEOUTTimeout for Prometheus requests, e.g. 15s or 30s.PROM_URLBase URL of your Prometheus server.PROM_TOKENBearer token for an auth-protected Prometheus. Leave empty if not needed.PROM_TIMEOUTTimeout for Prometheus requests, e.g. 15s or 30s.PROM_URLBase URL of your Prometheus server.PROM_TOKENBearer token for an auth-protected Prometheus. Leave empty if not needed.PROM_TIMEOUTTimeout for Prometheus requests, e.g. 15s or 30s.PROM_URLBase URL of your Prometheus server.PROM_TOKENBearer token for an auth-protected Prometheus. Leave empty if not needed.PROM_TIMEOUTTimeout for Prometheus requests, e.g. 15s or 30s.
Pricing
Open source
prom-mcp FAQ
Is prom-mcp free?
Yes. prom-mcp is open source, so you can use and self-host it for free.
How do I add prom-mcp to Claude Code?
Run this command in your terminal: claude mcp add prom-mcp --env PROM_TOKEN='<PROM_TOKEN>' -- npx -y https://github.com/aniketatgithub/prom-mcp/releases/download/v0.2.0/prom-mcp_v0.2.0_linux_amd64.mcpb
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.