Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Prometheus MCP Server

MCP server by prometheus Community

Prometheus MCP Server lets AI assistants query and inspect a running Prometheus instance through its API. It suits engineers who want help writing PromQL, reviewing metrics, alerts and targets, or checking instance health.

  • Score 80
  • 150 stars
  • Apache-2.0
  • Updated

Install Prometheus MCP Server

Built from the published package, never by AI.

claude mcp add prometheus-mcp-server -- docker run -i --rm docker.io/prom/prometheus-mcp:v0.19.0-rc.0

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Prometheus MCP Server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the prometheus-mcp-server block.

About

Prometheus MCP Server is an MCP server that lets LLMs interact with a running Prometheus instance through its HTTP API. It can generate and run PromQL queries, list and analyze metrics, and report on alerts, rules, targets and configuration. The tools return the API's JSON output to the model.

Tools can be limited with a whitelist flag to suit smaller context windows, and output can be converted to TOON format or truncated. The server also embeds runbooks, guided workflows for tasks such as system health checks and high-cardinality optimization. It is aimed at engineers who run Prometheus or Prometheus-compatible backends. TSDB admin tools stay disabled unless a flag is set.

Written from the project's README and checked against it.

Tools it gives your assistant

  • queryExecute an instant query against the Prometheus datasource at a single point in time.
  • range_queryExecute a range query that returns values over a time window.
  • seriesFinds series by label matchers.
  • label_namesReturns the unique label names present in the block for a time range and matchers.
  • label_valuesPerforms a query for the values of the given label, time range and matchers.
  • metric_metadataReturns metadata about metrics currently scraped, by metric name.
  • list_alertsList all active alerts.
  • list_rulesList all alerting and recording rules that are loaded.
  • list_targetsGet overview of Prometheus target discovery.
  • tsdb_statsGet usage and cardinality statistics from the TSDB.

What you need

  • A running Prometheus or Prometheus-compatible backend

Try asking

  • Help me figure out why my Prometheus queries are slow
  • Run a range query for request rate over the last hour
  • Which alerts are firing right now in my Prometheus?

Good to know

  • TSDB admin tools such as delete_series are off unless --dangerous.enable-tsdb-admin-tools is set.
  • Some backends return 404 for certain tools, such as config on Thanos, which is then removed.
  • API response truncation is disabled by default.
  • Token savings from TOON output are not guaranteed.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Prometheus MCP Server

All alternatives →
Azure MCP Server microsoft
100

Azure MCP Server bundles all Azure MCP tools into one local MCP server. It connects AI agents to Azure services and can be used alone or with the GitHub Copilot for Azure extension in VS Code.

AAA Local 261k/wk
openstatus openstatusHQ
98

Manages monitors, status pages, incidents and maintenances in an openstatus workspace from Claude, ChatGPT, or Cursor. It suits teams that run uptime monitoring and status pages and want their AI assistant to update them.

ACA Remote 9.3k
SmartBear MCP SmartBear
97

SmartBear MCP gives AI assistants access to SmartBear's testing and monitoring tools, including BugSnag, Reflect, Swagger, PactFlow and QTM4J. It is aimed at teams that already use these products. Products are reached through remote servers or a local npm package.

AAC Local and remote 17k/wk
Fettle fettlesh
97

Lets AI assistants manage Fettle uptime monitoring, including monitors, incidents, heartbeats, maintenance windows and status page incidents. Built for developers and operations teams who use Fettle and want to work from Claude, Cursor or Codex.

AAC Local and remote 22k/wk
Superlog superloglabs
95

Superlog is an open-source agentic telemetry system that ingests traces, logs and metrics and groups noisy signals into incidents. It is aimed at teams debugging production systems with OpenTelemetry data.

AAA Remote 1.5k
Microsoft Learn MCP MicrosoftDocs
94

Microsoft Learn MCP gives AI assistants direct access to official Microsoft documentation and code samples through a remote MCP endpoint. It is for developers who use MCP-compatible clients and want answers based on current Microsoft docs.

ACA Remote 2k

Compare with Azure MCP Server, openstatus or SmartBear MCP

Prometheus MCP Server: common questions

Does Prometheus MCP Server work with Thanos or Mimir?

The source says it should at minimum work with Prometheus API compatible services for queries and metadata. Backend-specific differences exist, such as Thanos removing the config tool.

Can destructive operations be run by default?

No. The TSDB admin tools, including delete_series and clean_tombstones, are not enabled by default and need a specific flag to acknowledge the risk.

How does it help reduce token usage?

It supports TOON encoding of API JSON and a configurable response truncation limit. The source notes that TOON is not guaranteed to reduce token usage.

How do I install Prometheus MCP Server?

In Claude Code run claude mcp add prometheus-mcp-server -- docker run -i --rm docker.io/prom/prometheus-mcp:v0.19.0-rc.0. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Prometheus MCP Server the official server?

Prometheus MCP Server is a community project by prometheus, not verified by a company domain.

Is Prometheus MCP Server free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Prometheus MCP Server safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Prometheus MCP Server?

Similar MCP servers: Azure MCP Server, openstatus, SmartBear MCP, Fettle.

Does Prometheus MCP Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Prometheus MCP Server Install

Add to stack

Loading.