mcp-vmanomaly

v0.1.0
io.github.VictoriaMetrics-Community/mcp-vmanomaly Checked 9 hours ago Published 11 months ago

MCP Server for vmanomaly - VictoriaMetrics anomaly detection

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

vmanomaly_check_compatibility

Check if persisted vmanomaly state is compatible with the current or target runtime version. Returns compatibility status and required migration actions.

ParameterTypeDescription
version_tostringOptional target version to check compatibility against. If omitted, checks against current runtime version.

vmanomaly_generate_alert_rule

Generate a VMAlert rule YAML configuration for anomaly score alerting. Creates a production-ready vmalert rule that triggers when anomaly_score exceeds the threshold. Use this to set up alerting for anomalies detected by vmanomaly.

ParameterTypeDescription
query *stringPromQL query to include in alert description
step *stringQuery step/resolution (e.g. '1s' '1m' '5m')
anomaly_thresholdnumberAnomaly score threshold (default: 1.0)
group_namestringVMAlert rule group name (default: 'VMAnomalyAlerts')
infer_everystringInference cadence (defaults to step value)
rule_descriptionstringCustom alert description/summary
rule_namestringCustom alert rule name

vmanomaly_get_buildinfo

Get vmanomaly server build information including version number, build timestamp, and Go version. Use this to verify server version, check compatibility, or troubleshoot issues by confirming which version is running.

vmanomaly_get_metrics

Get currently instant Prometheus-formatted self-monitoring metrics from vmanomaly server. Returns operational metrics including reader/writer performance, model execution stats, system info, and resource usage. Output is in standard Prometheus text exposition format suitable for scraping or monitoring analysis.

vmanomaly_get_model_schema

Get the complete JSON schema for a specific anomaly detection model type. Returns all configuration parameters, types, validation rules, default values, and descriptions. Use this after vmanomaly_list_models to understand how to configure a specific model before calling vmanomaly_validate_model_config or vmanomaly_create_detection_task.

ParameterTypeDescription
model_class *stringModel type to retrieve schema for. Valid values: 'zscore' (statistical z-score) 'prophet' (Facebook Prophet for seasonality) 'mad' (Median Absolute Deviation) 'holtwinters' (triple exponential smoothi…

vmanomaly_health_check

Check the health status of the vmanomaly server

vmanomaly_list_models

List all available anomaly detection model types supported by vmanomaly. Returns model names that can be used in model configurations. Use this as the first step when selecting a model, then call vmanomaly_get_model_schema to see parameters for your chosen model.

vmanomaly_search_docs

Search vmanomaly documentation using full-text search with fuzzy matching. Returns relevant documentation resources that can help answer questions about anomaly detection, models, configuration, and vmanomaly features. Use this when you need information about model parameters, configuration syntax, troubleshooting, or feature explanations.

ParameterTypeDescription
query *stringSearch query for vmanomaly documentation. Supports keywords phrases or natural language questions. Example queries: 'prophet model parameters' 'how to configure seasonality' 'online vs batch models' '…
limitnumberMaximum number of documentation resources to return. Range: 1-100. Default: 30. Higher limits provide more context but may include less relevant results.

vmanomaly_validate_config

Validate a complete vmanomaly YAML configuration. Takes a full configuration object (with reader, scheduler, model, writer sections) and returns validation result with normalized config or error details. Use this to verify a complete config before deployment.

ParameterTypeDescription
config *objectComplete vmanomaly configuration object to validate. Must include all required sections: 'reader' (data source) 'scheduler' (timing) 'model' (detection algorithm) and 'writer' (output destination). Re…

vmanomaly_validate_model_config

Validate an anomaly detection model configuration before using it. Returns validation result with the normalized/validated configuration or detailed error messages if invalid. Use this after building your model config to catch configuration errors before creating a detection task with vmanomaly_create_detection_task.

ParameterTypeDescription
model_spec *objectModel configuration object to validate. Must include 'class' field specifying model type (e.g. 'prophet' 'zscore' 'holtwinters') plus model-specific parameters. Use vmanomaly_get_model_schema first to…