Prometheus MCP Server

Stableanalytics
80 starsTypeScriptcommunity
GitHub
About

Overview

The Prometheus MCP Server enables AI agents to query Prometheus time-series databases. It provides tools for executing PromQL queries, listing metrics, viewing alert rules, and accessing target health information.
Capabilities

Tools & Capabilities

query

Execute a PromQL instant query

query_range

Execute a PromQL range query

list_metrics

List available metrics

list_alerts

List active alerts

get_targets

Get scrape target health

Setup

Installation

bash
Install
npx -y mcp-server-prometheus
Examples

Example Usage

javascript
Usage
{
  "mcpServers": {
    "prometheus": {
      "command": "npx",
      "args": ["-y", "mcp-server-prometheus"],
      "env": { "PROMETHEUS_URL": "http://localhost:9090" }
    }
  }
}

Quick Info

Authorcommunity
LanguageTypeScript
StatusStable
Stars 80
Last UpdatedFeb 12, 2026

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow.

Get in Touch

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow. From proprietary data sources to internal tools, we have you covered.

Contact Us
CortexAgent Customer Service

Want to skip the form?

Our team is available to help you get started with CortexAgent.

This chat may be recorded for quality assurance. You can view our Privacy Policy.

Prometheus MCP Server - MCP Server Directory - CortexAgent