Prometheus MCP
Provides tools for monitoring and metrics collection through Prometheus, allowing for querying and visualization of time-series data.
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 show me the CPU usage for the last hour"
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
Proof-of-concept Prometheus MCP server.
Prerequisites
Install uv: https://docs.astral.sh/uv/getting-started/installation/
Using uv, you can also install python.
Related MCP server: Scenario Word
How to run
Clone this repo.
Update the .env file
uv add "mcp[cli]" pillow google-auth matplotlib requests python-dotenvIntegrating with Claude
You can run the server with
uv --directory "/directory/to/prometheus-mcp" run server.pySo you may add this MCP server to your Claude MCP server configuration
{
"mcpServers": {
"Prometheus MCP": {
"command": "/path/to/uv",
"args": [
"--directory",
"/directory/to/prometheus-mcp",
"run",
"server.py"
]
}
}
}See MCP Quickstart for more details for Claude specific instructions.
Demo

Available Tools
2 toolsprometheus_alert_rulesB
Query the Prometheus /rules API. Returns a list of alerting and recording rules that are currently loaded. In addition it returns the currently active alerts fired by the Prometheus instance of each alerting rule.
Inputs: no named parameters.
prometheus_query_rangeA
Query Prometheus /query_range API endpoint and return
an image of a plot of the time series monitoring data.
Use this tool whenever the user asks about the status
of their compute infrastructure.
Inputs: step (required), query (required), end_time (required), start_time (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools target completely different aspects: one retrieves alert and recording rules, the other queries time series data and returns a plot. There is no overlap in functionality, making selection unambiguous.
Both tools share the 'prometheus_' prefix and follow snake_case. One uses a noun phrase ('alert_rules') and the other a verb-noun phrase ('query_range'), which is a minor inconsistency but still predictable and descriptive.
With only 2 tools for a complex system like Prometheus, the server is severely under-scoped. Many essential operations (e.g., listing metrics, instant queries, target discovery) are missing, limiting its usefulness.
The server covers only alert rules and range queries with plots, leaving out critical Prometheus capabilities such as instant queries, metric metadata, targets, or alert management beyond listing rules. Agents cannot perform basic monitoring workflows.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for building and testing AI agents with multi-model experimentation and insights.
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
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that allows Claude AI to interact with custom tools, enabling extension of Claude's capabilities through the MCP framework.-
- FlicenseNot gradedqualityDmaintenanceA customizable Model Context Protocol server built with mcp-framework that enables Claude to access external tools and capabilities through a standardized interface.-
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to query Prometheus metrics, discover available data, and analyze system performance through natural language interactions.5128 npmMIT