Skip to content

Summary

Official VictoriaMetrics MCP server: lets AI assistants run MetricsQL queries, explore metrics and labels, inspect alerting rules and cardinality, and search the embedded VictoriaMetrics docs.

Features

  • Instant and range MetricsQL queries, with graphs in clients that render them
  • List metrics, labels, label values, series and metric metadata
  • Read alerting and recording rules and current alerts
  • TSDB cardinality stats, metric usage statistics, top and active queries
  • Explain, prettify and trace queries; relabeling, downsampling and retention debuggers
  • Embedded VictoriaMetrics documentation searchable offline
  • VictoriaMetrics Cloud tools: deployments, tiers, regions, access tokens, rule files
  • stdio, SSE or Streamable HTTP; release binaries, Docker image and Helm chart

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it, filling in the environment variables with your own values.
  3. Restart the agent — the "VictoriaMetrics MCP Server" tools will be available.
{
  "mcpServers": {
    "victoriametrics-mcp": {
      "command": "/path/to/mcp-victoriametrics",
      "env": {
        "VM_INSTANCE_ENTRYPOINT": "<your-victoriametrics-url>",
        "VM_INSTANCE_TYPE": "<single-or-cluster>",
        "VM_INSTANCE_BEARER_TOKEN": "<your-vm-bearer-token>"
      }
    }
  }
}

Hosted endpoint

This server is also hosted. A client that supports remote MCP servers can connect to it directly: Public demo instance connected to the VictoriaMetrics playground; no install, no key.

{
  "mcpServers": {
    "victoriametrics-mcp": {
      "type": "http",
      "url": "https://play-mcp.victoriametrics.com/mcp"
    }
  }
}

Description

The VictoriaMetrics MCP server, maintained by the VictoriaMetrics team, connects MCP clients to a single-node or cluster VictoriaMetrics instance, or to VictoriaMetrics Cloud. It exposes nearly all of the read-only APIs behind VMUI, so an assistant can run instant and range queries, list metric names, labels, label values and series, read alerting and recording rules and current alerts, and look at TSDB cardinality stats and top or active queries.

It is built for debugging an observability stack, not only for charting. Tools explain, prettify and trace queries; debuggers for metric relabeling, downsampling and retention filters can be switched on; and prompts find unused metrics or rarely queried high-cardinality ones. A copy of the VictoriaMetrics documentation is embedded in the binary and searchable offline. With a VictoriaMetrics Cloud API key it also lists deployments, tiers, regions, access tokens and rule files.

The server is a Go binary (release downloads, go build, a GHCR Docker image or a Helm chart) that runs over stdio by default, or as an SSE or Streamable HTTP server with an optional bearer token. Heavier tools such as export, flags and rule unit tests are off by default and can be toggled with MCP_DISABLED_TOOLS. A public instance wired to the VictoriaMetrics playground (https://play-mcp.victoriametrics.com/mcp) lets you try it without installing anything. Apache-2.0.

MCP: Grafana

by Grafana Labs

Featured

Official Grafana MCP server: search and edit dashboards, query Prometheus, Loki and Pyroscope, and work with alerts, incidents and on-call from an agent.

MCP: SquaredUp MCP

by SquaredUp

New

SquaredUp's official hosted MCP server: query and manage dashboards, the knowledge graph, data streams, KPIs, workspaces and integrations from your agent, with browser OAuth and built-in skills.

Browse all MCP servers →