Your connection was interrupted
what is VictoriaMetrics MCP Server?
VictoriaMetrics MCP Server is a server designed for managing and monitoring metrics in the VictoriaMetrics ecosystem.
how to use VictoriaMetrics MCP Server?
To use the MCP Server, you can run it using NPX with the appropriate command and environment variables set for your VictoriaMetrics instance.
key features of VictoriaMetrics MCP Server?
- Integration with VictoriaMetrics for efficient metric management
- Command-line interface for easy deployment and configuration
- Support for various environment variables to customize the server behavior
use cases of VictoriaMetrics MCP Server?
- Monitoring application performance metrics in real-time.
- Managing large-scale metrics data efficiently.
- Integrating with other monitoring tools for comprehensive observability.
FAQ from VictoriaMetrics MCP Server?
- What is the primary function of the MCP Server?
The MCP Server is designed to manage and monitor metrics within the VictoriaMetrics ecosystem.
- How do I install the MCP Server?
You can install it using NPX with the command provided in the documentation.
- Can I customize the server settings?
Yes! You can customize the server settings using environment variables.
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": {
"amap-maps": {
"command": "npx",
"args": [
"-y",
"@yincongcyincong/victoriametrics-mcp-server"
],
"env": {
"VM_URL": "",
"VM_SELECT_URL": "",
"VM_INSERT_URL": ""
}
}
}
}
📊 VictoriaMetrics Tools API Documentation
vm_data_write
1. 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 | ✅ |
vm_prometheus_write
2. Description: Import Prometheus exposition format data into VictoriaMetrics.
Input Parameters:
Parameter | Type | Description | Required |
---|---|---|---|
data | string | Metrics in Prometheus exposition format | ✅ |
vm_query_range
3. 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
query
is required; the other fields are optional.
vm_query
4. 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 | ⛔️ |
vm_labels
5. Description: Get all unique label names.
Input Parameters: None
vm_label_values
6. Description: Get all unique values for a specific label.
Input Parameters:
Parameter | Type | Description | Required |
---|---|---|---|
label | string | Label name to get values for | ✅ |