Prometheus Mcp logo

Prometheus Mcp

Community
dujonwalker
prometheus-mcp

Use this skill whenever querying or inspecting a Prometheus instance via the pab1it0/prometheus-mcp-server MCP server — executing instant or range PromQL queries, listing cached metric names, inspecting metric metadata (type, help, unit), checking scrape target health, or verifying Prometheus connectivity. Also use when configuring prometheus-mcp-server transports (stdio, http, sse), stateless HTTP, TOOL_PREFIX for multi-instance setups, or auth/TLS env vars.

Overview

Publisherdujonwalker
Repositoryproject-nova
Skill nameprometheus-mcp
Stars
271
Forks
33
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by dujonwalker on GitHub. Read the source before you install it.

Installation

Install the Prometheus Mcp AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dujonwalker/project-nova/tree/main/mcp-skills/prometheus-mcp
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dujonwalker/project-nova.git /tmp/project-nova
mkdir -p .claude/skills
cp -r /tmp/project-nova/mcp-skills/prometheus-mcp .claude/skills/prometheus-mcp
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Prometheus Mcp in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Prometheus Mcp on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Prometheus Mcp is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Prometheus MCP (prometheus-mcp)

Use the prometheus-mcp MCP tools as the primary interface for discovering metrics, checking scrape target health, and running instant or range PromQL queries.

Core Workflows

  • Verify server & Prometheus connectivity: Call health_check to inspect transport/auth configuration status and verify a live up query against Prometheus.
  • Discover metrics & labels before querying:
    1. Call list_metrics with filter_pattern (case-insensitive substring) and limit/offset to find exact metric names without dumping the full catalog.
    2. Call get_metric_metadata with metric (or filter_pattern + limit/offset in bulk mode) to check type (counter, gauge, histogram, summary), help, and unit.
  • Check scrape target health: Call get_targets (state="active" by default; optionally narrow by scrape_pool and paginate with limit/offset) to verify target health, lastError, and scrape labels.
  • Run PromQL queries:
    • Instant state or firing alerts (up, ALERTS{alertstate="firing"}, gauge snapshots): use execute_query(query, time?).
    • Rates/trends over time (rate(...), irate(...)): use execute_range_query(query, start, end, step) with RFC3339 or Unix timestamps and step widths like "15s", "1m", or "1h".

Read references/tools-reference.md for exact parameters, return shapes, and common PromQL patterns.

Gotchas

  • PromQL-only (6 tools): There are no separate REST tools for alerts, rules, series, or label values—query alerts via ALERTS{alertstate="firing"} and discover series/labels via PromQL (group by (...) (...) or count by (...) (...)) with execute_query.
  • 5-minute list_metrics cache: Metric names from /api/v1/label/__name__/values are cached in memory for 300 seconds. Pass refresh_cache: true after adding new exporters or scrape targets.
  • get_targets defaults to state="active": Dropped targets include full discoveredLabels and can be huge. Only pass state="dropped" or state="any" when debugging relabeling, and combine with scrape_pool + limit.
  • get_metric_metadata returns two different shapes: Passing metric="<name>" returns a legacy list of entries; omitting metric returns a paginated dict ({metadata, total_count, returned_count, offset, has_more}).
  • Multi-instance TOOL_PREFIX: Setting TOOL_PREFIX=<name> renames every tool to <name>_<tool_name> (e.g., prod_execute_query).
  • Context-token saving: Set PROMETHEUS_DISABLE_LINKS=true on the server to omit links arrays (View in Prometheus UI) from query responses.

Connection Setup

Read references/setup-and-config.md when deploying ghcr.io/pab1it0/prometheus-mcp-server or prometheus-mcp-server, configuring http/sse/stdio transports (PROMETHEUS_MCP_STATELESS_HTTP), or setting TLS/auth variables.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Prometheus Mcp AI skill do?

Use this skill whenever querying or inspecting a Prometheus instance via the pab1it0/prometheus-mcp-server MCP server — executing instant or range PromQL queries, listing cached metric names, inspecting metric metadata (type, help, unit), checking scrape target health, or verifying Prometheus connectivity. Also use when configuring prometheus-mcp-server transports (stdio, http, sse), stateless HTTP, TOOL_PREFIX for multi-instance setups, or auth/TLS env vars.

Why use Prometheus Mcp on TypingMind?

Because you install it once and use it with any model. Prometheus Mcp is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Prometheus Mcp in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dujonwalker/project-nova/tree/main/mcp-skills/prometheus-mcp. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Prometheus Mcp?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Prometheus Mcp?

As many as you like. As long as a model supports skills, you can use Prometheus Mcp with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Prometheus Mcp AI skill free?

Yes. It is published on GitHub by dujonwalker under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇