Back to VictoriaLogs
VictoriaLogs

Connect VictoriaLogs

Choose your client and follow the steps below.

Visual Studio Code

1

Install the MCP extension

Open VS Code and install GitHub Copilot (includes MCP support) from the Extensions Marketplace, or confirm it's already installed.

2

Open your MCP settings

Press Ctrl+Shift+P (or ⌘+Shift+P on macOS) and search for MCP: Add Server, or manually edit:

.vscode/mcp.json
3

Add the server configuration

Paste the following into your mcp.json file:

{
  "servers": {
    "victorialogs": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/victoriametrics-community/mcp-victorialogs"
      ],
      "env": {
        "VL_INSTANCE_BEARER_TOKEN": "YOUR_VL_INSTANCE_BEARER_TOKEN",
        "VL_INSTANCE_ENTRYPOINT": "YOUR_VL_INSTANCE_ENTRYPOINT",
        "VL_INSTANCE_HEADERS": "YOUR_VL_INSTANCE_HEADERS",
        "MCP_SERVER_MODE": "YOUR_MCP_SERVER_MODE",
        "MCP_LISTEN_ADDR": "YOUR_MCP_LISTEN_ADDR",
        "MCP_DISABLED_TOOLS": "YOUR_MCP_DISABLED_TOOLS",
        "MCP_HEARTBEAT_INTERVAL": "YOUR_MCP_HEARTBEAT_INTERVAL"
      }
    }
  }
}
4

Set required environment variables

When prompted, provide values for:

VL_INSTANCE_BEARER_TOKEN VL_INSTANCE_ENTRYPOINT VL_INSTANCE_HEADERS MCP_SERVER_MODE MCP_LISTEN_ADDR MCP_DISABLED_TOOLS MCP_HEARTBEAT_INTERVAL
5

Start using it

Open Copilot Chat and the VictoriaLogs tools will be available automatically.

Cursor

1

Open Cursor Settings

Go to Cursor Settings → MCP and click + Add new global MCP server, or manually edit:

~/.cursor/mcp.json
2

Add the server configuration

Paste the following into your mcp.json:

{
  "mcpServers": {
    "victorialogs": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/victoriametrics-community/mcp-victorialogs"
      ],
      "env": {
        "VL_INSTANCE_BEARER_TOKEN": "YOUR_VL_INSTANCE_BEARER_TOKEN",
        "VL_INSTANCE_ENTRYPOINT": "YOUR_VL_INSTANCE_ENTRYPOINT",
        "VL_INSTANCE_HEADERS": "YOUR_VL_INSTANCE_HEADERS",
        "MCP_SERVER_MODE": "YOUR_MCP_SERVER_MODE",
        "MCP_LISTEN_ADDR": "YOUR_MCP_LISTEN_ADDR",
        "MCP_DISABLED_TOOLS": "YOUR_MCP_DISABLED_TOOLS",
        "MCP_HEARTBEAT_INTERVAL": "YOUR_MCP_HEARTBEAT_INTERVAL"
      }
    }
  }
}
3

Set required environment variables

Provide values for:

VL_INSTANCE_BEARER_TOKEN VL_INSTANCE_ENTRYPOINT VL_INSTANCE_HEADERS MCP_SERVER_MODE MCP_LISTEN_ADDR MCP_DISABLED_TOOLS MCP_HEARTBEAT_INTERVAL
4

Start using it

Open Cursor's AI chat — the VictoriaLogs tools will appear automatically.

ChatGPT (Desktop)

1

Open ChatGPT Desktop settings

Click your profile icon → SettingsBeta features and ensure MCP plugin support is enabled.

2

Add the MCP server

Navigate to Settings → MCP Servers → + Add Server and paste:

{
  "mcpServers": {
    "victorialogs": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/victoriametrics-community/mcp-victorialogs"
      ],
      "env": {
        "VL_INSTANCE_BEARER_TOKEN": "YOUR_VL_INSTANCE_BEARER_TOKEN",
        "VL_INSTANCE_ENTRYPOINT": "YOUR_VL_INSTANCE_ENTRYPOINT",
        "VL_INSTANCE_HEADERS": "YOUR_VL_INSTANCE_HEADERS",
        "MCP_SERVER_MODE": "YOUR_MCP_SERVER_MODE",
        "MCP_LISTEN_ADDR": "YOUR_MCP_LISTEN_ADDR",
        "MCP_DISABLED_TOOLS": "YOUR_MCP_DISABLED_TOOLS",
        "MCP_HEARTBEAT_INTERVAL": "YOUR_MCP_HEARTBEAT_INTERVAL"
      }
    }
  }
}
3

Set required environment variables

Provide values for:

VL_INSTANCE_BEARER_TOKEN VL_INSTANCE_ENTRYPOINT VL_INSTANCE_HEADERS MCP_SERVER_MODE MCP_LISTEN_ADDR MCP_DISABLED_TOOLS MCP_HEARTBEAT_INTERVAL
4

Start using it

Start a new chat — VictoriaLogs tools will be available when the server is connected.

Claude Desktop

1

Open Claude Desktop config

Open the Claude Desktop configuration file at:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
2

Add to the mcpServers object

Merge the following into the "mcpServers" key:

{
  "victorialogs": {
    "command": "docker",
    "args": [
      "run",
      "-i",
      "--rm",
      "ghcr.io/victoriametrics-community/mcp-victorialogs"
    ],
    "env": {
      "VL_INSTANCE_BEARER_TOKEN": "YOUR_VL_INSTANCE_BEARER_TOKEN",
      "VL_INSTANCE_ENTRYPOINT": "YOUR_VL_INSTANCE_ENTRYPOINT",
      "VL_INSTANCE_HEADERS": "YOUR_VL_INSTANCE_HEADERS",
      "MCP_SERVER_MODE": "YOUR_MCP_SERVER_MODE",
      "MCP_LISTEN_ADDR": "YOUR_MCP_LISTEN_ADDR",
      "MCP_DISABLED_TOOLS": "YOUR_MCP_DISABLED_TOOLS",
      "MCP_HEARTBEAT_INTERVAL": "YOUR_MCP_HEARTBEAT_INTERVAL"
    }
  }
}
3

Set required environment variables

Replace the placeholder values for:

VL_INSTANCE_BEARER_TOKEN VL_INSTANCE_ENTRYPOINT VL_INSTANCE_HEADERS MCP_SERVER_MODE MCP_LISTEN_ADDR MCP_DISABLED_TOOLS MCP_HEARTBEAT_INTERVAL
4

Restart Claude Desktop

Quit and reopen Claude Desktop. The VictoriaLogs tools will appear in the tools menu.