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 tjhop Community

Prometheus MCP Server lets AI assistants query and manage a running Prometheus instance through its API. It is aimed at engineers who run Prometheus or Prometheus-compatible backends and want help investigating them.

  • Score 80
  • 152 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 ghcr.io/tjhop/prometheus-mcp-server:0.18.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 API. It can generate and execute PromQL queries, list and analyze metrics, and call Prometheus management endpoints. The tools return the API's JSON output to the model, and an optional setting can convert that output to TOON format to reduce token use.

The server provides tools such as query, range_query, series, list_targets and runbooks_read, plus embedded runbooks for common tasks like system health checks. It also works with some Prometheus-compatible backends, including Thanos, Mimir and Cortex, with differences noted per backend. TSDB admin tools such as delete_series are off by default and need a flag to enable. The project suits people who run Prometheus and want an assistant to help investigate it.

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

Tools it gives your assistant

  • queryRuns an instant PromQL query, returning one value per series at a single point in time.
  • range_queryRuns a range query that returns values over a time window.
  • seriesFinds series by label matchers.
  • label_namesReturns unique label names present in the data for a time range and matchers.
  • label_valuesReturns the values of a given label for a time range and matchers.
  • metric_metadataReturns metadata about metrics currently scraped, by metric name.
  • list_targetsGives an overview of Prometheus target discovery.
  • list_alertsLists all active alerts.
  • list_rulesLists all alerting and recording rules that are loaded.
  • runbooks_readReads a named runbook, a guided workflow for a common Prometheus task.

What you need

  • A running Prometheus instance or Prometheus-compatible backend

Try asking

  • Querying my metrics is slow, can you help me figure out why?
  • Summarize Prometheus metric and label naming best practices.
  • Review my Prometheus config, flags and runtime info for health issues.

Good to know

  • TSDB admin tools are disabled by default and need --dangerous.enable-tsdb-admin-tools.
  • TOON output is not guaranteed to reduce token usage.
  • Thanos does not implement the config endpoint, so the config tool is removed for it.

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 20k/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 it work with Prometheus-compatible backends?

The source says it should at minimum work with Prometheus API compatible services for queries and metadata. Some backends, such as Thanos, Mimir and Cortex, have specific differences listed.

Can it delete data in Prometheus?

Only if the TSDB admin tools are enabled. Tools such as delete_series and clean_tombstones are not enabled by default and require a specific flag.

What is TOON output?

TOON is Token-Oriented Object Notation, an optional output format for converting the API's JSON. The source notes it is designed for token efficiency but does not guarantee lower usage.

How do I install Prometheus MCP Server?

In Claude Code run claude mcp add prometheus-mcp-server -- docker run -i --rm ghcr.io/tjhop/prometheus-mcp-server:0.18.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 tjhop, 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.