mcp-server-prometheus logo

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).

View on GitHub

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?

  1. Install the server and its dependencies using npm install. 2. Build the server using npm run build. 3. Configure the PROMETHEUS_URL environment variable to point to your Prometheus instance. Optionally, configure PROMETHEUS_USERNAME and PROMETHEUS_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?

It allows Claude to access and use Prometheus metrics data.

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?

Use npm install to install dependencies, then npm run build to build the server.

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?

Use the MCP Inspector tool: npm run inspector.