Best for
- Engineers and operators who want to explore VictoriaLogs read-only from an MCP client.
- Users who want to search embedded VictoriaLogs documentation offline.
- Users working with VictoriaLogs deployments in VictoriaMetrics Cloud.
Provided by the VictoriaMetrics project for MCP integration with VictoriaLogs. It offers log querying, exploration, and documentation search; some tools and capabilities depend on VictoriaMetrics Cloud configuration.
Strongest · Documentation 14/20 Weakest · Reliability 8/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Go 1.26+ · Prebuilt binary · Docker
VL_INSTANCE_ENTRYPOINT
Root URL of the VictoriaLogs instance; get it from your instance or cluster deployment configuration. Cannot be used with VMC_API_KEY.
VL_INSTANCE_BEARER_TOKEN
Optional authentication token for the VictoriaLogs API; obtain it from your instance administrator.
VMC_API_KEY
API key from the VictoriaMetrics Cloud Console for accessing Cloud VictoriaLogs deployments. Cannot be used with VL_INSTANCE_ENTRYPOINT.
MCP_AUTH_TOKEN
Bearer token for authenticating incoming MCP requests in SSE or HTTP mode; set by the server operator.
VMC_API_BASE_URL
Base URL for the VictoriaMetrics Cloud API; defaults to https://api.victoriametrics.cloud.
MCP_DISABLED_TOOLS
Comma-separated names of tools to disable.
VL_INSTANCE_HEADERS
Custom HTTP headers sent to VictoriaLogs, specified as comma-separated key=value pairs.
VL_INSTANCE_CA_CERT
PEM-encoded CA certificate used to verify TLS certificates for VictoriaLogs and the Cloud API.
VL_INSTANCE_CA_CERT_FILE
Path to a file containing PEM-encoded CA certificates.
MCP_PASSTHROUGH_HEADERS
Comma-separated HTTP header names to forward from incoming MCP requests to VictoriaLogs.
VL_DEFAULT_TENANT_ID
Default tenant ID used when a request omits one; format is AccountID:ProjectID or AccountID.
MCP_SERVER_MODE
Server transport mode: stdio, sse, or http; defaults to stdio.
MCP_LISTEN_ADDR
Address for the SSE or HTTP server to listen on; defaults to localhost:8081.
MCP_HEARTBEAT_INTERVAL
Heartbeat interval for Streamable HTTP; defaults to 30s.
MCP_MAX_RESPONSE_SIZE
Maximum VictoriaLogs response size read by a tool; defaults to 16777216 bytes, and 0 disables the limit.
MCP_LOG_FORMAT
Log output format, text or json; defaults to text.
MCP_LOG_LEVEL
Minimum log level: debug, info, warn, or error; defaults to info.
MCP_STATELESS
Whether HTTP mode ignores and does not validate session IDs; defaults to false.
MCP_DISABLE_LOCALHOST_PROTECTION
Whether to disable the DNS-rebinding guard in HTTP mode; defaults to false.
MCP_INSTRUCTIONS_OVERRIDE
Text that replaces the default MCP server instructions sent to clients.
Configure your MCP client to launch the local mcp-victorialogs executable and set VL_INSTANCE_ENTRYPOINT to the VictoriaLogs instance root URL. VL_INSTANCE_BEARER_TOKEN is optional. Alternatively, set VMC_API_KEY for VictoriaMetrics Cloud; it cannot be used together with the instance URL. The server defaults to stdio mode.
{"mcpServers":{"victorialogs":{"command":"/path/to/mcp-victorialogs","env":{"VL_INSTANCE_ENTRYPOINT":"<YOUR_VL_INSTANCE>","VL_INSTANCE_BEARER_TOKEN":"<YOUR_VL_BEARER_TOKEN>"}}}}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"victorialogs": {
"command": "/path/to/mcp-victorialogs",
"env": {
"VL_INSTANCE_ENTRYPOINT": "<YOUR_VL_INSTANCE>",
"VL_INSTANCE_BEARER_TOKEN": "<YOUR_VL_BEARER_TOKEN>"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.victorialogs] command = "/path/to/mcp-victorialogs" [mcp_servers.victorialogs.env] VL_INSTANCE_ENTRYPOINT = "<YOUR_VL_INSTANCE>" VL_INSTANCE_BEARER_TOKEN = "<YOUR_VL_BEARER_TOKEN>"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add victorialogs -e 'VL_INSTANCE_ENTRYPOINT=<YOUR_VL_INSTANCE>' -e 'VL_INSTANCE_BEARER_TOKEN=<YOUR_VL_BEARER_TOKEN>' -- /path/to/mcp-victorialogs
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm that VictoriaLogs tools such as documentation and query appear in your MCP client's tool list. Then ask it to search the VictoriaLogs documentation or query logs and confirm that it returns a result.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
VictoriaLogs MCP Server connects MCP clients to the VictoriaLogs API and documentation. It supports log queries, field and stream exploration, statistics, and offline search of embedded documentation. It also supports VictoriaLogs deployments in VictoriaMetrics Cloud.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision a04f03e01300 Data synced 2026-12-05 Read the FMRS scoring method Markdown