# VictoriaMetrics-Community/mcp-victorialogs [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/VictoriaMetrics-Community/mcp-victorialogs  
**GitHub Stars:** 112  
**Views:** 10  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/victoriametrics-community-mcp-victorialogs

## Description
Provides comprehensive integration with your VictoriaLogs instance APIs and documentation for working with logs, investigating and debugging tasks related to your VictoriaLogs instances.

## Tools
Capabilities this server exposes over MCP:

- **documentation** — Search documentation resources for the given search query, returning the URIs of the resources that match the search criteria sorted by relevance. This tool can help to get context for any VictoriaLogs related question.
- **facets** — The most frequent values per each log field seen in the logs returned by the given <query> on the given [<start> ... <end>] time range. This tool uses `/select/logsql/facets` endpoint of VictoriaLogs API.
- **field_names** — Get field names from results of the given <query> on the given [<start> ... <end>] time range. The response also contains the number of log results per every field name. This tool uses `/select/logsql/field_names` endpoint of VictoriaLogs API.
- **field_values** — Get unique values for the given <fieldName> field from results of the given <query> on the given [<start> ... <end>] time range. The response also contains the number of log results per every field value. This tool uses `/select/logsql/field_values` endpoint of VictoriaLogs API.
- **flags** — List of non-default flags (parameters) of the VictoriaLogs instance. This tools uses `/flags` endpoint of VictoriaLogs API.
- **hits** — The number of matching log entries for the given <query> on the given [<start> ... <end>] time range grouped by <step> buckets. The returned results are sorted by time. This tool uses `/select/logsql/hits` endpoint of VictoriaLogs API.
- **query** — Executes LogsQL query expression to search log entries. This tool uses `/select/logsql/query` endpoint of VictoriaLogs API.
- **stats_query** — Log stats for the given query at the given timestamp (time) in the format compatible with Prometheus querying API. This tool uses `/select/logsql/stats_query` endpoint of VictoriaLogs API.
- **stats_query_range** — Log stats for the given query on the given [start ... end] time range with the given step interval. The stats is returned in the format compatible with Prometheus querying API. This tool uses `/select/logsql/stats_query_range` endpoint of VictoriaLogs API.
- **stream_field_names** — Get log stream field names from results of the given <query> on the given [<start> ... <end>] time range. The response also contains the number of log results per every field name.. This tool uses `/select/logsql/stream_field_names` endpoint of VictoriaLogs API.
- **stream_field_values** — Get unique values for the given <fieldName> field from results of the given <query> on the given [<start> ... <end>] time range. The response also contains the number of log results per every field value. This tool uses `/select/logsql/stream_field_values` endpoint of VictoriaLogs API.
- **stream_ids** — Get _stream_id values for the log streams from results of the given <query> on the given [<start> ... <end>] time range. The response also contains the number of log results per every _stream_id. This tool uses `/select/logsql/stream_ids` endpoint of VictoriaLogs API.
- **streams** — Get log streams from results of the given <query> on the given [<start> ... <end>] time range. The response also contains the number of log results per every _stream. This tool uses `/select/logsql/streams` endpoint of VictoriaLogs API.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "mcp-victorialogs": {
    "url": "https://play-vmlogs-mcp.victoriametrics.com/mcp"
  }
}
```

## Documentation

## What VictoriaMetrics-Community/mcp-victorialogs MCP server does

VictoriaMetrics-Community/mcp-victorialogs MCP server gives an MCP client an interface to a VictoriaLogs deployment. It is intended for log exploration, observability investigation, and debugging workflows involving either a single-node or cluster VictoriaLogs instance.

The server covers nearly all read-only APIs exposed through the VictoriaLogs web UI. It also includes a local copy of relevant VictoriaLogs documentation and can search that material without an internet connection. This lets an agent combine log results with documentation lookup in the same conversation.

## How it works

The MCP process sends requests to the VictoriaLogs URL configured in `VL_INSTANCE_ENTRYPOINT`. Optional bearer-token and custom-header settings support instances that require authentication or specific HTTP request metadata. A default tenant can also be configured for deployments that use VictoriaLogs multi-tenancy.

The server can run over stdio, or as an HTTP service. Streamable HTTP mode is useful when the MCP endpoint must be reached over a network and also provides a root-endpoint UI with setup instructions and tool inspection. A public Streamable HTTP endpoint is available for testing with the VictoriaLogs playground, but it is intended for MCP clients rather than ordinary browser use.

## Setup and configuration

VictoriaMetrics-Community/mcp-victorialogs can be installed with `go install`, downloaded as a release binary, run with Docker, built from source, or deployed using the documented Helm chart. Building from source requires Go 1.26 or newer. Docker examples use `MCP_SERVER_MODE=http` to enable Streamable HTTP mode.

Set `VL_INSTANCE_ENTRYPOINT` to the target VictoriaLogs URL; this is the only required environment variable. Use `VL_INSTANCE_BEARER_TOKEN` for API authentication, or `VL_INSTANCE_HEADERS` for comma-separated custom headers. In HTTP modes, `MCP_PASSTHROUGH_HEADERS` can forward selected incoming MCP headers to VictoriaLogs. `VL_DEFAULT_TENANT_ID` selects the tenant used when a request does not specify one, and `MCP_SERVER_MODE` selects the operating mode.

## Tools and capabilities

Available functionality includes:

- Querying and exploring VictoriaLogs records.
- Displaying VictoriaLogs instance parameters.
- Listing streams, fields, and values for fields.
- Returning query statistics as metrics.
- Searching embedded VictoriaLogs documentation offline.
- Inspecting setup information and tools through the HTTP root endpoint.

The exact tool and prompt behavior depends on the MCP client and the model using it.

## Limitations and notes

It requires access to a VictoriaLogs instance unless the public playground endpoint is used for testing. Tenant handling, authentication, and custom request headers must be configured for the target deployment when needed.

VictoriaMetrics-Community/mcp-victorialogs is designed for MCP clients. The README demonstrates Claude Desktop configuration and documents both local process and HTTP deployment patterns, but it does not document client-specific behavior beyond that example.

_Full upstream README: https://allmcps.com/mcp/victoriametrics-community-mcp-victorialogs/readme_

