mcp-victoriametrics
MCP server by VictoriaMetrics-Community Community
Gives AI assistants access to a VictoriaMetrics instance through its read-only APIs, plus embedded VictoriaMetrics documentation. Built for engineers who monitor, observe and debug VictoriaMetrics, and for tools that automate those tasks.
Install mcp-victoriametrics
Built from the published package, never by AI.
claude mcp add mcp-victoriametrics -e VM_INSTANCE_ENTRYPOINT=YOUR_VM_INSTANCE_ENTRYPOINT -e VM_INSTANCE_TYPE=YOUR_VM_INSTANCE_TYPE -e VM_INSTANCE_BEARER_TOKEN=YOUR_VM_INSTANCE_BEARER_TOKEN -- docker run -i --rm -e VM_INSTANCE_ENTRYPOINT -e VM_INSTANCE_TYPE -e VM_INSTANCE_BEARER_TOKEN ghcr.io/victoriametrics-community/mcp-victoriametrics:1.18.0Run in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-victoriametrics": {
"env": {
"VM_INSTANCE_TYPE": "YOUR_VM_INSTANCE_TYPE",
"VM_INSTANCE_ENTRYPOINT": "YOUR_VM_INSTANCE_ENTRYPOINT",
"VM_INSTANCE_BEARER_TOKEN": "YOUR_VM_INSTANCE_BEARER_TOKEN"
},
"args": [
"run",
"-i",
"--rm",
"-e",
"VM_INSTANCE_ENTRYPOINT",
"-e",
"VM_INSTANCE_TYPE",
"-e",
"VM_INSTANCE_BEARER_TOKEN",
"ghcr.io/victoriametrics-community/mcp-victoriametrics:1.18.0"
],
"command": "docker"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-victoriametrics": {
"env": {
"VM_INSTANCE_TYPE": "YOUR_VM_INSTANCE_TYPE",
"VM_INSTANCE_ENTRYPOINT": "YOUR_VM_INSTANCE_ENTRYPOINT",
"VM_INSTANCE_BEARER_TOKEN": "YOUR_VM_INSTANCE_BEARER_TOKEN"
},
"args": [
"run",
"-i",
"--rm",
"-e",
"VM_INSTANCE_ENTRYPOINT",
"-e",
"VM_INSTANCE_TYPE",
"-e",
"VM_INSTANCE_BEARER_TOKEN",
"ghcr.io/victoriametrics-community/mcp-victoriametrics:1.18.0"
],
"command": "docker"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-victoriametrics": {
"env": {
"VM_INSTANCE_TYPE": "YOUR_VM_INSTANCE_TYPE",
"VM_INSTANCE_ENTRYPOINT": "YOUR_VM_INSTANCE_ENTRYPOINT",
"VM_INSTANCE_BEARER_TOKEN": "YOUR_VM_INSTANCE_BEARER_TOKEN"
},
"args": [
"run",
"-i",
"--rm",
"-e",
"VM_INSTANCE_ENTRYPOINT",
"-e",
"VM_INSTANCE_TYPE",
"-e",
"VM_INSTANCE_BEARER_TOKEN",
"ghcr.io/victoriametrics-community/mcp-victoriametrics:1.18.0"
],
"command": "docker"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-victoriametrics --env VM_INSTANCE_ENTRYPOINT=YOUR_VM_INSTANCE_ENTRYPOINT --env VM_INSTANCE_TYPE=YOUR_VM_INSTANCE_TYPE --env VM_INSTANCE_BEARER_TOKEN=YOUR_VM_INSTANCE_BEARER_TOKEN -- docker run -i --rm -e VM_INSTANCE_ENTRYPOINT -e VM_INSTANCE_TYPE -e VM_INSTANCE_BEARER_TOKEN ghcr.io/victoriametrics-community/mcp-victoriametrics:1.18.0{
"mcpServers": {
"mcp-victoriametrics": {
"env": {
"VM_INSTANCE_TYPE": "YOUR_VM_INSTANCE_TYPE",
"VM_INSTANCE_ENTRYPOINT": "YOUR_VM_INSTANCE_ENTRYPOINT",
"VM_INSTANCE_BEARER_TOKEN": "YOUR_VM_INSTANCE_BEARER_TOKEN"
},
"args": [
"run",
"-i",
"--rm",
"-e",
"VM_INSTANCE_ENTRYPOINT",
"-e",
"VM_INSTANCE_TYPE",
"-e",
"VM_INSTANCE_BEARER_TOKEN",
"ghcr.io/victoriametrics-community/mcp-victoriametrics:1.18.0"
],
"command": "docker"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install mcp-victoriametrics in Antigravity CLI
gemini mcp add mcp-victoriametrics docker run -i --rm -e VM_INSTANCE_ENTRYPOINT -e VM_INSTANCE_TYPE -e VM_INSTANCE_BEARER_TOKEN ghcr.io/victoriametrics-community/mcp-victoriametrics:1.18.0Gemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-victoriametrics block.
About
The VictoriaMetrics MCP Server is an implementation of the Model Context Protocol for VictoriaMetrics. It gives an AI assistant access to a VictoriaMetrics instance through its APIs and to VictoriaMetrics documentation. The server includes embedded documentation that can be searched without online access. It allows use of almost all read-only APIs available in VMUI, the built-in VictoriaMetrics web UI.
The server runs in stdio mode by default, or in sse or http (Streamable HTTP) mode. It is configured with environment variables, including the instance URL, the instance type (single or cluster) and an optional VictoriaMetrics Cloud API key. It is aimed at engineers working on monitoring, observability and debugging of VictoriaMetrics instances, and at tools that automate these tasks.
Written from the project's README and checked against it.
Tools it gives your assistant
Query metricsQueries metrics and explores data, with graphs if the client supports them.List and export dataLists and exports metrics, labels, label values and entire series.Alerting and recording rulesAnalyzes and tests alerting and recording rules and alerts.Instance parametersShows parameters of the VictoriaMetrics instance.Cardinality and usageExplores data cardinality and metrics usage statistics.Query analysisAnalyzes, traces, prettifies and explains queries.Relabeling and retention debuggingDebugs relabeling rules, downsampling and retention policy configurations.VictoriaMetrics CloudIntegrates with VictoriaMetrics Cloud.Embedded docs searchSearches embedded VictoriaMetrics documentation without online access.
What you need
- A VictoriaMetrics or VictoriaMetrics Cloud instance (single-node or cluster)
- Go 1.26 or higher, if building from source
- Docker, if running the Docker image
| Setting | Needed | What it is |
|---|---|---|
VM_Environment variable | Required | URL to VictoriaMetrics instance (it should be root URL of vmsingle or vmselect), for example http://localhost:8428 or https://play.victoriametrics.com |
VM_Environment variable | Required | Type of VictoriaMetrics instance (single / cluster) |
VM_Environment variable, secret | Required | Authentication token for VictoriaMetrics API |
VMC_Environment variable, secret | Optional | Optional: API key from VictoriaMetrics Cloud Console (if you have deployment in VictoriaMetrics Cloud) |
MCP_Environment variable | Optional | Comma-separated list of tools to disable |
MCP_Environment variable | Optional | Disable all resources (documentation tool will continue to work) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Explain this PromQL query and show how it can be made faster.
- Show the cardinality of my metrics and the labels with the most values.
- Test my alerting rules and tell me which ones fail to load.
Good to know
- Supports almost all read-only VictoriaMetrics APIs.
- Some tools are disabled by default: export, flags, metric_relabel_debug, downsampling_filters_debug, retention_filters_debug and test_rules.
- Response quality depends on the client and the model used.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mcp-victoriametrics
All alternatives →Azure MCP Server bundles all Azure MCP tools into one local MCP server. It connects AI agents to Azure services and can be used alone or with the GitHub Copilot for Azure extension in VS Code.
Manages monitors, status pages, incidents and maintenances in an openstatus workspace from Claude, ChatGPT, or Cursor. It suits teams that run uptime monitoring and status pages and want their AI assistant to update them.
SmartBear MCP gives AI assistants access to SmartBear's testing and monitoring tools, including BugSnag, Reflect, Swagger, PactFlow and QTM4J. It is aimed at teams that already use these products. Products are reached through remote servers or a local npm package.
Lets AI assistants manage Fettle uptime monitoring, including monitors, incidents, heartbeats, maintenance windows and status page incidents. Built for developers and operations teams who use Fettle and want to work from Claude, Cursor or Codex.
Superlog is an open-source agentic telemetry system that ingests traces, logs and metrics and groups noisy signals into incidents. It is aimed at teams debugging production systems with OpenTelemetry data.
Microsoft Learn MCP gives AI assistants direct access to official Microsoft documentation and code samples through a remote MCP endpoint. It is for developers who use MCP-compatible clients and want answers based on current Microsoft docs.
Compare with Azure MCP Server, openstatus or SmartBear MCP
mcp-victoriametrics: common questions
Can I try the VictoriaMetrics MCP Server without installing it?
Yes. The source lists a public instance at https://play-mcp.victoriametrics.com/mcp, configured for the Public VictoriaMetrics Playground. It is meant to be used from MCP clients, not opened in a browser.
Does the VictoriaMetrics MCP Server change data?
The source says it allows use of almost all read-only APIs of VictoriaMetrics. It does not describe write operations.
Which server modes does the VictoriaMetrics MCP Server support?
The source lists stdio (the default), sse and http, where http is Streamable HTTP mode. The mode is set with the MCP_SERVER_MODE variable.
How do I install mcp-victoriametrics?
In Claude Code run claude mcp add mcp-victoriametrics -e VM_INSTANCE_ENTRYPOINT=YOUR_VM_INSTANCE_ENTRYPOINT -e VM_INSTANCE_TYPE=YOUR_VM_INSTANCE_TYPE -e VM_INSTANCE_BEARER_TOKEN=YOUR_VM_INSTANCE_BEARER_TOKEN -- docker run -i --rm -e VM_INSTANCE_ENTRYPOINT -e VM_INSTANCE_TYPE -e VM_INSTANCE_BEARER_TOKEN ghcr.io/victoriametrics-community/mcp-victoriametrics:1.18.0. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is mcp-victoriametrics the official server?
mcp-victoriametrics is a community project by VictoriaMetrics-Community, not verified by a company domain.
Is mcp-victoriametrics free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mcp-victoriametrics safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mcp-victoriametrics?
Similar MCP servers: Azure MCP Server, openstatus, SmartBear MCP, Fettle.
Does mcp-victoriametrics work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
