mcp-server-prometheus
by loglmhq
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).
Last updated: N/A
What is mcp-server-prometheus?
This MCP server allows Claude to interact with Prometheus metrics and data. It acts as a bridge, enabling Claude to access and understand Prometheus data through the Model Context Protocol (MCP).
How to use mcp-server-prometheus?
To use this server, you need to configure it with your Prometheus instance's URL and, optionally, authentication credentials. Then, add the server configuration to your Claude Desktop configuration file. You can then query Prometheus metrics through Claude.
Key features of mcp-server-prometheus
Lists and accesses Prometheus metric schema.
Provides metric name, description, and detailed metadata from Prometheus.
Offers statistical information (count, min, max) for each metric.
Supports JSON mime type for structured data access.
Basic authentication support for secured Prometheus instances
Use cases of mcp-server-prometheus
Enabling Claude to understand and respond to questions about system performance based on Prometheus metrics.
Using Claude to analyze trends and anomalies in Prometheus data.
Integrating Prometheus metrics into Claude-based workflows and automations.
Providing Claude with context about the state of your infrastructure based on Prometheus data.
FAQ from mcp-server-prometheus
What is the PROMETHEUS_URL environment variable?
What is the PROMETHEUS_URL environment variable?
It is the base URL of your Prometheus instance, e.g., http://your-prometheus-instance:9090.
How do I configure authentication?
How do I configure authentication?
Set the PROMETHEUS_USERNAME and PROMETHEUS_PASSWORD environment variables if your Prometheus instance requires basic authentication.
Where do I find the Claude Desktop configuration file?
Where do I find the Claude Desktop configuration file?
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows: %APPDATA%/Claude/claude_desktop_config.json
How can I debug the MCP server?
How can I debug the MCP server?
Use the MCP Inspector tool (https://github.com/modelcontextprotocol/inspector) for debugging.
What data does each metric resource return?
What data does each metric resource return?
Each metric resource returns JSON data containing the metric name, metadata (help text, type), and current statistics (count, min, max).