Prometheus MCP Server

Prometheus MCP Server

Local serverstdioGo

What is the Prometheus MCP Server?

Prometheus MCP Server

What the server does

A Model Context Protocol (MCP) server that provides seamless integration between AI assistants and Prometheus, enabling natural language interactions with your monitoring infrastructure. This server allows for effortless querying, discovery, and analysis of metrics through Visual Studio Code, Cursor, Windsurf, Claude Desktop, and other MCP clients.

  • Fast and lightweight — . Direct API integration with Prometheus, no complex parsing needed
  • LLM-friendly — . Structured JSON responses optimized for AI assistant consumption
  • Configurable capabilities — . Enable/disable tool categories based on your security and operational requirements
  • Dual transport support — . Works with both stdio and HTTP transports for maximum compatibility

Credentials and setup notes

  • Node.js 20.19.0 or newer - Access to a Prometheus server - VS Code, Cursor, Windsurf, Claude Desktop or any other MCP client

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
Parameters- query (string): Prometheus query expression
Read-onlytrue
timestring, optional): Time parameter for the query (RFC3339 format)

How to install the Prometheus MCP Server

{
  "mcpServers": {
    "prometheus": {
      "command": "npx",
      "args": [
        "prometheus-mcp@latest",
        "stdio"
      ],
      "env": {
        "PROMETHEUS_URL": "http://localhost:9090"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js 20.19.0 or newer - Access to a Prometheus server - VS Code, Cursor, Windsurf, Claude Desktop or any other MCP client
VariableDescriptionRequired
PROMETHEUS_URLDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Prometheus to Description.”
  • “Use Prometheus to Parameters.”
  • “Use Prometheus to Read-only.”

Frequently asked questions

Prometheus MCP Server Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.