vm_data_write
Write data to the VM database
Query VictoriaMetrics at an instant or across a range, discover label names and values, and write metrics or Prometheus exposition data back.
LABSCO SUMMARY
Three addresses instead of one means a cluster with distinct select and insert endpoints works without a proxy standing in front of it. Label discovery is what makes a query writable in the first place: the label list and then its values turn a guess about a metric's dimensions into something you can filter on. Both ingestion paths are present — structured values with their timestamps, and raw Prometheus exposition text taken unchanged.
A VictoriaMetrics client covering ranged and instant reads, label discovery, and two write paths.
A reachable VictoriaMetrics deployment with VM_URL, VM_SELECT_URL and VM_INSERT_URL all configured — reads and writes are addressed separately.
One command — npx -y @yincongcyincong/victoriametrics-mcp-server
USE CASES
Start, end and step decide the resolution, which is what separates a usable series from a wall of points.
A query cannot be filtered until its dimensions are known, and guessing label names is how empty results happen.
Exposition text goes in unchanged, which avoids a conversion step; structured writes cover everything that does not.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
vm_data_writeWrite data to the VM database
vm_label_valuesGet all unique values for a specific label
vm_labelsGet all unique label names
vm_prometheus_writemport Prometheus exposition format data into VictoriaMetrics
vm_queryQuery current value of a time series
vm_query_rangeQuery time series over a time range
BEFORE YOU INSTALL
6 tools when we connected.
CONTEXT COST
Rated by the size of the 6 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"victoriametrics": {
"command": "npx",
"args": [
"-y",
"@yincongcyincong/victoriametrics-mcp-server"
],
"env": {
"VM_URL": "",
"VM_SELECT_URL": "",
"VM_INSERT_URL": ""
}
}
}
}VM_URL, VM_SELECT_URL and VM_INSERT_URL are the addresses of your VictoriaMetrics deployment; the project's own debug command sets VM_URL=http://127.0.0.1:8428
npx -y @yincongcyincong/victoriametrics-mcp-server