MCP Victoriametrics logo

MCP Victoriametrics

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

Install MCP Victoriametrics

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

Streamable HTTP (Remote)
Server URL
https://play-mcp.victoriametrics.com/mcp

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

Overview

mcp-victoriametrics connects MCP clients to a VictoriaMetrics or VictoriaMetrics Cloud instance and exposes read-only monitoring and query tools. It supports PromQL and MetricsQL queries, time-range analysis, metric and label discovery, alert and rule inspection, query diagnostics, and TSDB cardinality statistics. An embedded documentation search tool helps supply VictoriaMetrics context without requiring online documentation access. Use it when an agent needs to investigate metrics, troubleshoot queries, or inspect VictoriaMetrics configuration and usage.

Use cases

  • Query current metric values with PromQL or MetricsQL
  • Investigate alerting and recording rules
  • Find high-cardinality metrics and labels
  • Analyze slow or frequently executed queries
  • Search VictoriaMetrics documentation for query context

Key features

  • Instant and range PromQL/MetricsQL queries
  • Metric, label, series, and metadata discovery
  • Alert, rule, and active-query inspection
  • TSDB cardinality and metric-usage statistics
  • MetricsQL explanation and formatting
  • Embedded VictoriaMetrics 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 1d ago

Recent health check succeeded.

23/26 checks healthy over the last 91d

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 stars243Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Tools exposed17Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Victoriametrics works

What mcp-victoriametrics does

mcp-victoriametrics exposes VictoriaMetrics APIs through the Model Context Protocol. It is intended for read-only investigation of VictoriaMetrics and VictoriaMetrics Cloud deployments, including single-node and cluster configurations. The available tools cover metric querying, metadata and label exploration, alerting inspection, query analysis, and database usage statistics.

The server also includes searchable VictoriaMetrics documentation. Documentation results are returned as relevant resource URIs, giving an MCP client additional context for VictoriaMetrics questions without requiring an online documentation lookup.

How it works

The server connects to a configured VictoriaMetrics instance and translates MCP tool calls into VictoriaMetrics API requests. Instant queries use the /api/v1/query endpoint, while range queries use /api/v1/query_range with a start time, end time, and step. Query results contain matching time series and their values at the requested evaluation times.

Discovery tools use API endpoints for metric names, labels, label values, series, and metric metadata. Alert and recording-rule inspection is provided through the vmalert APIs proxied by VictoriaMetrics. Additional endpoints expose active queries, top-query statistics, metric usage statistics, and TSDB cardinality information.

Query-focused tools can explain MetricsQL, format a MetricsQL query, and help inspect how queries operate. The documentation search is backed by embedded resources, so it can work without online access to the VictoriaMetrics documentation site.

The server can run in standard input/output mode or over HTTP-based modes. Streamable HTTP mode also provides a root endpoint with setup instructions and tool inspection. A public test endpoint is available at https://play-mcp.victoriametrics.com/mcp; it is intended for MCP clients and is configured for the VictoriaMetrics Playground.

Setup and configuration

A VictoriaMetrics or VictoriaMetrics Cloud instance is required. Prebuilt binaries are available from the project's releases, and Docker images are published through the VictoriaMetrics GitHub Container Registry. The project also supports building from source with Go 1.26 or later and provides a Helm installation path.

Configure the connection with environment variables. VM_INSTANCE_ENTRYPOINT points to the root URL of a vmsingle or vmselect instance. VMC_API_KEY can be used instead for VictoriaMetrics Cloud access. VM_INSTANCE_TYPE identifies the VictoriaMetrics instance type when required by the selected connection. Docker deployments can set the server mode and listening address through environment variables; the documented examples use MCP_SERVER_MODE and MCP_LISTEN_ADDR.

Tools and capabilities

  • Run instant PromQL or MetricsQL queries.
  • Run range queries over a specified time interval and step.
  • List metric names, labels, label values, and time series.
  • Inspect metric metadata, including type, help text, and unit.
  • Review firing and pending alerts, alerting rules, and recording rules.
  • Examine active queries, top queries, metric usage, and TSDB cardinality.
  • Explain and prettify MetricsQL queries.
  • Search embedded VictoriaMetrics documentation.
  • List tenants available through the VictoriaMetrics tenant endpoint.

Limitations and notes

The exposed API functionality is read-only. Results and responses depend on the permissions and data available through the configured VictoriaMetrics instance, as well as the MCP client and model handling the tool calls. The public playground endpoint is for MCP-client use rather than direct browser access. Features such as graph rendering depend on whether the connected client supports them.

Reviews

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

Frequently Asked Questions about MCP Victoriametrics

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

Install it by downloading a binary from the project's releases, running the published Docker image, building it from source, or deploying its Helm chart. Source builds require Go 1.26 or later. Configure the connection with the VictoriaMetrics instance environment variables before starting the server.

Connect it to VictoriaMetrics Cloud by configuring the VictoriaMetrics Cloud API key through VMC_API_KEY. The server also supports VictoriaMetrics instances configured with VM_INSTANCE_ENTRYPOINT and VM_INSTANCE_TYPE, including single-node and cluster deployments.

Yes, mcp-victoriametrics can be used with Claude Desktop. The server supports MCP client connections and includes a documented Claude Desktop setup example. It can run through standard input/output or through an HTTP-based mode, including the public Streamable HTTP test endpoint.

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/mcp-victoriametrics?style=directory)](https://allmcps.com/mcp/mcp-victoriametrics)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-victoriametrics"><img src="https://allmcps.com/api/badge/mcp-victoriametrics?style=directory" alt="MCP Victoriametrics on AllMCPs" /></a>