mcp-vmanomaly

v0.1.0
io.github.VictoriaMetrics-Community/mcp-vmanomaly Checked 9 hours ago Published 11 months ago

MCP Server for vmanomaly - VictoriaMetrics anomaly detection

Values you need

VariableWhat it is
VMANOMALY_ENDPOINTrequired vmanomaly server endpoint URL (e.g., http://localhost:8490)
VMANOMALY_BEARER_TOKENoptional secret Bearer token for authenticating with vmanomaly API
VMANOMALY_HEADERSoptional Custom HTTP headers for vmanomaly requests (comma-separated key=value pairs, e.g., X-Custom-Header=value1,X-Another=value2)
MCP_SERVER_MODEoptional MCP server mode: stdio (default), sse, or http
MCP_LISTEN_ADDRoptional Listen address for SSE/HTTP modes (default: localhost:8080)
MCP_LOG_LEVELoptional Log level: debug, info (default), warn, or error
MCP_LOG_FILEoptional Log file path (empty = stderr)
MCP_DISABLED_TOOLSoptional Comma-separated list of tools to disable
MCP_HEARTBEAT_INTERVALoptional Heartbeat interval for HTTP mode (default: 30s)
MCP_DISABLE_RESOURCESoptional Disable embedded documentation resources

Docker discovery passed

Requires Docker

Run in a terminal
claude mcp add mcp-vmanomaly -e 'VMANOMALY_ENDPOINT=<VMANOMALY_ENDPOINT>' -- docker run -i --rm -e VMANOMALY_ENDPOINT ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-vmanomaly": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "VMANOMALY_ENDPOINT",
        "ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0"
      ],
      "command": "docker",
      "env": {
        "VMANOMALY_ENDPOINT": "<VMANOMALY_ENDPOINT>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-vmanomaly": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "VMANOMALY_ENDPOINT",
        "ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0"
      ],
      "command": "docker",
      "env": {
        "VMANOMALY_ENDPOINT": "<VMANOMALY_ENDPOINT>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "VMANOMALY_ENDPOINT",
      "id": "vmanomaly-endpoint",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-vmanomaly": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "VMANOMALY_ENDPOINT",
        "ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0"
      ],
      "command": "docker",
      "env": {
        "VMANOMALY_ENDPOINT": "${input:vmanomaly-endpoint}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-vmanomaly]
command = "docker"
args = ["run", "-i", "--rm", "-e", "VMANOMALY_ENDPOINT", "ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0"]
env = { "VMANOMALY_ENDPOINT" = "<VMANOMALY_ENDPOINT>" }

For AI agents

  1. Ask the user for: VMANOMALY_ENDPOINT. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: vmanomaly_check_compatibility, vmanomaly_generate_alert_rule, vmanomaly_get_buildinfo, vmanomaly_get_metrics, vmanomaly_get_model_schema, vmanomaly_health_check, vmanomaly_list_models, vmanomaly_search_docs, ….
  5. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json