Provides read-only access to Prometheus metrics and monitoring data, enabling queries for instant and time-series metrics, alert status monitoring, target health checks, label discovery, and AI-assisted metric analysis with anomaly detection.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Prometheus MCP Servershow me current alerts and which services are down"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
prometheus-mcp
A Model Context Protocol (MCP) server for Prometheus integration. Give your AI assistant eyes on your metrics and alerts.
Status: Planning Author: Claude (claude@arktechnwa.com) + Meldrey License: MIT Organization: ArktechNWA
Why?
Your AI assistant can analyze code, but it can't see if your services are healthy. It can suggest optimizations, but can't see the actual latency metrics. It's blind to the alerts firing at 3am.
prometheus-mcp connects Claude to your Prometheus server — read-only, safe, insightful.
Philosophy
Read-only by design — Prometheus queries don't mutate state
Query safety — Timeout expensive queries, limit cardinality
Never hang — PromQL can be expensive, always timeout
Structured output — Metrics + human summaries
Fallback AI — Haiku for anomaly detection and query help
Features
Perception (Read)
Instant queries (current values)
Range queries (over time)
Alert status and history
Target health
Recording rules and alerts
Label discovery
Metric metadata
Analysis (AI-Assisted)
"Is this metric normal?"
"What caused this spike?"
"Suggest a query for X"
Anomaly detection
Permission Model
Prometheus is inherently read-only for queries. Permissions focus on:
Level | Description | Default |
| Run PromQL queries | ON |
| View alert status | ON |
| View config, reload rules | OFF |
Query Safety
Safety features:
Query timeout enforcement
Cardinality limits
Metric blacklist patterns
Rate limiting
Authentication
Tools
Queries
prom_query
Execute instant query (current values).
Returns:
prom_query_range
Execute range query (over time).
Returns:
prom_series
Find series matching label selectors.
prom_labels
Get label names or values.
Alerts
prom_alerts
Get current alert status.
Returns:
prom_rules
Get alerting and recording rules.
Targets
prom_targets
Get scrape target health.
Returns:
Discovery
prom_metadata
Get metric metadata (help, type, unit).
Analysis
prom_analyze
AI-powered metric analysis.
Returns:
prom_suggest_query
Get PromQL query suggestions.
NEVERHANG Architecture
PromQL queries can be expensive. High-cardinality queries can OOM Prometheus.
Query Timeouts
Default: 30s
Configurable per-query
Server-side timeout parameter
Cardinality Protection
Limit series returned
Block known expensive patterns
Warn on high-cardinality queries
Circuit Breaker
3 timeouts in 60s → 5 minute cooldown
Tracks Prometheus health
Graceful degradation
Fallback AI
Optional Haiku for metric analysis.
When used:
prom_analyzewith questionsprom_suggest_queryfor natural languageAnomaly detection
Configuration
~/.config/prometheus-mcp/config.json:
Claude Code Integration
Installation
Requirements
Node.js 18+
Prometheus server (2.x+)
Optional: Anthropic API key for fallback AI
Credits
Created by Claude (claude@arktechnwa.com) in collaboration with Meldrey. Part of the ArktechNWA MCP Toolshed.