MCP Server — VictoriaMetrics-Community/mcp

MCP Server for VictoriaLogs. Provides integration with VictoriaLogs API and documentation

Local serverstdioGo

What is the MCP Server?

MCP Server for VictoriaLogs. Provides integration with VictoriaLogs API and documentation

What the server does

This MCP server allows you to use almost all read-only APIs of VictoriaLogs, i.e. all functions available in Web UI:

  • Querying logs and exploring logs data
  • Showing parameters of your VictoriaLogs instance
  • Listing available streams, fields, field values
  • Query statistics for the logs as metrics
  • UI with setup instructions and tools inspection on the root endpoint (only in Streamable HTTP mode)

Credentials and setup notes

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
documentationSearch in embedded VictoriaLogs documentation
facetsMost frequent values per each log field
field_namesList of field names for the query
field_valuesList of field values for the query
flagsView non-default flags of the VictoriaLogs instance
hitsThe number of matching log entries grouped by buckets
queryExecute LogsQL queries
stats_queryQuerying log stats for the given time
stats_query_rangeQuerying log stats on the given time range
stream_field_namesList of stream fields for the query
stream_field_valuesList of stream field values for the query
stream_idsList of stream IDs for the query
streamsList of streams for the query

How to install the MCP Server

{
  "mcpServers": {
    "victorialogs": {
      "command": "/path/to/mcp-victorialogs",
      "env": {
        "VL_INSTANCE_ENTRYPOINT": "<YOUR_VL_INSTANCE>",
        "VL_INSTANCE_BEARER_TOKEN": "<YOUR_VL_BEARER_TOKEN>",
        "VL_INSTANCE_HEADERS": "<HEADER>=<HEADER_VALUE>,<HEADER>=<HEADER_VALUE>"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
VL_INSTANCE_ENTRYPOINTConfiguration value read at startup.Optional
VL_INSTANCE_BEARER_TOKENCredential the server authenticates with.Yes
VL_INSTANCE_HEADERSConfiguration value read at startup.Optional
MCP_PASSTHROUGH_HEADERSConfiguration value read at startup.Optional
MCP_SERVER_MODEConfiguration value read at startup.Optional
MCP_SSE_ADDRConfiguration value read at startup.Optional
MCP_DISABLED_TOOLSConfiguration value read at startup.Optional
VL_DEFAULT_TENANT_IDConfiguration value read at startup.Optional

Example prompts to try

  • “Use MCP to documentation.”
  • “Use MCP to facets.”
  • “Use MCP to field names.”

Frequently asked questions

MCP Server for VictoriaLogs. Provides integration with VictoriaLogs API and documentation Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.