prometheus-mcp-server
Allows for interacting with Prometheus metrics and data, providing capabilities for running instant and range PromQL queries, discovering series and labels, accessing metric metadata, and monitoring alerts and system status.
Click on "Deploy 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-server Show me any active alerts firing right now"
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-server

A Model Context Protocol (MCP) server for interacting with Prometheus metrics and data.
TypeScript-based MCP server implementing a Prometheus API interface. Bridges Claude and your Prometheus server via MCP.
Features
Instant and range PromQL queries
Series and label discovery
Metric metadata access
Scrape target info
Alerts, rules, and status endpoints
Related MCP server: Proms MCP Server
Installation
npm install -g prometheus-mcp-server
# or
npm install prometheus-mcp-server
# or
npx prometheus-mcp-serverUsage
npm install
npm run build
npm startSet the PROMETHEUS_HOST environment variable to your Prometheus instance URL.
Example Claude Desktop config:
{
"mcpServers": {
"prometheus-mcp-server": {
"command": "npx prometheus-mcp-server",
"env": {
"PROMETHEUS_HOST": "http://your-prometheus-instance:9090"
}
}
}
}Functions
mcp__instant_querymcp__range_querymcp__get_seriesmcp__get_label_valuesmcp__get_metadatamcp__get_targetsmcp__get_alertsmcp__get_rulesmcp__get_status
Available Tools
10 toolscontext-prometheusC
Consultes as regras e diretrizes para fazer queries e interagir com o Prometheus
Inputs: no named parameters.
get-alertsC
Get information about alerts
Inputs: no named parameters.
get-label-valuesC
Get label values for a label name
Inputs: labelName (required).
get-metadataC
Get metadata for metrics
Inputs: metric, limit.
get-rulesB
Get information about alerting and recording rules
Inputs: no named parameters.
get-seriesC
Find series by label matchers
Inputs: match (required), start, end.
get-statusB
Get status information about the Prometheus server
Inputs: statusType (required).
get-targetsC
Get information about targets
Inputs: state.
instant-queryC
Execute an instant Prometheus query
Inputs: query (required), time, timeout.
range-queryC
Execute a range Prometheus query
Inputs: query (required), start (required), end (required), step (required), +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Every tool has a clearly distinct purpose targeting specific Prometheus resources or query types, with no overlapping functionality. For example, get-alerts retrieves alerts, get-series finds series by labels, and instant-query versus range-query handle different query modes, making misselection unlikely.
The naming follows a consistent verb_noun pattern with 'get-' or query-type prefixes for most tools, making them predictable. However, 'context-prometheus' deviates slightly by using a noun_verb structure and being in Portuguese, which breaks the pattern but is still understandable.
With 10 tools, this is well-scoped for a Prometheus server, covering key operations like queries, metadata, alerts, rules, and status without being overwhelming. Each tool serves a distinct and necessary function in monitoring and data retrieval.
The toolset provides comprehensive coverage for querying, monitoring, and status checks in Prometheus, including instant and range queries, alerts, rules, and targets. A minor gap exists in management operations like configuration changes or data deletion, but core workflows are fully supported.
Maintenance
Related MCP Connectors
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Hosted MCP server for live public-data APIs and Skills for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables Large Language Models to retrieve, analyze, and query metric data from Prometheus databases through pre-defined routes.33MIT
- AlicenseNot gradedqualityDmaintenanceA lean MCP server that provides LLM agents with transparent access to multiple Prometheus instances for metrics analysis and SRE operations.4GPL 2.0
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI agents to interact directly with Prometheus metrics data through natural language queries.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables AI assistants to query and analyze Prometheus metrics through PromQL, with support for metric discovery and authentication.MIT