Mentioned only for releases and repository information, not as an integration target of the MCP server.
Provides setup instructions for JetBrains IDEs to use the MCP server, allowing AI assistants to interact with VictoriaLogs through the IDE.
Mentioned only as a community link, not as an integration target of the MCP server.
Mentioned only as a community link, not as an integration target of the MCP server.
Provides access to VictoriaLogs instance APIs for querying logs, exploring log data, showing instance parameters, listing available streams/fields/field values, and querying log statistics as metrics.
VictoriaLogs MCP Server
The implementation of Model Context Protocol (MCP) server for VictoriaLogs.
This provides access to your VictoriaLogs instance and seamless integration with VictoriaLogs APIs and documentation. It can give you a comprehensive interface for logs, observability, and debugging tasks related to your VictoriaLogs instances, enable advanced automation and interaction capabilities for engineers and tools.
Features
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
In addition, the MCP server contains embedded up-to-date documentation and is able to search it without online access.
More details about the exact available tools and prompts can be found in the Usage section.
You can combine functionality of tools, docs search in your prompts and invent great usage scenarios for your VictoriaLogs instance. And please note the fact that the quality of the MCP Server and its responses depends very much on the capabilities of your client and the quality of the model you are using.
You can also combine the MCP server with other observability or doc search related MCP Servers and get even more powerful results.
Requirements
- VictoriaLogs instance (single-node or cluster)
- Go 1.24 or higher (if you want to build from source)
Installation
Go
Source Code
Binaries
Just download the latest release from Releases page and put it to your PATH.
Docker
Coming soon...
Smithery
To install VictoriaLogs MCP Server for your client automatically via Smithery, yo can use the following commands:
Configuration
MCP Server for VictoriaLogs is configured via environment variables:
Variable | Description | Required | Default | Allowed values |
---|---|---|---|---|
VL_INSTANCE_ENTRYPOINT | URL to VictoriaLogs instance | Yes | - | - |
VL_INSTANCE_BEARER_TOKEN | Authentication token for VictoriaLogs API | No | - | - |
MCP_SERVER_MODE | Server operation mode | No | stdio | stdio , sse |
MCP_SSE_ADDR | Address for SSE server to listen on | No | :8081 | - |
Сonfiguration examples
Setup in clients
Cursor
Go to: Settings
-> Cursor Settings
-> MCP
-> Add new global MCP server
and paste the following configuration into your Cursor ~/.cursor/mcp.json
file:
See Cursor MCP docs for more info.
Claude Desktop
Add this to your Claude Desktop claude_desktop_config.json
file (you can find it if open Settings
-> Developer
-> Edit config
):
See Claude Desktop MCP docs for more info.
Claude Code
Run the command:
See Claude Code MCP docs for more info.
Visual Studio Code
Add this to your VS Code MCP config file:
See VS Code MCP docs for more info.
Zed
Add the following to your Zed config file:
See Zed MCP docs for more info.
JetBrains IDEs
- Open
Settings
->Tools
->AI Assistant
->Model Context Protocol (MCP)
. - Click
Add (+)
- Select
As JSON
- Put the following to the input field:
Windsurf
Add the following to your Windsurf MCP config file.
See Windsurf MCP docs for more info.
Amazon Bedrock
Coming soon....
Using Docker instead of binary
Coming soon...
Usage
After installing and configuring the MCP server, you can start using it with your favorite MCP client.
You can start dialog with AI assistant from the phrase:
But it's not required, you can just start asking questions and the assistant will automatically use the tools and documentation to provide you with the best answers.
Toolset
MCP VictoriaLogs provides numerous tools for interacting with your VictoriaLogs instance.
Here's a list of available tools:
Tool | Description |
---|---|
documentation | Search in embedded VictoriaLogs documentation |
facets | Most frequent values per each log field |
field_names | List of field names for the query |
field_values | List of field values for the query |
flags | View non-default flags of the VictoriaLogs instance |
hits | The number of matching log entries grouped by buckets |
query | Execute LogsQL queries |
stats_query | Querying log stats for the given time |
stats_query_range | Querying log stats on the given time range |
stream_field_names | List of stream fields for the query |
stream_field_names | List of stream field values for the query |
stream_ids | List of stream IDs for the query |
streams | List of streams for the query |
Prompts
The server includes pre-defined prompts for common tasks.
These are just examples at the moment, the prompt library will be added to in the future:
Prompt | Description |
---|---|
documentation | Search VictoriaLogs documentation for specific topics |
Disclaimer
AI services and agents along with MCP servers like this cannot guarantee the accuracy, completeness and reliability of results. You should double check the results obtained with AI. The quality of the MCP Server and its responses depends very much on the capabilities of your client and the quality of the model you are using.
Contributing
Contributions to the MCP VictoriaLogs project are welcome! Please feel free to submit issues, feature requests, or pull requests.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
mcp-victorialogs
Related MCP Servers
- -security-license-qualityVictoriaMetrics-mcp-serverLast updated -2JavaScript
- JavaScript
- PythonMIT License
- TypeScript