A Go-based MCP server exposing Prometheus query and metadata APIs via Model Context Protocol.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Pmcp.
A Go-based MCP server that exposes Prometheus query capabilities via the Model Context Protocol.
Or pull the Docker image:
| Flag | Default | Description |
|---|---|---|
-prom-addr | http://localhost:9090 | Prometheus server URL |
-mcp-addr | localhost:8080 | MCP server listen address |
-transport | stdio | stdio or http |
-auth-token | `` | Bearer token for MCP endpoint authentication (optional) |
-version | Print version |
All flags can be set via environment variables: PROM_ADDR, MCP_ADDR, TRANSPORT, AUTH_TOKEN.
Add the following config to your MCP client:
[!NOTE] Install the binary via
go install github.com/yshngg/prometheus-mcp-server@latestor pull the Docker image withdocker pull ghcr.io/yshngg/prometheus-mcp-server:latest.
If you don't have the binary installed, use Docker:
Add to claude_desktop_config.json:
With Docker:
Add to opencode.json (guide):
Run the server with HTTP transport:
Then configure your client to use http://localhost:8080/mcp.
For authenticated access, set AUTH_TOKEN:
Your client must then include Authorization: Bearer my-token in requests to /mcp.
Expression: instant_query, range_query
Metadata: find_series_by_labels, list_label_names, list_label_values, target_metadata_query, metric_metadata_query
Discovery: target_discovery, alert_query, rule_query, alertmanager_discovery
TSDB Admin: tsdb_snapshot, delete_series, clean_tombstones
Management: health_check, readiness_check, reload, quit
The server exposes Prometheus data as URI-addressable resources under the prom:/// scheme:
| URI | Description |
|---|---|
prom:///config | Currently loaded configuration (YAML) |
prom:///flags | Command-line flag values |
prom:///runtime-info | Runtime information |
prom:///build-info | Build information |
prom:///tsdb-stats | TSDB cardinality statistics |
prom:///wal-replay-stats | WAL replay state |
URI templates for dynamic data access:
| Template | Description |
|---|---|
prom:///api/v1/query?query={promql} | Instant PromQL query result |
prom:///api/v1/label/{name}/values | Label values for a given label name |
| Name | Arguments | Description |
|---|---|---|
all-available-metrics | prefix (optional) | Lists all metric names in the Prometheus instance |
Apache License 2.0
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/yshngg-pmcp)<a href="https://allmcps.com/mcp/yshngg-pmcp"><img src="https://allmcps.com/api/badge/yshngg-pmcp?style=directory" alt="Pmcp on AllMCPs" /></a>