Provides tools for querying real-time and historical metrics data, discovering available metrics, retrieving metric metadata, and monitoring scrape targets from Prometheus monitoring systems.
Prometheus MCP Server
A Model Context Protocol (MCP) server that provides seamless integration with Prometheus, enabling AI assistants to query metrics, discover available data, and analyze system performance through natural language interactions.
Features
- Real-time Metrics Access - Query current and historical metrics data
- Metrics Discovery - Find available metrics and monitoring targets
- Multiple Auth Methods - Basic auth, bearer tokens, and TLS support
- Type-safe - Full TypeScript implementation
MCP Configuration
Using npx (Recommended)
Add to your MCP client settings:
Using global installation
First install the package globally:
Then configure your MCP client:
Environment Variables
Available Tools
Tool | Description | Use Case |
---|---|---|
prom_query | Execute PromQL instant query | Get current metric values, alerts status |
prom_range | Execute PromQL range query | Analyze trends, create graphs, historical data |
prom_discover | Discover available metrics | Explore what metrics are available in your system |
prom_metadata | Get metric metadata | Understand metric types, descriptions, and units |
prom_targets | Get scrape targets info | Monitor scraping health and service discovery |
Example Usage
Ask your AI assistant natural language questions:
- "What's the current CPU usage across all servers?"
- "Show me HTTP request rates for the last 6 hours"
- "Which services have the highest memory consumption?"
- "Are there any failing health checks?"
- "What metrics are available for monitoring my database?"
Development
Connection Methods
1. No Authentication
2. Basic Authentication
3. Bearer Token
Additional Options
For self-signed certificates or development:
License
MIT
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that enables AI assistants to query Prometheus metrics, discover available data, and analyze system performance through natural language interactions.
Related MCP Servers
- -securityFlicense-qualityA versatile Model Context Protocol server that enables AI assistants to manage calendars, track tasks, handle emails, search the web, and control smart home devices.Last updated -14Python
- AsecurityAlicenseAqualityProvides access to Prometheus metrics and queries through standardized Model Context Protocol interfaces, allowing AI assistants to execute PromQL queries and analyze metrics data.Last updated -5165PythonMIT License
- -securityFlicense-qualityA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.Last updated -31TypeScript
- -securityFlicense-qualityA tool that enables access to Prometheus metrics data through a Model Context Protocol server, allowing interaction with monitoring data using natural language.Last updated -Python