mcp-server-prometheus
Allows to interact with Prometheus metrics and data, including listing and accessing metric schema, metadata, and statistical information (count, min, max values)
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-prometheusshow me the top 5 CPU usage metrics from the last hour"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-server-prometheus
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).
Demo

Related MCP server: prometheus-rs
Features
Resources
List and access Prometheus metric schema
Each metric resource provides:
Metric name and description
Detailed metadata from Prometheus
Statistical information (count, min, max)
JSON mime type for structured data access
Current Capabilities
List all available Prometheus metrics with descriptions
Read detailed metric information including:
Metadata and help text
Current statistical data (count, min, max values)
Basic authentication support for secured Prometheus instances
Configuration
The server requires the following environment variable:
PROMETHEUS_URL: The base URL of your Prometheus instance
Optional authentication configuration:
PROMETHEUS_USERNAME: Username for basic auth (if required)PROMETHEUS_PASSWORD: Password for basic auth (if required)
Development
Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchInstallation
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"
}
}
}
}Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
API Structure
The server exposes Prometheus metrics through the following URI structure:
Base URI:
http://your-prometheus-instance:9090Metric URIs:
http://your-prometheus-instance:9090/metrics/{metric_name}
Each metric resource returns JSON data containing:
Metric name
Metadata (help text, type)
Current statistics (count, min, max)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that enables Large Language Models to retrieve, analyze, and query metric data from Prometheus databases through pre-defined routes.Last updated34MIT
- Alicense-qualityCmaintenanceQuery Prometheus from CLI or any MCP client, with retries, caching, and an optional metrics exporter.Last updated13Apache 2.0
- Alicense-qualityCmaintenanceAn MCP server that enables querying logs and metrics from Graylog, Prometheus, and InfluxDB 2.x. It provides tools for executing Lucene log searches, PromQL queries, and Flux queries directly within MCP-compatible clients.Last updatedMIT
- Alicense-qualityCmaintenanceUnified MCP server for observability and monitoring, providing tools to query metrics, logs, and traces through Prometheus, Grafana, Loki, and Jaeger.Last updated2Mozilla Public 2.0
Related MCP Connectors
An MCP server giving access to Grafana dashboards, data and more.
MCP server for managing Prisma Postgres.
MCP server for interacting with the Supabase platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/loglmhq/mcp-server-prometheus'
If you have feedback or need assistance with the MCP directory API, please join our Discord server