1. Conduid
  2. Developer Tools
  3. Prometheus (TypeScript)
MCP server · Developer Tools

Prometheus (TypeScript)

Enable AI assistants to query Prometheus using natural language. Discover metrics, analyze performance, and get insights — no PromQL required. Powered by Model Context Protocol (MCP).

57Fair

Scored 5 months ago · breakdown

About Prometheus (TypeScript)

Prometheus (TypeScript) is an MCP server published by yanmxa in the Developer Tools category: enable AI assistants to query Prometheus using natural language. Discover metrics, analyze performance, and get insights — no PromQL required. Powered by Model Context Protocol (MCP).

The repository has 1 stars and 1 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/yanmxa/prometheus-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (5)

prom_discoverDiscover available metrics

Parameters not published.

prom_metadataGet metric metadata

Parameters not published.

prom_queryExecute PromQL instant query

Parameters not published.

prom_rangeExecute PromQL range query

Parameters not published.

prom_targetsGet scrape targets info

Parameters not published.

Ask AI

✦

Ask AI about Prometheus (TypeScript)

Powered by Claude · Grounded in docs

I know everything about Prometheus (TypeScript). Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

3 checks have not been run yet.

README

Prometheus MCP Server

npm version

A Model Context Protocol (MCP) server that provides seamless integration with Prometheus, enabling AI assistants to query metrics, discover available data, and analyze system performance through natural language interactions.

Features

  • Real-time Metrics Access - Query current and historical metrics data
  • Metrics Discovery - Find available metrics and monitoring targets
  • Multiple Auth Methods - Basic auth, bearer tokens, and TLS support
  • Type-safe - Full TypeScript implementation

MCP Configuration

Using npx (Recommended)

Add to your MCP client settings:

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

Using global installation

First install the package globally:

npm install -g prometheus-mcp-server

Then configure your MCP client:

{
  "mcpServers": {
    "prometheus": {
      "command": "prometheus-mcp-server",
      "env": {
        "PROMETHEUS_URL": "http://localhost:9090"
      }
    }
  }
}

Environment Variables

# Required
PROMETHEUS_URL=http://localhost:9090

# Optional Authentication
PROMETHEUS_USERNAME=admin
PROMETHEUS_PASSWORD=password
PROMETHEUS_TOKEN=bearer-token

# Optional Connection
PROMETHEUS_TIMEOUT=10000
PROMETHEUS_INSECURE=false

Available Tools

Tool Description Use Case
prom_query Execute PromQL instant query Get current metric values, alerts status
prom_range Execute PromQL range query Analyze trends, create graphs, historical data
prom_discover Discover available metrics Explore what metrics are available in your system
prom_metadata Get metric metadata Understand metric types, descriptions, and units
prom_targets Get scrape targets info Monitor scraping health and service discovery

Example Usage

Ask your AI assistant natural language questions:

  • "What's the current CPU usage across all servers?"
  • "Show me HTTP request rates for the last 6 hours"
  • "Which services have the highest memory consumption?"
  • "Are there any failing health checks?"
  • "What metrics are available for monitoring my database?"

Development

# Run with inspector
npm run inspector

# Run directly
npm run dev

Connection Methods

1. No Authentication

export PROMETHEUS_URL=http://localhost:9090

2. Basic Authentication

export PROMETHEUS_URL=http://localhost:9090
export PROMETHEUS_USERNAME=admin
export PROMETHEUS_PASSWORD=secret

3. Bearer Token

export PROMETHEUS_URL=https://prometheus.example.com:9090
export PROMETHEUS_TOKEN=your-bearer-token

Additional Options

For self-signed certificates or development:

export PROMETHEUS_INSECURE=true

License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Prometheus (TypeScript)

How do I install Prometheus (TypeScript)?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Prometheus (TypeScript) safe to use with an AI agent?

Its trust score is 57 out of 100 (fair). It passes 2 of the 3 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Prometheus (TypeScript) still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.