io.github.VictoriaMetrics/mcp-victoriametrics
MCP Server for VictoriaMetrics. Provides integration with VictoriaMetrics API and documentation
★ 132Apache-2.0devtools
Install
Config snippet generator goes here (5 client tabs)
README
# <img width="25" height="25" alt="vm-community-icon" src="https://github.com/user-attachments/assets/1c060750-370a-4440-b619-78b78c7abd7a" /> VictoriaMetrics MCP Server [](https://github.com/VictoriaMetrics/mcp-victoriametrics/releases) [](https://archestra.ai/mcp-catalog/victoriametrics-community__mcp-victoriametrics)     The implementation of [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for [VictoriaMetrics](https://docs.victoriametrics.com/victoriametrics/). This provides access to your VictoriaMetrics instance and seamless integration with [VictoriaMetrics APIs](https://docs.victoriametrics.com/victoriametrics/url-examples/) and [documentation](https://docs.victoriametrics.com/). It can give you a comprehensive interface for monitoring, observability, and debugging tasks related to your VictoriaMetrics 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 VictoriaMetrics, i.e. all functions available in [VMUI](https://docs.victoriametrics.com/#vmui): - Querying metrics and exploring data (even drawing graphs if your client supports it) - Listing and exporting available metrics, labels, labels values and entire series - Analyzing and testing your alerting and recording rules and alerts - Showing parameters of your VictoriaMetrics instance - Exploring cardinality of your data and metrics usage statistics - Analyzing, tracing, prettifying and explaining your queries - Debugging your relabeling rules, downsampling and retention policy configurations - Integration with [VictoriaMetrics Cloud](https://docs.victoriametrics.com/victoriametrics-cloud/) - UI with setup instrinctions and tools inspection on the root endpoint (only in Streamable HTTP mode) 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](#usage) section. You can combine functionality of tools, docs search in your prompts and invent great usage scenarios for your VictoriaMetrics instance. Just check the [Dialog example](#dialog-example) section to see how it can work. 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. ## Try without installation There is a publicly available instance of the VictoriaMetrics MCP Server that you can use to test the features without installing it: ``` https://play-mcp.victoriametrics.com/mcp ``` **Attention!** This URL is not supposed to be opened in a browser, it is intended to be used in MCP clients. It's available in [Streamable HTTP](#modes) mode and configured to work with [Public VictoriaMetrics Playground](https://play.victoriametrics.com). Here is example of configuration for [Claude Desktop](https://claude.ai/download):  ## Requirements - [VictoriaMetrics](https://docs.victoriametrics.com/victoriametrics/) or [VictoriaMetrics Cloud](https://docs.victoriametrics.com/victoriametrics-cloud/) instance ([single-node](https://docs.victoriametrics.com/victoriametrics/single-server-victoriametrics/) or [cluster](https://docs.victoriametrics.com/victoriametrics/cluster-victoriametrics/)) - Go 1.26 or higher (if you want to build from source) ## Installation ### Binaries Just download the latest release from [Releases](https://github.com/VictoriaMetrics/mcp-victoriametrics/releases) page and put it to your PATH. Example for Linux x86_64 (note that other architectures and platforms are also available): ```bash latest=$(curl -s http