Skip to content
VictoriaLogs MCP Server

VictoriaLogs MCP Server

Released
v1.11.0
Apache-2.0

Summary

Official VictoriaLogs MCP server: lets AI assistants run LogsQL queries, explore log streams and fields, compute log stats and search the embedded VictoriaLogs docs.

Features

  • Execute LogsQL queries against VictoriaLogs
  • Hit counts grouped by time buckets
  • List streams, stream IDs, field names and field values
  • Facets: most frequent values per log field
  • Log stats queries for an instant or a time range
  • Embedded VictoriaLogs documentation searchable offline
  • VictoriaMetrics Cloud deployment tools with an API key
  • stdio, SSE or Streamable HTTP; go install, binaries or Docker

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it, filling in the environment variables with your own values.
  3. Restart the agent — the "VictoriaLogs MCP Server" tools will be available.
{
  "mcpServers": {
    "victorialogs-mcp": {
      "command": "/path/to/mcp-victorialogs",
      "env": {
        "VL_INSTANCE_ENTRYPOINT": "<your-victorialogs-url>",
        "VL_INSTANCE_BEARER_TOKEN": "<your-vl-bearer-token>"
      }
    }
  }
}

Hosted endpoint

This server is also hosted. A client that supports remote MCP servers can connect to it directly: Public demo instance connected to the VictoriaLogs playground; no install, no key.

{
  "mcpServers": {
    "victorialogs-mcp": {
      "type": "http",
      "url": "https://play-vmlogs-mcp.victoriametrics.com/mcp"
    }
  }
}

Description

The VictoriaLogs MCP server is the VictoriaMetrics team's MCP server for VictoriaLogs, their log database. It gives MCP clients the read-only APIs behind the VictoriaLogs web UI, for a single-node or cluster instance or a VictoriaMetrics Cloud deployment, so an assistant can investigate logs during an incident instead of you copying them into a chat.

The tools execute LogsQL queries, count matching entries in time buckets (hits), list streams, stream IDs, field names and values, show the most frequent values per field (facets), and run stats queries that turn logs into metrics for a point in time or a range. It can also show the instance's non-default flags. Like its VictoriaMetrics sibling, it embeds the VictoriaLogs documentation and searches it offline, and with a VictoriaMetrics Cloud API key it lists deployments, tiers, regions, access tokens and rule files.

It ships as a Go binary (go install, release downloads or a GHCR Docker image) that speaks stdio by default, or SSE and Streamable HTTP with optional bearer-token auth for shared deployments. A public instance connected to the VictoriaLogs playground (https://play-vmlogs-mcp.victoriametrics.com/mcp) is available to try. Apache-2.0.

New

Official VictoriaMetrics MCP server: lets AI assistants run MetricsQL queries, explore metrics and labels, inspect alerting rules and cardinality, and search the embedded VictoriaMetrics docs.

Browse all MCP servers →