# prometheus-mcp-server  A Model Context Protocol (MCP) server for interacting with
If you already use Prometheus, the prometheus mcp server is the piece that lets your assistant work with it directly. # prometheus-mcp-server
A Model Context Protocol (MCP) server for interacting with Prometheus metrics and data. This is a TypeScript-based MCP server that implements a Prometheus.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
mcp__instant_query — Execute an instant PromQL querymcp__range_query — Execute a range PromQL query over a time periodmcp__get_series — Find series by label matchersmcp__get_label_values — Get values for a specific labelmcp__get_metadata — Get metadata for metricsmcp__get_targets — Get information about scrape targetsmcp__get_alerts — Get information about alertsmcp__get_rules — Get information about recording and alerting rulesmcp__get_status — Get status information about the Prometheus serverConfiguration is passed through the environment: PROMETHEUS_BASE_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Installation goes through your MCP client rather than a global install: point it at prometheus-mcp-server on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
Among the monitoring and observability options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Prometheus's toolset — mcp__instant_query, mcp__range_query, mcp__get_series and 6 more — is a fair guide to whether it matches your workflow. It is maintained by weetime; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| mcp__instant_query | Execute an instant PromQL query |
| mcp__range_query | Execute a range PromQL query over a time period |
| mcp__get_series | Find series by label matchers |
| mcp__get_label_values | Get values for a specific label |
| mcp__get_metadata | Get metadata for metrics |
| mcp__get_targets | Get information about scrape targets |
| mcp__get_alerts | Get information about alerts |
| mcp__get_rules | Get information about recording and alerting rules |
| mcp__get_status | Get status information about the Prometheus server |
{
"mcpServers": {
"prometheus-mcp-server-weetime": {
"command": "npx",
"args": ["-y", "prometheus-mcp-server"],
"env": {
"PROMETHEUS_BASE_URL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| PROMETHEUS_BASE_URL | Endpoint or connection string the server talks to. | Yes |
Give your coding agent the full DevTools toolbox: traces, network, console, heap snapshots and Lighthouse.
Dashboards, Prometheus and Loki queries, incidents and alerts — observability by conversation.
Errors with full context — stack traces, issue triage and AI-powered root-cause analysis from Sentry's server.
Enables enhanced web research capabilities for large language models through intelligent search queuing and advanced content extraction.
Automates browser interactions and enables Large Language Models (LLMs) to interact with web pages through Playwright and Chrome DevTools Protocol
Guides tool usage by providing recommendations for MCP tools at each problem-solving stage.