MCP Victoriametrics logo

MCP Victoriametrics

by VictoriaMetrics-Community

Read-only MCP access to VictoriaMetrics queries, metadata, alerts, rules, cardinality, and embedded documentation.

Install MCP Victoriametrics

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
http://localhost:8080/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

VictoriaMetrics-Community/mcp-victoriametrics connects MCP clients to VictoriaMetrics or VictoriaMetrics Cloud APIs and embedded documentation. It exposes read-only tools for querying MetricsQL or PromQL, exploring labels and series, inspecting alerts and rules, and analyzing query or TSDB behavior. Use it when an AI agent needs monitoring, observability, debugging, or documentation context for a VictoriaMetrics deployment. The server supports stdio and HTTP-based modes, including Streamable HTTP.

Use cases

  • Query metrics with PromQL or MetricsQL
  • Inspect firing alerts and recording rules
  • Investigate query latency and active queries
  • Analyze TSDB cardinality and metric usage
  • Search VictoriaMetrics documentation for troubleshooting context

Key features

  • Instant and range PromQL or MetricsQL queries
  • Metric, label, metadata, and series exploration
  • Alert, rule, tenant, and active-query inspection
  • Query explanation and MetricsQL formatting
  • TSDB cardinality and metric usage statistics
  • Embedded documentation search

Tools17

What MCP Victoriametrics lets your agent do. Expand a tool for its parameters.

Verified live~4.9k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

15/16 checks healthy over the last 77d

What it can do

From the 17 tools this server returned when we ran it.

Makes network requests · 2Read-only tools · 17

Observed 2026-10-15 in an isolated sandbox. A description of reach, not a security audit.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars240Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Tools exposed17Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Victoriametrics works

What VictoriaMetrics-Community/mcp-victoriametrics does

VictoriaMetrics-Community/mcp-victoriametrics gives MCP clients an interface to a VictoriaMetrics single-node, cluster, or VictoriaMetrics Cloud instance. Its tools cover read-only API operations for exploring stored metrics, running PromQL or MetricsQL queries, inspecting alerting and recording rules, and investigating query performance or TSDB cardinality.

The server also includes an embedded VictoriaMetrics documentation resource. A documentation search tool returns relevant resource URIs, allowing an agent to retrieve product context without requiring online documentation access. Query analysis tools can explain or format MetricsQL expressions, while metadata and usage statistics help identify metric definitions and query activity.

How it works

The MCP process translates tool calls into requests to VictoriaMetrics APIs. Instant and range queries use the corresponding query endpoints; label, metric, metadata, series, alert, rule, tenant, and status tools map to their respective VictoriaMetrics or vmalert API endpoints. The server can inspect active queries, rank frequently or expensively executed queries, and report TSDB cardinality details such as high-cardinality metric names, labels, values, and label-name pairs.

Supported operation modes include stdio and HTTP-based serving. Streamable HTTP mode can expose a root endpoint with setup instructions and tool inspection. A public test instance is available at https://play-mcp.victoriametrics.com/mcp; it is intended for MCP clients and connects to the VictoriaMetrics Playground.

Setup and configuration

Run the server from a downloaded release binary, a Docker image, a Helm deployment, or a locally built binary. Source builds use Go 1.26 or newer and the repository's make build target. Docker images are published through the VictoriaMetrics GitHub Container Registry.

Configuration uses environment variables. Set VM_INSTANCE_ENTRYPOINT to the root URL of a VictoriaMetrics single-node instance or vmselect endpoint, or configure VMC_API_KEY for VictoriaMetrics Cloud access. VM_INSTANCE_TYPE identifies the instance type. HTTP deployments can set MCP_SERVER_MODE, MCP_LISTEN_ADDR, and MCP_AUTH_TOKEN; the documented Docker example uses port 8080 and Streamable HTTP or SSE mode.

A typical Docker deployment supplies the VictoriaMetrics endpoint, instance type, server mode, listen address, and authentication token, then publishes the selected listen port. Client configuration depends on whether the process is launched over stdio or reached through an HTTP MCP endpoint. Claude Desktop is shown as a supported client configuration.

The available operations are read-only. They are intended for querying, inspection, analysis, and documentation lookup rather than changing VictoriaMetrics data or configuration.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Victoriametrics

VictoriaMetrics-Community/mcp-victoriametrics is an MCP server that connects AI clients to VictoriaMetrics and VictoriaMetrics Cloud. Its main tools run PromQL or MetricsQL queries, explore metrics and labels, inspect alerts and rules, analyze query and TSDB statistics, format or explain queries, and search embedded documentation.

Install it by downloading a release binary, running the published Docker image, deploying its Helm chart, or building it from source. Source builds require Go 1.26 or newer. Configure the VictoriaMetrics endpoint and instance type through environment variables before connecting an MCP client.

Set VM_INSTANCE_ENTRYPOINT and VM_INSTANCE_TYPE for a VictoriaMetrics deployment, or use VMC_API_KEY for VictoriaMetrics Cloud access. HTTP deployments can also set MCP_SERVER_MODE, MCP_LISTEN_ADDR, and MCP_AUTH_TOKEN.

Yes, it works with Claude Desktop. The server supports MCP client connections through stdio and HTTP-based modes, and its usage documentation includes a Claude Desktop configuration example.

No, its exposed VictoriaMetrics operations are read-only. The tools query data and inspect metadata, alerts, rules, queries, cardinality, and documentation rather than modifying stored metrics or server configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Victoriametrics AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/victoriametrics-community-mcp-victoriametrics?style=directory)](https://allmcps.com/mcp/victoriametrics-community-mcp-victoriametrics)
HTML Embed
<a href="https://allmcps.com/mcp/victoriametrics-community-mcp-victoriametrics"><img src="https://allmcps.com/api/badge/victoriametrics-community-mcp-victoriametrics?style=directory" alt="MCP Victoriametrics on AllMCPs" /></a>