MCP server for interacting with Prometheus
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp-server-prometheus": {
"env": {
"PROMETHEUS_URL": "http://your-prometheus-instance:9090"
},
"command": "/path/to/mcp-server-prometheus/build/index.js"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server for interacting with Prometheus metrics and data.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
prometheus_metricsList and access Prometheus metric schema with metric name, description, and statistical information (count, min, max)
http://your-prometheus-instance:9090/metrics/{metric_name}
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in devops / analytics
MCP server for using the GitLab API
MCP Server for GCP environment for interacting with various Observability APIs.
⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
Enhanced MCP server for GitLab: group projects listing and activity tracking
MCP Security Weekly
Get CVE alerts and security updates for Mcp Server Prometheus and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
MCP server for interacting with Prometheus metrics and data.
This is a TypeScript-based MCP server that implements a Prometheus API interface. It provides a bridge between Claude and your Prometheus server through the Model Context Protocol (MCP).

The server requires the following environment variable:
PROMETHEUS_URL: The base URL of your Prometheus instanceOptional authentication configuration:
PROMETHEUS_USERNAME: Username for basic auth (if required)PROMETHEUS_PASSWORD: Password for basic auth (if required)Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-server-prometheus": {
"command": "/path/to/mcp-server-prometheus/build/index.js",
"env": {
"PROMETHEUS_URL": "http://your-prometheus-instance:9090"
}
}
}
}
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
The server exposes Prometheus metrics through the following URI structure:
http://your-prometheus-instance:9090http://your-prometheus-instance:9090/metrics/{metric_name}Each metric resource returns JSON data containing: