mcp-victorialogs
v1.8.0MCP Server for VictoriaLogs.
Values you need
| Variable | What it is | |
|---|---|---|
VL_INSTANCE_ENTRYPOINT | required | URL to VictoriaMetrics instance (it should be root URL of vmlingle or vlselect), for example http://localhost:9428 or https://play-vmlogs.victoriametrics.com |
VL_INSTANCE_BEARER_TOKEN | required secret | Authentication token for VictoriaMetrics API |
MCP_DISABLED_TOOLS | optional | Comma-separated list of tools to disable |
Docker discovery passed
Requires Docker
Run in a terminal
claude mcp add mcp-victorialogs -e 'VL_INSTANCE_BEARER_TOKEN=<VL_INSTANCE_BEARER_TOKEN>' -e 'VL_INSTANCE_ENTRYPOINT=<VL_INSTANCE_ENTRYPOINT>' -- docker run -i --rm -e VL_INSTANCE_BEARER_TOKEN -e VL_INSTANCE_ENTRYPOINT ghcr.io/victoriametrics-community/mcp-victorialogs:1.8.0Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-victorialogs": {
"args": [
"run",
"-i",
"--rm",
"-e",
"VL_INSTANCE_BEARER_TOKEN",
"-e",
"VL_INSTANCE_ENTRYPOINT",
"ghcr.io/victoriametrics-community/mcp-victorialogs:1.8.0"
],
"command": "docker",
"env": {
"VL_INSTANCE_BEARER_TOKEN": "<VL_INSTANCE_BEARER_TOKEN>",
"VL_INSTANCE_ENTRYPOINT": "<VL_INSTANCE_ENTRYPOINT>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-victorialogs": {
"args": [
"run",
"-i",
"--rm",
"-e",
"VL_INSTANCE_BEARER_TOKEN",
"-e",
"VL_INSTANCE_ENTRYPOINT",
"ghcr.io/victoriametrics-community/mcp-victorialogs:1.8.0"
],
"command": "docker",
"env": {
"VL_INSTANCE_BEARER_TOKEN": "<VL_INSTANCE_BEARER_TOKEN>",
"VL_INSTANCE_ENTRYPOINT": "<VL_INSTANCE_ENTRYPOINT>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "VL_INSTANCE_BEARER_TOKEN",
"id": "vl-instance-bearer-token",
"password": true,
"type": "promptString"
},
{
"description": "VL_INSTANCE_ENTRYPOINT",
"id": "vl-instance-entrypoint",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp-victorialogs": {
"args": [
"run",
"-i",
"--rm",
"-e",
"VL_INSTANCE_BEARER_TOKEN",
"-e",
"VL_INSTANCE_ENTRYPOINT",
"ghcr.io/victoriametrics-community/mcp-victorialogs:1.8.0"
],
"command": "docker",
"env": {
"VL_INSTANCE_BEARER_TOKEN": "${input:vl-instance-bearer-token}",
"VL_INSTANCE_ENTRYPOINT": "${input:vl-instance-entrypoint}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-victorialogs]
command = "docker"
args = ["run", "-i", "--rm", "-e", "VL_INSTANCE_BEARER_TOKEN", "-e", "VL_INSTANCE_ENTRYPOINT", "ghcr.io/victoriametrics-community/mcp-victorialogs:1.8.0"]
env = { "VL_INSTANCE_BEARER_TOKEN" = "<VL_INSTANCE_BEARER_TOKEN>", "VL_INSTANCE_ENTRYPOINT" = "<VL_INSTANCE_ENTRYPOINT>" }For AI agents
- Ask the user for: VL_INSTANCE_ENTRYPOINT, VL_INSTANCE_BEARER_TOKEN. 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: documentation, facets, field_names, field_values, flags, hits, query, stats_query, ….
- If it fails, check that the required runtime is installed (Docker) and that the values above are set.
Machine-readable: install.md · manifest.json