mcp-vmanomaly
v0.7.0MCP Server for vmanomaly - VictoriaMetrics anomaly detection
Values you need
| Variable | What it is | |
|---|---|---|
VMANOMALY_ENDPOINT | required | vmanomaly server endpoint URL (e.g., http://localhost:8490) |
VMANOMALY_BEARER_TOKEN | optional secret | Bearer token for authenticating with vmanomaly API |
VMANOMALY_BEARER_TOKEN_FILE | optional | Path to a file containing a bearer token; mutually exclusive with VMANOMALY_BEARER_TOKEN |
VMANOMALY_HEADERS | optional | Custom HTTP headers for vmanomaly requests (comma-separated key=value pairs, e.g., X-Custom-Header=value1,X-Another=value2) |
MCP_SERVER_MODE | optional | MCP server mode: stdio (default), sse, or http |
MCP_LISTEN_ADDR | optional | Listen address for SSE/HTTP modes (default: localhost:8080) |
MCP_LOG_LEVEL | optional | Log level: debug, info (default), warn, or error |
MCP_LOG_FILE | optional | Log file path (empty = stderr) |
MCP_ENABLED_TOOLS | optional | Comma-separated positive allowlist of tools; empty enables all registered tools |
MCP_DISABLED_TOOLS | optional | Comma-separated denylist of tools; takes precedence over MCP_ENABLED_TOOLS |
MCP_HEARTBEAT_INTERVAL | optional | Heartbeat interval for HTTP mode (default: 30s) |
MCP_DISABLE_RESOURCES | optional | Disable embedded documentation resources; documentation search remains available |
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/mcp-vmanomaly:0.7.0Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-vmanomaly": {
"args": [
"run",
"-i",
"--rm",
"-e",
"VMANOMALY_ENDPOINT",
"ghcr.io/victoriametrics/mcp-vmanomaly:0.7.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/mcp-vmanomaly:0.7.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/mcp-vmanomaly:0.7.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/mcp-vmanomaly:0.7.0"]
env = { "VMANOMALY_ENDPOINT" = "<VMANOMALY_ENDPOINT>" }For AI agents
- Ask the user for: VMANOMALY_ENDPOINT. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: vmanomaly_cancel_autotune_task, vmanomaly_check_compatibility, vmanomaly_create_autotune_task, vmanomaly_discover_metrics, vmanomaly_estimate_deployment_resources, vmanomaly_estimate_inference_capacity, vmanomaly_generate_alert_rule, vmanomaly_generate_preset_artifacts, ….
- If it fails, check that the required runtime is installed (Docker) and that the values above are set.
Machine-readable: install.md · manifest.json