mcp-server-prometheus

Author:@loglmhq
View on GitHub

Overview

The mcp-server-prometheus is a TypeScript-based server that implements the Model Context Protocol (MCP). It serves as a bridge, allowing Claude to interact with metrics and data from your Prometheus server.

To use it, configure the server with your Prometheus instance URL and any required authentication. Then, add this server configuration to your Claude Desktop setup to establish the integration.

Its key features include listing and accessing Prometheus metric schema, providing detailed metric metadata with current statistics like count, min, and max, supporting basic authentication for security, and exposing Prometheus metrics through a structured API.

Primary use cases are monitoring and retrieving Prometheus metrics for analytics, integrating this data into Claude applications for enhanced functionality, and providing an interactive interface to explore available metrics and their metadata.

For configuration, set the PROMETHEUS_URL environment variable to your Prometheus instance's base URL and optionally provide credentials. A connected Prometheus instance is required for the server to function. For debugging, you can utilize the MCP Inspector, which provides tools to simplify the process.