VictoriaMetrics MCP Server
MCP Server for the VictoriaMetrics.
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:
| Parameter | Type | Description | Required |
|---|---|---|---|
metric | object | Tags of the metric | β |
values | number[] | Array of metric values | β |
timestamps | number[] | Array of timestamps in Unix seconds | β |
2. vm_prometheus_write
Description: Import Prometheus exposition format data into VictoriaMetrics.
Input Parameters:
| Parameter | Type | Description | Required |
|---|---|---|---|
data | string | Metrics in Prometheus exposition format | β |
3. vm_query_range
Description: Query time series data over a specific time range.
Input Parameters:
| Parameter | Type | Description | Required |
|---|---|---|---|
query | string | PromQL expression | β |
start | number | Start timestamp in Unix seconds | βοΈ |
end | number | End timestamp in Unix seconds | βοΈ |
step | string | Query resolution step width (e.g., 10s, 1m) | βοΈ |
Only
queryis required; the other fields are optional.
4. vm_query
Description: Query the current value of a time series.
Input Parameters:
| Parameter | Type | Description | Required |
|---|---|---|---|
query | string | PromQL expression to evaluate | β |
time | number | Evaluation 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:
| Parameter | Type | Description | Required |
|---|---|---|---|
label | string | Label name to get values for | β |
VictoriaMetrics Server
Project Details
- yincongcyincong/VictoriaMetrics-mcp-server
- Last Updated: 4/29/2025
Recomended MCP Servers
Meraki Dashboard MCP server
A MCP server implementation for hyperbrowser
Playwrite wrapper for MCP
A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction.
A simple MCP ODBC server using FastAPI, ODBC and SQLAlchemy.
A Model Context Protocol server for interacting with Ledger CLI, a powerful double-entry accounting system. This server enables...
use Bitgetβs API to get cryptocurrency info
An MCP server that powers AI agents with indexed blockchain data from The Graph.
MCP to connect your LLM with Spotify.
A food recipe directory π£





