MCP Server

MCP Server for vmanomaly - VictoriaMetrics anomaly detection

Local serverstdioGo

What is the MCP MCP server?

Most monitoring and observability work still happens through a UI a human drives. MCP MCP server moves it into the conversation instead. MCP Server for vmanomaly - VictoriaMetrics anomaly detection.

The short version

This provides seamless integration with vmanomaly REST API and documentation for AI-assisted anomaly detection, model management, and observability insights.

  • Health Monitoring — Check vmanomaly server health and build information
  • Model Management — Discover UI-compatible models and validate univariate or multivariate configurations
  • Data-Driven Recommendations — Profile sampled time series and run shared autotune suggestions for one production-ready model config across many returned series
  • Configuration Generation — Generate complete vmanomaly YAML configurations
  • Alert Rule Generation — Generate vmalert alerting rules based on anomaly score metrics to simplify alerting setup
  • Documentation Search — Full-text search across embedded vmanomaly documentation with fuzzy matching

The tools it exposes

The server publishes 14 tools. What each one is for:

  • vmanomaly_health_check — Check vmanomaly server health status
  • vmanomaly_get_buildinfo — Get build information (version, build time, Go version)
  • vmanomaly_get_server_queries — Get configured server query aliases and expressions
  • vmanomaly_get_metrics — Get vmanomaly server metrics in Prometheus format
  • vmanomaly_list_models — List models exposed to VMUI and other UI-oriented flows
  • vmanomaly_get_server_models — Get configured server models and their query attachments
  • vmanomaly_get_model_schema — Get JSON schema for a specific model type
  • vmanomaly_validate_model_config — Validate model configuration before using it
  • vmanomaly_timeseries_characteristics — Profile sampled query results for trends, seasonalities, spikiness, and gaps
  • vmanomaly_create_autotune_task — Start tuning one requested model class on sampled series
  • vmanomaly_get_autotune_task — Poll autotune progress and retrieve a completed recommendation
  • vmanomaly_cancel_autotune_task — Request cooperative cancellation of an autotune task

What it needs from you

Configuration is passed through the environment: VMANOMALY_ENDPOINT, VMANOMALY_BEARER_TOKEN, VMANOMALY_HEADERS, MCP_SERVER_MODE, MCP_LISTEN_ADDR, MCP_LOG_LEVEL, MCP_LOG_FILE, YOUR_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • vmanomaly instance with REST API access: - version 1.28.3+ for the core MCP toolset - version 1.30.0+ for time-series characteristics and task-based shared autotune - Go 1.24 or higher (if building

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

How it compares

Plenty of monitoring and observability servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MCP's toolset — vmanomaly_health_check, vmanomaly_get_buildinfo, vmanomaly_get_server_queries and 11 more — is a fair guide to whether it matches your workflow. It is maintained by VictoriaMetrics-Community; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch MCP.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
vmanomaly_health_checkCheck vmanomaly server health status
vmanomaly_get_buildinfoGet build information (version, build time, Go version)
vmanomaly_get_server_queriesGet configured server query aliases and expressions
vmanomaly_get_metricsGet vmanomaly server metrics in Prometheus format
vmanomaly_list_modelsList models exposed to VMUI and other UI-oriented flows
vmanomaly_get_server_modelsGet configured server models and their query attachments
vmanomaly_get_model_schemaGet JSON schema for a specific model type
vmanomaly_validate_model_configValidate model configuration before using it
vmanomaly_timeseries_characteristicsProfile sampled query results for trends, seasonalities, spikiness, and gaps
vmanomaly_create_autotune_taskStart tuning one requested model class on sampled series
vmanomaly_get_autotune_taskPoll autotune progress and retrieve a completed recommendation
vmanomaly_cancel_autotune_taskRequest cooperative cancellation of an autotune task
BinariesDownload the latest release from [Releases](https://github.com/VictoriaMetrics/mcp-vmanomaly/releases) page and put it to your PATH.
ModesMCP Server supports the following modes of operation (transports):

Configuration

  • vmanomaly instance with REST API access: - version 1.28.3+ for the core MCP toolset - version 1.30.0+ for time-series characteristics and task-based shared autotune - Go 1.24 or higher (if building
VariableDescriptionRequired
VMANOMALY_ENDPOINTConfiguration value read at startup.Optional
VMANOMALY_BEARER_TOKENCredential the server authenticates with.Yes
VMANOMALY_HEADERSConfiguration value read at startup.Optional
MCP_SERVER_MODEConfiguration value read at startup.Optional
MCP_LISTEN_ADDRConfiguration value read at startup.Optional
MCP_LOG_LEVELConfiguration value read at startup.Optional
MCP_LOG_FILEConfiguration value read at startup.Optional
YOUR_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use MCP to vmanomaly health check.
  • Use MCP to vmanomaly get buildinfo.
  • Use MCP to vmanomaly get server queries.

Frequently asked questions

It connects MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (vmanomaly_health_check, vmanomaly_get_buildinfo, vmanomaly_get_server_queries, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP directly.