Skip to main content
Glama
VictoriaMetrics-mcp-server

VictoriaMetrics-mcp-server

VictoriaMetrics MCP-Server

Schmiedeabzeichen

MCP-Server für VictoriaMetrics.

Installation über Smithery

So installieren Sie VictoriaMetrics Server für Claude Desktop automatisch über Smithery :

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

Debuggen

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": ""
            }
        }
    }
}

📊 API-Dokumentation für VictoriaMetrics-Tools

Related MCP server: ClickHouse MCP Server

1. vm_data_write

Beschreibung : Schreiben Sie Daten in die VictoriaMetrics-Datenbank.

Eingabeparameter :

Parameter

Typ

Beschreibung

Erforderlich

metric

object

Tags der Metrik

✅

values

number[]

Array von Metrikwerten

✅

timestamps

number[]

Array von Zeitstempeln in Unix-Sekunden

✅


2. vm_prometheus_write

Beschreibung : Importieren Sie Daten im Prometheus-Expositionsformat in VictoriaMetrics.

Eingabeparameter :

Parameter

Typ

Beschreibung

Erforderlich

data

string

Metriken im Prometheus-Expositionsformat

✅


3. vm_query_range

Beschreibung : Abfrage von Zeitreihendaten über einen bestimmten Zeitraum.

Eingabeparameter :

Parameter

Typ

Beschreibung

Erforderlich

query

string

PromQL-Ausdruck

✅

start

number

Startzeitstempel in Unix-Sekunden

⛔️

end

number

Endzeitstempel in Unix-Sekunden

⛔️

step

string

Schrittweite der Abfrageauflösung (z. B. 10s , 1m )

⛔️

Nur query ist erforderlich; die anderen Felder sind optional.


4. vm_query

Beschreibung : Abfrage des aktuellen Werts einer Zeitreihe.

Eingabeparameter :

Parameter

Typ

Beschreibung

Erforderlich

query

string

Zu bewertender PromQL-Ausdruck

✅

time

number

Auswertungszeitstempel in Unix-Sekunden

⛔️


5. vm_labels

Beschreibung : Alle eindeutigen Etikettennamen abrufen.

Eingabeparameter : Keine


6. vm_label_values

Beschreibung : Holen Sie sich alle eindeutigen Werte für ein bestimmtes Label.

Eingabeparameter :

Parameter

Typ

Beschreibung

Erforderlich

label

string

Bezeichnungsname, für den Werte abgerufen werden sollen

✅


Available Tools

6 tools
vm_data_writeC

Write data to the VM database

Inputs: metric (required), values (required), timestamps (required).

vm_labelsB

Get all unique label names

Inputs: no named parameters.

vm_label_valuesC

Get all unique values for a specific label

Inputs: label (required).

vm_prometheus_writeC

mport Prometheus exposition format data into VictoriaMetrics

Inputs: data (required).

vm_queryC

Query current value of a time series

Inputs: query (required), time.

vm_query_rangeC

Query time series over a time range

Inputs: query (required), start, end, step.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: writing data, retrieving metadata about labels, querying current values, and querying over time ranges. The descriptions make it easy to differentiate between tools like vm_query (current value) and vm_query_range (time range).

    Naming Consistency5/5

    All tools follow a consistent 'vm_' prefix with snake_case naming, using descriptive verb_noun patterns (e.g., vm_data_write, vm_query_range). There are no deviations in style or convention across the set.

    Tool Count5/5

    With 6 tools, this is well-scoped for a VictoriaMetrics server, covering core operations like data ingestion, label exploration, and querying without being overwhelming. Each tool earns its place in the workflow.

    Completeness4/5

    The toolset covers essential CRUD-like operations for time series data: writing (vm_data_write, vm_prometheus_write), reading (vm_query, vm_query_range), and metadata exploration (vm_labels, vm_label_values). A minor gap might be the lack of explicit deletion or update tools, but agents can work around this given the domain's typical usage patterns.

    Related MCP Connectors

    Related MCP Servers