mcp-server-prometheus
by MCP-Mirror
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 acts as a bridge between Claude and Prometheus, allowing Claude to access and utilize Prometheus metrics data through the Model Context Protocol (MCP). It exposes Prometheus metrics in a structured JSON format.
How to use mcp-server-prometheus?
- Install the server and its dependencies using
npm install
. 2. Build the server usingnpm run build
. 3. Configure thePROMETHEUS_URL
environment variable to point to your Prometheus instance. Optionally, configurePROMETHEUS_USERNAME
andPROMETHEUS_PASSWORD
for basic authentication. 4. Add the server configuration to your Claude Desktop config file (claude_desktop_config.json
).
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.
Supports basic authentication for secured Prometheus instances.
Use cases of mcp-server-prometheus
Providing Claude with real-time performance metrics from applications monitored by Prometheus.
Enabling Claude to understand and respond to system performance issues.
Using Claude to analyze trends and anomalies in Prometheus metrics.
Integrating Prometheus data into Claude-based workflows and automations.
FAQ from mcp-server-prometheus
What is the purpose of this server?
What is the purpose of this server?
It allows Claude to access and use Prometheus metrics data.
What environment variables are required?
What environment variables are required?
The PROMETHEUS_URL
environment variable is required. PROMETHEUS_USERNAME
and PROMETHEUS_PASSWORD
are optional for authentication.
How do I install the server?
How do I install the server?
Use npm install
to install dependencies, then npm run build
to build the server.
How do I configure the server for Claude Desktop?
How do I configure the server for Claude Desktop?
Add the server configuration to your Claude Desktop config file (claude_desktop_config.json
).
How can I debug the server?
How can I debug the server?
Use the MCP Inspector tool: npm run inspector
.