MCP.so
登录

VictoriaMetrics MCP Server

@yincongcyincong

关于 VictoriaMetrics MCP Server

MCP Server for the VictoriaMetrics.

基本信息

分类

其他

运行时

node

传输方式

stdio

发布者

yincongcyincong

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "VictoriaMetrics-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli",
        "install",
        "@yincongcyincong/victoriametrics-mcp-server",
        "--client",
        "claude"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is VictoriaMetrics MCP Server?

An MCP server that provides direct read and write access to VictoriaMetrics databases, enabling large language model agents to query, write, and manage time-series data via PromQL and native APIs. It is designed for developers and data analysts integrating AI assistants with monitoring or observability stacks.

How to use VictoriaMetrics MCP Server?

Install via Smithery (npx -y @smithery/cli install ... --client claude) or configure directly in Claude Desktop by adding the NPX command with the required VM_URL, VM_SELECT_URL, and VM_INSERT_URL environment variables. Invoke tools such as vm_data_write, vm_prometheus_write, vm_query_range, vm_query, vm_labels, and vm_label_values.

Key features of VictoriaMetrics MCP Server

  • Write time-series data to VictoriaMetrics via the vm_data_write tool.
  • Import Prometheus exposition format data with vm_prometheus_write.
  • Query metric values over a time range using PromQL (vm_query_range).
  • Get current metric values with vm_query.
  • Retrieve unique label names and label values (vm_labels, vm_label_values).
  • Optional resolution step and evaluation timestamps for queries.

Use cases of VictoriaMetrics MCP Server

  • AI-powered dashboard that writes custom metrics to VictoriaMetrics in real time.
  • Automated incident response that queries recent metric spikes via PromQL.
  • Data exploration assistant that retrieves and analyzes time-series labels.
  • Observability chatbot that imports Prometheus export data for historical analysis.

FAQ from VictoriaMetrics MCP Server

What data can I write and query with this server?

You can write metrics with tags, values, and timestamps, or import Prometheus exposition format strings. Query with PromQL expressions over time ranges or at specific timestamps.

What environment variables are required?

The server needs VM_URL, and optionally VM_SELECT_URL and VM_INSERT_URL. All must be set when running the NPX command.

How do I install the server?

Use the Smithery CLI for Claude Desktop or add the NPX configuration block to your MCP configuration file.

Does the server support authentication or custom transports?

The README does not mention authentication or custom transports; only a basic HTTP-based setup with environment variables is documented.

Can I debug the server locally?

Yes, using the MCP inspector: npx @modelcontextprotocol/inspector -e VM_URL=http://127.0.0.1:8428 node src/index.js.

评论

其他 分类下的更多 MCP 服务器