Skip to main content
Glama
prometheus-mcp-server

prometheus-mcp-server

by mateusdata

prometheus-mcp-server

Prometheus MCP Server

A Model Context Protocol (MCP) server for interacting with Prometheus metrics and data.

TypeScript-based MCP server implementing a Prometheus API interface. Bridges Claude and your Prometheus server via MCP.

Features

  • Instant and range PromQL queries

  • Series and label discovery

  • Metric metadata access

  • Scrape target info

  • Alerts, rules, and status endpoints

Related MCP server: Proms MCP Server

Installation

npm install -g prometheus-mcp-server
# or
npm install prometheus-mcp-server
# or
npx prometheus-mcp-server

Usage

npm install
npm run build
npm start

Set the PROMETHEUS_HOST environment variable to your Prometheus instance URL.

Example Claude Desktop config:

{
  "mcpServers": {
    "prometheus-mcp-server": {
      "command": "npx prometheus-mcp-server",
      "env": {
        "PROMETHEUS_HOST": "http://your-prometheus-instance:9090"
      }
    }
  }
}

Functions

  • mcp__instant_query

  • mcp__range_query

  • mcp__get_series

  • mcp__get_label_values

  • mcp__get_metadata

  • mcp__get_targets

  • mcp__get_alerts

  • mcp__get_rules

  • mcp__get_status

Available Tools

10 tools
context-prometheusC

Consultes as regras e diretrizes para fazer queries e interagir com o Prometheus

Inputs: no named parameters.

get-alertsC

Get information about alerts

Inputs: no named parameters.

get-label-valuesC

Get label values for a label name

Inputs: labelName (required).

get-metadataC

Get metadata for metrics

Inputs: metric, limit.

get-rulesB

Get information about alerting and recording rules

Inputs: no named parameters.

get-seriesC

Find series by label matchers

Inputs: match (required), start, end.

get-statusB

Get status information about the Prometheus server

Inputs: statusType (required).

get-targetsC

Get information about targets

Inputs: state.

instant-queryC

Execute an instant Prometheus query

Inputs: query (required), time, timeout.

range-queryC

Execute a range Prometheus query

Inputs: query (required), start (required), end (required), step (required), +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 10 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose targeting specific Prometheus resources or query types, with no overlapping functionality. For example, get-alerts retrieves alerts, get-series finds series by labels, and instant-query versus range-query handle different query modes, making misselection unlikely.

    Naming Consistency4/5

    The naming follows a consistent verb_noun pattern with 'get-' or query-type prefixes for most tools, making them predictable. However, 'context-prometheus' deviates slightly by using a noun_verb structure and being in Portuguese, which breaks the pattern but is still understandable.

    Tool Count5/5

    With 10 tools, this is well-scoped for a Prometheus server, covering key operations like queries, metadata, alerts, rules, and status without being overwhelming. Each tool serves a distinct and necessary function in monitoring and data retrieval.

    Completeness4/5

    The toolset provides comprehensive coverage for querying, monitoring, and status checks in Prometheus, including instant and range queries, alerts, rules, and targets. A minor gap exists in management operations like configuration changes or data deletion, but core workflows are fully supported.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables Large Language Models to retrieve, analyze, and query metric data from Prometheus databases through pre-defined routes.
      33
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A lean MCP server that provides LLM agents with transparent access to multiple Prometheus instances for metrics analysis and SRE operations.
      4
      GPL 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI agents to interact directly with Prometheus metrics data through natural language queries.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that enables AI assistants to query and analyze Prometheus metrics through PromQL, with support for metric discovery and authentication.
      MIT