← Back to directory
V

VictoriaLogs MCP Server

Official
Query VictoriaLogs logs and search its documentation from an MCP client.
Category
Dev Tools #178 of 751
Stars
★ 114 Very popular
Transport
stdio (local process) · SSE · Streamable HTTP
Runtime
Go 1.26+ · Prebuilt binary · Docker
Credentials
API key / credential required
License
Apache-2.0
Last commit
Tools
20
56FMRS · C

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

Reliability
8/20
Security and permissions
11/20
Maintenance
10/20
Documentation
14/20
Setup experience
13/20
Why each score
Reliability 8/20
The README lists stdio, SSE, and Streamable HTTP modes, the toolset, and a configurable response-size limit. The described VictoriaLogs functions are primarily read-only. However, the supplied material cannot verify the MCP initialization and tool-list handshake, error handling, dependency behavior, CI, or tests for key paths. The happy path is plausible, but static evidence limits the score.
Security and permissions 11/20
The README describes environment-based credentials and recommends read-only tokens for VictoriaMetrics Cloud; it also documents an optional HTTP-mode authentication setting and some public endpoints. However, MCP_AUTH_TOKEN is optional, and the supplied material does not establish tool-level permission boundaries, data-flow protections, or confirmation for dangerous operations. No evidence indicates a red line, so none is applied; the lack of implementation evidence limits the score.
Maintenance 10/20
The supplied material identifies an Apache-2.0 license, a GitHub Releases page, and contribution guidance; the repository is not archived and has some community attention. It provides no evidence about commit history, release dates or cadence, issue response, dependency updates, or a security-response channel. Stars do not add maintenance points, so the score remains moderate-low.
Documentation 14/20
The README provides several installation options, configuration variables, transport modes, endpoints, examples for mainstream clients, a tool list, and guidance on cloud deployment tokens. It also discloses response-size and some security-configuration limits. Points are deducted because the supplied material does not verify detailed tool parameters, troubleshooting, cost information, or consistency between documentation and actual behavior.
Setup experience 13/20
The README offers Go, prebuilt binary, Docker, and Helm installation paths, plus configuration examples for multiple MCP clients. The default stdio mode keeps local connection steps manageable. Users still need a VictoriaLogs instance or cloud account and credentials, and the supplied material contains no CI, tests, or execution evidence to verify installation. The score stays within the static-calibration cap.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the network

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.

Not for

  • Users who need to write or modify log data; the documented instance API tools are primarily read-only.
  • Users without a VictoriaLogs instance or VictoriaMetrics Cloud account and the relevant credentials.
  • Users seeking a general-purpose connector for other log platforms or data sources.

Required permissions

  • Requires a VictoriaLogs instance root URL and optionally an API bearer token, or a VictoriaMetrics Cloud API key; these configuration methods are mutually exclusive.
  • In Cloud mode, tool calls require a deployment_id, and the server queries the deployment using its access token. The documentation recommends creating a read-only deployment token.
  • Tools can be disabled through configuration. The flags tool is unavailable in Cloud mode; rule file tools can read deployment rule contents.

Risks and side effects

  • Queries access log data in the configured instance; protect bearer tokens, Cloud API keys, and MCP service credentials.
  • In Cloud mode, if no read-only deployment token is available, a read-write token may be used. Avoid granting write credentials to the MCP server.
  • MCP server and AI client responses may be inaccurate or incomplete; verify results.
  • The embedded documentation vector database uses additional resources; disable the documentation tool to avoid loading it.

Setup

Before you start

Runtime:Go 1.26+ · Prebuilt binary · Docker

VL_INSTANCE_ENTRYPOINT required 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 optionalsecret Optional authentication token for the VictoriaLogs API; obtain it from your instance administrator.
VMC_API_KEY requiredsecret API key from the VictoriaMetrics Cloud Console for accessing Cloud VictoriaLogs deployments. Cannot be used with VL_INSTANCE_ENTRYPOINT.
MCP_AUTH_TOKEN optionalsecret Bearer token for authenticating incoming MCP requests in SSE or HTTP mode; set by the server operator.
Other optional settings (16)
VMC_API_BASE_URL optional Base URL for the VictoriaMetrics Cloud API; defaults to https://api.victoriametrics.cloud.
MCP_DISABLED_TOOLS optional Comma-separated names of tools to disable.
VL_INSTANCE_HEADERS optional Custom HTTP headers sent to VictoriaLogs, specified as comma-separated key=value pairs.
VL_INSTANCE_CA_CERT optional PEM-encoded CA certificate used to verify TLS certificates for VictoriaLogs and the Cloud API.
VL_INSTANCE_CA_CERT_FILE optional Path to a file containing PEM-encoded CA certificates.
MCP_PASSTHROUGH_HEADERS optional Comma-separated HTTP header names to forward from incoming MCP requests to VictoriaLogs.
VL_DEFAULT_TENANT_ID optional Default tenant ID used when a request omits one; format is AccountID:ProjectID or AccountID.
MCP_SERVER_MODE optional Server transport mode: stdio, sse, or http; defaults to stdio.
MCP_LISTEN_ADDR optional Address for the SSE or HTTP server to listen on; defaults to localhost:8081.
MCP_HEARTBEAT_INTERVAL optional Heartbeat interval for Streamable HTTP; defaults to 30s.
MCP_MAX_RESPONSE_SIZE optional Maximum VictoriaLogs response size read by a tool; defaults to 16777216 bytes, and 0 disables the limit.
MCP_LOG_FORMAT optional Log output format, text or json; defaults to text.
MCP_LOG_LEVEL optional Minimum log level: debug, info, warn, or error; defaults to info.
MCP_STATELESS optional Whether HTTP mode ignores and does not validate session IDs; defaults to false.
MCP_DISABLE_LOCALHOST_PROTECTION optional Whether to disable the DNS-rebinding guard in HTTP mode; defaults to false.
MCP_INSTRUCTIONS_OVERRIDE optional 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.

claude_desktop_config.json
{"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.

.vscode/mcp.json
{
  "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).

~/.codex/config.toml
[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).

Terminal
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.

Check that it works

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.

Troubleshooting

  1. Check that VL_INSTANCE_ENTRYPOINT is the root URL of vlsingle or vlselect, or use VMC_API_KEY instead; do not set both.
  2. Check the VictoriaLogs bearer token, Cloud API key, and associated access permissions.
  3. If tool discovery fails, confirm that the MCP client and server use matching transport modes and the correct endpoint: /mcp for HTTP or /sse and /message for SSE.
  4. Check whether MCP_DISABLED_TOOLS disables the needed tool; the flags tool is unavailable in Cloud mode.
  5. For HTTP session or Host check issues behind a reverse proxy, consult the MCP_STATELESS and MCP_DISABLE_LOCALHOST_PROTECTION configuration guidance.

Things to try

Once connected, you can ask your AI assistant things like:

  • Find recent logs and show the most frequent values for each field.
  • List the available log streams and their field names.
  • Query log statistics over a time range.
  • Search the VictoriaLogs documentation for guidance on querying logs.

Tools 20

documentation read-only
Search the embedded VictoriaLogs documentation.
facets read-only
Get the most frequent values for each log field.
field_names read-only
List field names for a query.
field_values read-only
List field values for a query.
flags read-only
View non-default flags of the VictoriaLogs instance.
hits read-only
Count matching log entries grouped into time buckets.
query read-only
Execute LogsQL queries.
stats_query read-only
Query log statistics for a given time.
Show 12 more tools
stats_query_range read-only
Query log statistics over a time range.
stream_field_names read-only
List stream fields for a query.
stream_field_values read-only
List stream field values for a query.
stream_ids read-only
List stream IDs for a query.
streams read-only
List streams for a query.
deployments read-only
List VictoriaLogs deployments.
access_tokens read-only
List access tokens for a deployment.
tiers read-only
List VictoriaLogs deployment tiers.
regions read-only
List regions.
cloud_providers read-only
List cloud providers.
rule_filenames read-only
List alerting and recording rule files for a deployment.
rule_file read-only
Read the contents of an alerting or recording rule file for a deployment.

Use cases

Query and explore log data with LogsQL.
Inspect instance flags, streams, fields, field values, and log statistics.
Search embedded VictoriaLogs documentation to help with troubleshooting.
Use VictoriaMetrics Cloud tools to inspect deployments and their rule files.

Supported clients

Claude Desktop
Cursor
Claude Code
Codex
OpenCode
VS Code
Zed
JetBrains IDEs
Windsurf

Listed from the project's documentation, not tested by this site.

Overview

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.

Similar servers

Source revision a04f03e01300 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mcp-victorialogs.svg)](https://followmcp.com/en/servers/mcp-victorialogs)