drio
Open app

mcp-server-prometheus

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

The mcp-server-prometheus is a TypeScript-based server that interacts with Prometheus metrics and data, providing a bridge between Claude and your Prometheus server through the Model Context Protocol (MCP).

To use the mcp-server-prometheus, configure the server with the base URL of your Prometheus instance and add the server configuration to Claude Desktop. You can also install dependencies and build the server using npm commands.

  • List and access Prometheus metric schema - Detailed metadata and statistical information for each metric - Basic authentication support for secured Prometheus instances - JSON mime type for structured data access
  1. Accessing and monitoring Prometheus metrics in real-time.
  2. Integrating Prometheus data with AI applications like Claude.
  3. Debugging and inspecting Prometheus metrics through the MCP Inspector.

Add to your AI client

Use these steps to connect mcp-server-prometheus in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "loglmhq-mcp-server-prometheus-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-loglmhq-mcp-server-prometheus-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "loglmhq-mcp-server-prometheus-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-loglmhq-mcp-server-prometheus-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "loglmhq-mcp-server-prometheus-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-loglmhq-mcp-server-prometheus-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "loglmhq-mcp-server-prometheus-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-loglmhq-mcp-server-prometheus-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "loglmhq-mcp-server-prometheus-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-loglmhq-mcp-server-prometheus-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "loglmhq-mcp-server-prometheus-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-loglmhq-mcp-server-prometheus-mcp-mirror"
      ]
    }
  }
}

FAQ

What is required to run the mcp-server-prometheus?

You need to set the `PROMETHEUS_URL` environment variable to your Prometheus instance's base URL.

Can I use this server with secured Prometheus instances?

Yes! The server supports basic authentication for secured instances.

How do I debug the server?

You can use the MCP Inspector for debugging, which provides a URL to access debugging tools in your browser.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":621,"uuid":"45f30507-e3c1-405e-bac3-12efec1dfd38","name":"loglmhq_mcp-server-prometheus","title":"mcp-server-prometheus","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2024-12-30T03:24:25.449Z","updated_at":"2025-02-23T07:15:14.455Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"mcp-server,prometheus,metrics","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/loglmhq_mcp-server-prometheus","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/c68fc8507bf1b349a2cc54d5cef65b9dc4fbece0ac4908439b3230685f0b1b81/68747470733a2f2f676c616d612e61692f6d63702f736572766572732f79376233716261386a792f6261646765","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]