Skip to content
VS Code

mcp victoriametrics for VS Code

io.github.victoriametrics/mcp-victoriametrics

MCP Server for VictoriaMetrics. Provides integration with VictoriaMetrics API and documentation

client:VS Code transport:stdio runtime:oci

Install mcp victoriametrics in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "vm-instance-entrypoint",
      "description": "VM_INSTANCE_ENTRYPOINT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "vm-instance-type",
      "description": "VM_INSTANCE_TYPE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "vm-instance-bearer-token",
      "description": "VM_INSTANCE_BEARER_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "vmc-api-key",
      "description": "VMC_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-disabled-tools",
      "description": "MCP_DISABLED_TOOLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-disable-resources",
      "description": "MCP_DISABLE_RESOURCES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-passthrough-headers",
      "description": "MCP_PASSTHROUGH_HEADERS",
      "password": true
    }
  ],
  "servers": {
    "mcp-victoriametrics": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/victoriametrics/mcp-victoriametrics:1.120.1"
      ],
      "env": {
        "VM_INSTANCE_ENTRYPOINT": "${input:vm-instance-entrypoint}",
        "VM_INSTANCE_TYPE": "${input:vm-instance-type}",
        "VM_INSTANCE_BEARER_TOKEN": "${input:vm-instance-bearer-token}",
        "VMC_API_KEY": "${input:vmc-api-key}",
        "MCP_DISABLED_TOOLS": "${input:mcp-disabled-tools}",
        "MCP_DISABLE_RESOURCES": "${input:mcp-disable-resources}",
        "MCP_PASSTHROUGH_HEADERS": "${input:mcp-passthrough-headers}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp victoriametrics in other clients