MCP Prometheus Server
@drewstreib
About MCP Prometheus Server
A sophisticated MCP server for Prometheus queries demonstrating advanced Haskell practices
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-prom-haskell": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-prometheus-server",
"."
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Prometheus Server?
A production-ready Model Context Protocol (MCP) server implementation in Haskell that provides Claude Desktop with access to Prometheus metrics and queries. It offers five tools for querying, discovering, and exploring Prometheus metrics, built with strict exception handling and thread-safe patterns.
How to use MCP Prometheus Server?
Install using the pre-built binary, build from source with GHC 9.12+ and Cabal, or run via Docker. Configure Claude Desktop by adding an entry in claude_desktop_config.json pointing to the server binary with the --prometheus-url argument pointing to your Prometheus instance.
Key features of MCP Prometheus Server
- Seamless Claude Desktop integration via MCP protocol
- Five tools: query, query range, series, metrics, labels
- Production-ready error handling and logging
- Thread-safe execution with strict evaluation
- Pre-built binary, source build, and Docker options
- Comprehensive test suite with unit and integration tests
- BSD 3-Clause open source license
Use cases of MCP Prometheus Server
- Ask Claude "What's the current CPU usage?" using instant PromQL queries
- Visualize memory usage trends over the last hour with range queries
- Discover available metric names in your Prometheus instance
- Find time series matching specific label selectors
- Explore all label names used across metrics for filtering
FAQ from MCP Prometheus Server
What dependencies are required to build from source?
GHC 9.12+ and Cabal 3.0+ are required; GHCup is recommended for installation.
How do I configure the Prometheus server URL?
Set the PROMETHEUS_URL environment variable or use the --prometheus-url command-line option (default: http://your-prometheus-server:9090).
What should I do if the Docker container exits immediately?
The MCP server expects stdio interaction; use the -it flags when running the container.
Can I connect to a Prometheus server on a different network with Docker?
Yes, ensure both containers are on the same Docker network by using --network flags.
Is the server compatible with JSON-RPC notifications?
Yes, it properly handles notifications without returning responses per the JSON-RPC specification.
More Developer Tools MCP servers
MCP Unity Editor (Game Engine)
CoderGamesterModel Context Protocol (MCP) plugin to connect with Unity Editor β designed for Cursor, Claude Code, Codex, Windsurf and other IDEs
Grafana MCP server
grafanaMCP server for Grafana
TalkToFigma
sonnylazuardiTalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
Deepwiki MCP Server
regenrekπ MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors
MCP-Scan: An MCP Security Scanner
invariantlabs-aiSecurity scanner for AI agents, MCP servers and agent skills.
Comments