Prometheus MCP Server
CommunityMCP server by pab1it0 · updated · ★ 519
MCP server providing Prometheus metrics access and PromQL query execution for AI assistants Prometheus MCP Server is a community project by pab1it0, not verified by a company domain.
Last commit 3 days ago
MIT: permissive, fine for commercial use
Clear description, published package or server URL, 519 stars, original repository
Downloads a script from the internet and runs it (a well-known installer)
What you need
| Setting | Needed | What it is |
|---|---|---|
PROMETHEUS_Environment variable | Required | Prometheus server URL (e.g., http://localhost:9090) |
PROMETHEUS_Environment variable | Optional | Set to False to disable SSL verification |
PROMETHEUS_Environment variable | Optional | Set to True to disable Prometheus UI links in query results (saves context tokens in MCP clients) |
PROMETHEUS_Environment variable | Optional | Username for Prometheus basic authentication |
PROMETHEUS_Environment variable, secret | Optional | Password for Prometheus basic authentication |
PROMETHEUS_Environment variable, secret | Optional | Bearer token for Prometheus authentication |
ORG_Environment variable | Optional | Organization ID for multi-tenant Prometheus setups |
PROMETHEUS_Environment variable | Optional | Path to client certificate file for mutual TLS authentication |
PROMETHEUS_Environment variable | Optional | Path to client private key file for mutual TLS authentication |
PROMETHEUS_Environment variable | Optional | MCP server transport type (stdio, http, or sse) |
PROMETHEUS_Environment variable | Optional | Host address for HTTP/SSE transport (default: 127.0.0.1) |
PROMETHEUS_Environment variable | Optional | Port number for HTTP/SSE transport (default: 8080) |
PROMETHEUS_Environment variable | Optional | Enable stateless HTTP mode for multi-replica support (default: false) |
PROMETHEUS_Environment variable | Optional | Custom headers as JSON string to include in Prometheus requests |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Install Prometheus MCP Server
Built from the published package, never by AIclaude mcp add prometheus-mcp-server -e PROMETHEUS_URL=YOUR_PROMETHEUS_URL -- docker run -i --rm -e PROMETHEUS_URL ghcr.io/pab1it0/prometheus-mcp-server:1.6.2Run in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"prometheus-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "YOUR_PROMETHEUS_URL"
}
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Prometheus MCP Server in Claude Desktop
{
"mcpServers": {
"prometheus-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "YOUR_PROMETHEUS_URL"
}
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"prometheus-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "YOUR_PROMETHEUS_URL"
}
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add prometheus-mcp-server --env PROMETHEUS_URL=YOUR_PROMETHEUS_URL -- docker run -i --rm -e PROMETHEUS_URL ghcr.io/pab1it0/prometheus-mcp-server:1.6.2{
"mcpServers": {
"prometheus-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "YOUR_PROMETHEUS_URL"
}
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Prometheus MCP Server in Antigravity CLI
gemini mcp add prometheus-mcp-server docker run -i --rm -e PROMETHEUS_URL ghcr.io/pab1it0/prometheus-mcp-server:1.6.2Gemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the prometheus-mcp-server block.
Weekly newsletter
Like Prometheus MCP Server? Get the best new MCP servers every week
The best new tools, security warnings before you install something risky, and one practical tip. Free, three minute read.
Security check
B- Downloads a script from the internet and runs it (a well-known installer)In
README.md:curl -LsSf https://astral.sh/uv/install.sh | sh
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Prometheus MCP Server
All alternatives →All Azure MCP tools to create a seamless connection between AI agents and Azure services.
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Cloudflare MCP servers
Open-source agent that observes and fixes your application. Query logs, traces, metrics, incidents.
MCP server and framework adapters for Corsair. Expose 200+ integrations to any agent framework (Mastra, LangChain, LlamaIndex, OpenAI, Vercel AI, Claude) as tools.
Analyzes deployed EVM bytecode: extracts function selectors and CBOR metadata; infers argument types, state mutability, storage layouts, and control flow.
Prometheus MCP Server: common questions
How do I install Prometheus MCP Server?
In Claude Code run claude mcp add prometheus-mcp-server -e PROMETHEUS_URL=YOUR_PROMETHEUS_URL -- docker run -i --rm -e PROMETHEUS_URL ghcr.io/pab1it0/prometheus-mcp-server:1.6.2. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Prometheus MCP Server the official server?
Prometheus MCP Server is a community project by pab1it0, not verified by a company domain.
Is Prometheus MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Prometheus MCP Server safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (downloads a script from the internet and runs it (a well-known installer)). Review the code before you install. How grades work.
What are alternatives to Prometheus MCP Server?
Similar MCP servers: Azure MCP Server, Omnara, mcp, Superlog.
Does Prometheus MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
