CCM
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Skill index
  • MCP index
  • Marketplace index
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic
mshegolev avatar

Prometheus Mcp

mshegolev/prometheus-mcp
authSTDIOregistry active
Summary

Connects Claude directly to your Prometheus instance over stdio with five read-only tools: list metrics, run instant PromQL queries, fetch time-series ranges, inspect active alerts, and check scrape target health. Returns both structured JSON and markdown for each response. Supports bearer tokens, HTTP basic auth, or no auth for internal deployments. All tools are marked read-only, so there's zero risk of modifying data. Built for engineers who want to debug metrics, investigate alerts, or explore what's being scraped without switching contexts. Ships as a pip package or runs via uvx with no install. Works with Claude Desktop, Cursor, or any MCP client that speaks stdio.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

prometheus-mcp

PyPI version Python versions License: MIT Tests

MCP server for Prometheus metrics and observability. Give Claude (or any MCP-capable agent) read access to your Prometheus instance — query metrics with PromQL, inspect active alerts, and explore scrape targets — without leaving the conversation.

Why another Prometheus MCP?

The existing Prometheus integrations require custom scripts or direct API knowledge. This server:

  • Speaks the standard Model Context Protocol over stdio — works with Claude Desktop, Claude Code, Cursor, and any MCP client.
  • Is read-only: all 5 tools carry readOnlyHint: true — zero risk of modifying Prometheus data.
  • Returns dual-channel output: structured JSON (structuredContent) for programmatic use + Markdown (content) for human-readable display.
  • Has actionable error messages that name the exact env var to fix and suggest a next step.
  • Supports Bearer token, HTTP Basic auth, or no auth (common for internal deployments).

Tools

ToolEndpointDescription
prometheus_list_metricsGET /api/v1/label/__name__/valuesList all metric names with optional substring filter (cap 500)
prometheus_queryGET /api/v1/queryExecute an instant PromQL query
prometheus_query_rangeGET /api/v1/query_rangeExecute a PromQL range query returning time-series
prometheus_list_alertsGET /api/v1/alertsList active and pending alerts
prometheus_list_targetsGET /api/v1/targetsList scrape targets by health and job

v4.0 Advanced Alert Correlation Features

Version 4.0 introduces powerful new capabilities for AI agents to autonomously investigate production errors:

Cross-Instance Alert Correlation

  • Automatically identify related alerts across multiple Prometheus instances
  • Group alerts by service identifiers to understand incident scope
  • Detect cascading alert patterns with directional dependency inference

Root Cause Analysis

  • Anomaly detection in metrics with automatic seasonality adjustment
  • Dependency chain traversal from symptoms to potential root causes
  • Change point detection correlating alerts with recent deployments or config changes
  • Ranked root cause candidates based on evidence strength and impact analysis

Dependency Mapping & Health

  • Dynamic service dependency maps built from traffic correlation analysis
  • Cross-cluster dependency visualization showing service interoperation
  • Synthetic health probing to assess dependency resilience
  • Load shedding recommendations based on dependency fragility

Trend Analysis & Benchmarking

  • Historical pattern recognition for recurring alert schedules
  • Capacity forecasting to predict resource exhaustion
  • MTTR benchmarking comparing resolution times against historical data
  • Deviation detection triggering higher-priority notifications for pattern breaks

Integrated Analysis Tool

  • New federation_analyze_alerts tool combining all v4.0 features
  • Unified output format optimized for AI agent consumption
  • Comprehensive incident context in a single tool call

Installation

pip install prometheus-mcp

Or run directly without installing:

uvx prometheus-mcp

Configuration

All configuration is via environment variables:

VariableRequiredDefaultDescription
PROMETHEUS_URLYes—Prometheus server URL, e.g. https://prometheus.example.com (no trailing slash)
PROMETHEUS_TOKENNo—Bearer token (takes precedence over Basic auth)
PROMETHEUS_USERNAMENo—HTTP Basic auth username
PROMETHEUS_PASSWORDNo—HTTP Basic auth password
PROMETHEUS_SSL_VERIFYNotrueSet false for self-signed certificates

Copy .env.example to .env and fill in your values.

Claude Desktop / Claude Code setup

Add to your MCP config (claude_desktop_config.json or .claude/mcp.json):

{
  "mcpServers": {
    "prometheus": {
      "command": "prometheus-mcp",
      "env": {
        "PROMETHEUS_URL": "https://prometheus.example.com",
        "PROMETHEUS_TOKEN": "your-token-here"
      }
    }
  }
}

Or with uvx (no install required):

{
  "mcpServers": {
    "prometheus": {
      "command": "uvx",
      "args": ["prometheus-mcp"],
      "env": {
        "PROMETHEUS_URL": "https://prometheus.example.com"
      }
    }
  }
}

Docker

docker run --rm -e PROMETHEUS_URL=https://prometheus.example.com prometheus-mcp

Example queries

Once configured, ask Claude:

  • "What metrics does Prometheus have about HTTP requests?"
  • "What is the current request rate for the payment service?"
  • "Show me CPU usage over the last hour with 5-minute resolution"
  • "Are there any firing alerts? What's their severity?"
  • "Which scrape targets are currently down and why?"
  • "How many node-exporter instances are up?"

Tool usage guide

prometheus_list_metrics

Returns all metric names Prometheus knows about. Use pattern to filter by substring (case-insensitive). Start here when you don't know which metrics are available. Output is capped at 500 metrics with a truncation hint.

prometheus_query

Execute an instant PromQL expression and get current values. Returns result type (vector/scalar/matrix/string), sample count, and per-sample labels and values.

Parameters:

  • query (required) — PromQL expression, e.g. up, rate(http_requests_total[5m])
  • time (optional) — RFC3339 or Unix timestamp; defaults to now

prometheus_query_range

Execute a PromQL expression over a time window. Returns one series per matching time series with timestamped values. Total data points across all series are capped at 5000.

Parameters:

  • query (required) — PromQL expression
  • start / end (required) — RFC3339 or Unix timestamps
  • step (required) — resolution like 15s, 1m, 5m

Prometheus rejects steps that would produce > 11,000 points per series (HTTP 422). Increase step or narrow the range if this happens.

Note: The Prometheus range API does not support filtering by branch or commit — filters are expressed purely in PromQL label matchers.

prometheus_list_alerts

Returns all active/pending alerts with labels (including alertname, severity), state, activation time, and current value. Includes a state summary (firing vs pending counts).

prometheus_list_targets

Returns scrape targets with job name, instance address, health (up/down/unknown), last scrape duration in milliseconds, and any error message. Includes a per-job summary. Filter by state: active (default), dropped, or any.

Performance characteristics

  • All tools use a single persistent requests.Session with connection pooling.
  • The session has trust_env = False to bypass environment proxies (Prometheus is typically an internal service).
  • Requests time out after 30 seconds.
  • prometheus_query_range caps output at 5000 total points across all series — use a larger step for long windows.
  • prometheus_list_metrics returns up to 500 metrics after filtering.

Development

git clone https://github.com/mshegolev/prometheus-mcp
cd prometheus-mcp
pip install -e '.[dev]'
pytest tests/ -v
ruff check src tests
ruff format src tests

API Specification

This project includes an OpenAPI 3.0 specification in the specs/ directory that documents all MCP tools exposed by the server.

To validate the specification:

python3 specs/validate_spec.py

Automation

This repository includes automated scripts and GitHub Actions workflows to streamline the release process:

Scripts

  • scripts/auto-commit-push.sh - Automatically commit and push changes with optional release trigger
  • scripts/release.sh - Full release automation including pipeline checking, version bumping, and tagging

GitHub Actions Workflows

  • post-push-check.yml - Monitors test pipeline status after each push and comments on the commit
  • auto-release.yml - Manual workflow to create releases with version bumping (patch, minor, or major)

To trigger an automated release:

  1. Go to the Actions tab in GitHub
  2. Select "Auto Release" workflow
  3. Run the workflow with your preferred version bump type

License

MIT — see LICENSE.

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

Configuration

PROMETHEUS_URL*

Prometheus server URL, e.g. https://prometheus.example.com (no trailing slash)

PROMETHEUS_TOKENsecret

Bearer token for authentication. Takes priority over Basic auth.

PROMETHEUS_USERNAME

HTTP Basic auth username. Used only when PROMETHEUS_TOKEN is not set.

PROMETHEUS_PASSWORDsecret

HTTP Basic auth password.

PROMETHEUS_SSL_VERIFYdefault: true

Verify SSL certificates (true/false). Set to 'false' for self-signed certs.

Categories
Search & Web CrawlingMonitoring & Observability
Registryactive
Packageprometheus-mcp
TransportSTDIO
AuthRequired
UpdatedApr 18, 2026
View on GitHub

More from mshegolev

  • Jaeger Mcp
  • Kibana Mcp
  • Sonarqube Mcp
  • Allure Testops Mcp3
  • Gitlab Ci Mcp
  • Harbor Registry Mcp

Related Search & Web Crawling MCP Servers

View all →
mstang avatar
Casemgr Mcp

mstang/casemgr-mcp

Shared workspace your AI agent writes to. 184 tools, persistent memory, semantic search.
namewhisper avatar
Name Whisper

namewhisper/ens-tools

34 MCP tools to search, register, manage, value, and trade ENS names. AI-powered intelligence layer for the ENS ecosystem.
namewhisper avatar
Name Whisper

namewhisper/ens-tools-a0efab31

34 MCP tools to search, register, manage, value, and trade ENS names. AI-powered intelligence layer for the ENS ecosystem.
navifare avatar
Navifare Mcp

navifare/navifare-mcp

Flight price comparison MCP server. Search multiple booking sources to find better flight prices.
negimaru1025 avatar
HoShy

negimaru1025/hoshy

Search Rakuten Ichiba products and compare prices via Claude. Zero setup, no API key needed.
net-service avatar
xpoz

net-service/xpoz

Social media intelligence for AI agents: search and analyze Twitter/X, Instagram, Reddit, and TikTok through natural language. Billions of posts indexed, including historical data. No social media API keys, no installation, just add the endpoint URL. Perfect for brand monitoring, competitive analysis, influencer research, market research, and OSINT. ## What You Can Do **Twitter/X:** - Get user profiles, followers, following lists - Search tweets by keywords with boolean operators - Analyze engagement (comments, quotes, retweets) - Export full datasets to CSV **Instagram:** - Look up user profiles and statistics - Search posts by keywords in captions - Get comments and post engagement **Reddit:** - Search posts and comments by keywords across all subreddits - Pull full threads with comment trees - Find and explore subreddits **TikTok:** - Search posts by keywords and hashtags - Look up users and their posts - Get comments and engagement data ## Why Xpoz? - One subscription covers all four platforms - Pre-indexed data: fast keyword search over billions of posts, including historical - Natural language queries via any MCP client (Claude, ChatGPT, Cursor) - Free tier to start, no credit card required Get started at https://xpoz.ai