MCP Prometheus Server
@drewstreib
MCP Prometheus Server について
A sophisticated MCP server for Prometheus queries demonstrating advanced Haskell practices
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-prom-haskell": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-prometheus-server",
"."
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
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.
「開発者ツール」の他のコンテンツ
Test
x1xhlolFULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Qoder, Replit, Same.dev, Trae, Traycer AI, VSCode Agent, Warp.dev, Windsurf, Xcode, Z.ai Code, Dia & v0. (And other Open Sou
MCP-Bridge
SecretiveShellA middleware to provide an openAI compatible endpoint that can call MCP tools
Hello World MCP Server (Reference Extension)
anthropicsDesktop Extensions: One-click local MCP server installation in desktop apps
Burp Suite MCP Server Extension
PortSwiggerMCP Server for Burp
DevDocs by CyberAGI 🚀
cyberagiincCompletely free, private, UI based Tech Documentation MCP server. Designed for coders and software developers in mind. Easily integrate into Cursor, Windsurf, Cline, Roo Code, Claude Desktop App
コメント