mshegolev/prometheus-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PROMETHEUS_URL | Yes | Prometheus server URL, e.g., https://prometheus.example.com (no trailing slash) | |
| PROMETHEUS_TOKEN | No | Bearer token for authentication (takes precedence over Basic auth) | |
| PROMETHEUS_PASSWORD | No | HTTP Basic auth password | |
| PROMETHEUS_USERNAME | No | HTTP Basic auth username | |
| PROMETHEUS_SSL_VERIFY | No | Set 'false' for self-signed certificates | true |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| prometheus_list_metricsA | List all metric names known to Prometheus, with optional substring filter. Wraps Use this first to discover valid metric names before writing PromQL
expressions for Examples:
- Use when: "What metrics does Prometheus have about HTTP requests?"
→ Returns:
dict with |
| prometheus_queryA | Execute an instant PromQL query against Prometheus. Wraps Examples:
- Use when: "Is the payment service up right now?"
→ Returns:
dict with |
| prometheus_query_rangeA | Execute a PromQL range query returning time-series data points. Wraps Prometheus may reject the query with HTTP 422 (bad_data) if the step produces too many data points (> 11,000 per series). Increase the step or narrow the time range if this happens. Note: The Prometheus API does not support filtering by branch or commit in this endpoint — filters are expressed purely in PromQL label matchers. Examples:
- Use when: "Show me CPU usage over the last hour with 1-minute resolution"
→ Returns:
dict with |
| prometheus_list_alertsA | List all active and pending alerts from Prometheus. Wraps Examples:
- Use when: "Are there any firing alerts right now?"
→ check Returns:
dict with |
| prometheus_list_targetsA | List Prometheus scrape targets, summarised by job and health. Wraps Examples:
- Use when: "Which targets are currently down?"
→ filter Returns:
dict with |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mshegolev/prometheus-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server