mcpField
V
VictoriaMetrics MCP Server

VictoriaMetrics MCP Server

Local
github.com/yincongcyincongData & Analytics8Updated 3w ago

About VictoriaMetrics MCP Server

VictoriaMetrics MCP Server exposes metric ingestion and query operations to MCP clients for working with time-series data. It supports Prometheus-format imports, PromQL queries, and label lookup.

Key features

  1. 01Write metric data
  2. 02Import Prometheus exposition data
  3. 03Query time series over a time range
  4. 04Query current time-series values
  5. 05Retrieve label names and values

Use cases

  1. 01Send metrics to VictoriaMetrics
  2. 02Import metrics in Prometheus exposition format
  3. 03Analyze time-ranged data with PromQL
  4. 04Inspect metric labels and their values

MCP support

This MCP server exposes VictoriaMetrics tools for writing data, querying series, and retrieving labels to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"VictoriaMetrics": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
Run commandnpx -y @smithery/cli

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@smithery/cli

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MseeP.ai Security Assessment Badge

VictoriaMetrics MCP Server

Trust Score smithery badge

VictoriaMetrics-mcp-server MCP server

MCP Server for the VictoriaMetrics.

Installing via Smithery

To install VictoriaMetrics Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @yincongcyincong/victoriametrics-mcp-server --client claude

Debug

npx @modelcontextprotocol/inspector -e VM_URL=http://127.0.0.1:8428  node src/index.js

NPX
{
    "mcpServers": {
        "victoriametrics": {
            "command": "npx",
            "args": [
                "-y",
                "@yincongcyincong/victoriametrics-mcp-server"
            ],
            "env": {
                "VM_URL": "",
                "VM_SELECT_URL": "",
                "VM_INSERT_URL": ""
            }
        }
    }
}
📊 VictoriaMetrics Tools API Documentation

1. vm_data_write

Description: Write data to the VictoriaMetrics database.

Input Parameters:

ParameterTypeDescriptionRequired
metricobjectTags of the metric✅
valuesnumber[]Array of metric values✅
timestampsnumber[]Array of timestamps in Unix seconds✅

2. vm_prometheus_write

Description: Import Prometheus exposition format data into VictoriaMetrics.

Input Parameters:

ParameterTypeDescriptionRequired
datastringMetrics in Prometheus exposition format✅

3. vm_query_range

Description: Query time series data over a specific time range.

Input Parameters:

ParameterTypeDescriptionRequired
querystringPromQL expression✅
startnumberStart timestamp in Unix seconds⛔️
endnumberEnd timestamp in Unix seconds⛔️
stepstringQuery resolution step width (e.g., 10s, 1m)⛔️

Only query is required; the other fields are optional.


4. vm_query

Description: Query the current value of a time series.

Input Parameters:

ParameterTypeDescriptionRequired
querystringPromQL expression to evaluate✅
timenumberEvaluation timestamp in Unix seconds⛔️

5. vm_labels

Description: Get all unique label names.

Input Parameters: None


6. vm_label_values

Description: Get all unique values for a specific label.

Input Parameters:

ParameterTypeDescriptionRequired
labelstringLabel name to get values for✅

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.