Prometheus MCP Server
by mshegolevio.github.mshegolev/prometheus-mcpv0.1.0
Prometheus MCP — query metrics, inspect alerts, and explore scrape targets (read-only).
context tax
queued
security
queued
cold start
queued
freshness
Maintained2mo ago
Install Prometheus MCP server
Install in Claude Code
claude mcp add prometheus-mshegolev -e PROMETHEUS_URL='<prometheus-url>' -e PROMETHEUS_TOKEN='<prometheus-token>' -e PROMETHEUS_PASSWORD='<prometheus-password>' -- uvx prometheus-mcpInstall in Cursor
{
"mcpServers": {
"prometheus-mshegolev": {
"command": "uvx",
"args": [
"prometheus-mcp"
],
"env": {
"PROMETHEUS_URL": "<prometheus-url>",
"PROMETHEUS_TOKEN": "<prometheus-token>",
"PROMETHEUS_PASSWORD": "<prometheus-password>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"prometheus-mshegolev": {
"command": "uvx",
"args": [
"prometheus-mcp"
],
"env": {
"PROMETHEUS_URL": "<prometheus-url>",
"PROMETHEUS_TOKEN": "<prometheus-token>",
"PROMETHEUS_PASSWORD": "<prometheus-password>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"prometheus-mshegolev": {
"type": "stdio",
"command": "uvx",
"args": [
"prometheus-mcp"
],
"env": {
"PROMETHEUS_URL": "<prometheus-url>",
"PROMETHEUS_TOKEN": "<prometheus-token>",
"PROMETHEUS_PASSWORD": "<prometheus-password>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"prometheus-mshegolev": {
"command": "uvx",
"args": [
"prometheus-mcp"
],
"env": {
"PROMETHEUS_URL": "<prometheus-url>",
"PROMETHEUS_TOKEN": "<prometheus-token>",
"PROMETHEUS_PASSWORD": "<prometheus-password>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| PROMETHEUS_URL | yes | — | Prometheus server URL, e.g. https://prometheus.example.com (no trailing slash) |
| PROMETHEUS_TOKEN | — | yes | Bearer token for authentication. Takes priority over Basic auth. |
| PROMETHEUS_USERNAME | — | — | HTTP Basic auth username. Used only when PROMETHEUS_TOKEN is not set. |
| PROMETHEUS_PASSWORD | — | yes | HTTP Basic auth password. |
| PROMETHEUS_SSL_VERIFY | — | — | Verify SSL certificates (true/false). Set to 'false' for self-signed certs. |
Freshness
Maintained — last maintenance signal 2mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-07 · 2mo ago · GitHub
Latest release
2026-07-07 · 3mo ago · GitHub · v0.4.3
Package published
no data · npm/PyPI
Registry entry updated
2026-04-18 · 6mo ago · official registry · v0.1.0
FAQ
›How do I install the Prometheus MCP server in Claude Code?
Run: claude mcp add prometheus-mshegolev -e PROMETHEUS_URL='<prometheus-url>' -e PROMETHEUS_TOKEN='<prometheus-token>' -e PROMETHEUS_PASSWORD='<prometheus-password>' -- uvx prometheus-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Prometheus require an API key?
Yes. It expects PROMETHEUS_URL, PROMETHEUS_TOKEN, PROMETHEUS_PASSWORD, of which 2 are secrets.
›Can I use Prometheus as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Prometheus in the official MCP registry?
Yes, as io.github.mshegolev/prometheus-mcp.
Alternatives to Prometheus
Other browser automation MCP servers.