✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

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:

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βœ…

Featured Templates

View More
AI Assistants
Talk with Claude 3
158 1521
AI Characters
Sarcastic AI Chat Bot
128 1711
AI Assistants
AI Chatbot Starter Kit v0.1
138 911
Customer service
Service ERP
126 1186
Customer service
Multi-language AI Translator
136 920

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.