The implementation of Model Context Protocol (MCP) server for VMAnomaly
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add vmanomaly --env VMANOMALY_ENDPOINT='<VMANOMALY_ENDPOINT>' --env VMANOMALY_BEARER_TOKEN='<VMANOMALY_BEARER_TOKEN>' -- docker run -i --rm -e VMANOMALY_ENDPOINT -e VMANOMALY_BEARER_TOKEN ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0~/.codex/config.toml
[mcp_servers.vmanomaly]
command = "docker"
args = ["run", "-i", "--rm", "-e", "VMANOMALY_ENDPOINT", "-e", "VMANOMALY_BEARER_TOKEN", "ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0"]
env = { VMANOMALY_ENDPOINT = "<VMANOMALY_ENDPOINT>", VMANOMALY_BEARER_TOKEN = "<VMANOMALY_BEARER_TOKEN>" }
# codex mcp add vmanomaly --env VMANOMALY_ENDPOINT='<VMANOMALY_ENDPOINT>' --env VMANOMALY_BEARER_TOKEN='<VMANOMALY_BEARER_TOKEN>' -- docker run -i --rm -e VMANOMALY_ENDPOINT -e VMANOMALY_BEARER_TOKEN ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0~/.cursor/mcp.json
{
"mcpServers": {
"vmanomaly": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"VMANOMALY_ENDPOINT",
"-e",
"VMANOMALY_BEARER_TOKEN",
"ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0"
],
"env": {
"VMANOMALY_ENDPOINT": "<VMANOMALY_ENDPOINT>",
"VMANOMALY_BEARER_TOKEN": "<VMANOMALY_BEARER_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"vmanomaly": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"VMANOMALY_ENDPOINT",
"-e",
"VMANOMALY_BEARER_TOKEN",
"ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0"
],
"env": {
"VMANOMALY_ENDPOINT": "<VMANOMALY_ENDPOINT>",
"VMANOMALY_BEARER_TOKEN": "<VMANOMALY_BEARER_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"vmanomaly": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"VMANOMALY_ENDPOINT",
"-e",
"VMANOMALY_BEARER_TOKEN",
"ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0"
],
"env": {
"VMANOMALY_ENDPOINT": "<VMANOMALY_ENDPOINT>",
"VMANOMALY_BEARER_TOKEN": "<VMANOMALY_BEARER_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"vmanomaly": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"VMANOMALY_ENDPOINT",
"-e",
"VMANOMALY_BEARER_TOKEN",
"ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0"
],
"env": {
"VMANOMALY_ENDPOINT": "<VMANOMALY_ENDPOINT>",
"VMANOMALY_BEARER_TOKEN": "<VMANOMALY_BEARER_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"vmanomaly": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"VMANOMALY_ENDPOINT",
"-e",
"VMANOMALY_BEARER_TOKEN",
"ghcr.io/victoriametrics-community/mcp-vmanomaly:0.1.0"
],
"env": {
"VMANOMALY_ENDPOINT": "<VMANOMALY_ENDPOINT>",
"VMANOMALY_BEARER_TOKEN": "<VMANOMALY_BEARER_TOKEN>"
}
}
}
}Environment variables
VMANOMALY_ENDPOINTVMANOMALY_BEARER_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.