wg-easy

v0.6.0
io.github.ni-c/wg-easy-mcp Checked 2 days ago Published 2 months ago

Administer wg-easy (WireGuard Easy) v15: manage VPN clients, configs, QR codes and server status

Values you need

VariableWhat it is
WG_EASY_URLrequired Base URL of the wg-easy web UI, e.g. https://vpn.example.com:51821
WG_EASY_USERNAMErequired Username of a wg-easy admin account (2FA must be disabled)
WG_EASY_PASSWORDrequired secret Password of the wg-easy admin account
WG_EASY_INSECURE_TLSoptional Set to true to accept self-signed TLS certificates (scoped to the wg-easy connection)
WG_EASY_READ_ONLYoptional Set to true to register only the read tools (default: false)
WG_EASY_ALLOW_TOOLSoptional Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools)
WG_EASY_DENY_TOOLSoptional Comma-separated tool names or list_* prefixes to remove from whatever WG_EASY_ALLOW_TOOLS left

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add wg-easy-mcp -e 'WG_EASY_PASSWORD=<WG_EASY_PASSWORD>' -e 'WG_EASY_URL=<WG_EASY_URL>' -e 'WG_EASY_USERNAME=<WG_EASY_USERNAME>' -- npx -y wg-easy-mcp@0.6.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "wg-easy-mcp": {
      "args": [
        "-y",
        "wg-easy-mcp@0.6.0"
      ],
      "command": "npx",
      "env": {
        "WG_EASY_PASSWORD": "<WG_EASY_PASSWORD>",
        "WG_EASY_URL": "<WG_EASY_URL>",
        "WG_EASY_USERNAME": "<WG_EASY_USERNAME>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "wg-easy-mcp": {
      "args": [
        "-y",
        "wg-easy-mcp@0.6.0"
      ],
      "command": "npx",
      "env": {
        "WG_EASY_PASSWORD": "<WG_EASY_PASSWORD>",
        "WG_EASY_URL": "<WG_EASY_URL>",
        "WG_EASY_USERNAME": "<WG_EASY_USERNAME>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "WG_EASY_PASSWORD",
      "id": "wg-easy-password",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "WG_EASY_URL",
      "id": "wg-easy-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "WG_EASY_USERNAME",
      "id": "wg-easy-username",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "wg-easy-mcp": {
      "args": [
        "-y",
        "wg-easy-mcp@0.6.0"
      ],
      "command": "npx",
      "env": {
        "WG_EASY_PASSWORD": "${input:wg-easy-password}",
        "WG_EASY_URL": "${input:wg-easy-url}",
        "WG_EASY_USERNAME": "${input:wg-easy-username}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.wg-easy-mcp]
command = "npx"
args = ["-y", "wg-easy-mcp@0.6.0"]
env = { "WG_EASY_PASSWORD" = "<WG_EASY_PASSWORD>", "WG_EASY_URL" = "<WG_EASY_URL>", "WG_EASY_USERNAME" = "<WG_EASY_USERNAME>" }

Docker

Requires Docker

Run in a terminal
claude mcp add wg-easy-mcp -e 'WG_EASY_PASSWORD=<WG_EASY_PASSWORD>' -e 'WG_EASY_URL=<WG_EASY_URL>' -e 'WG_EASY_USERNAME=<WG_EASY_USERNAME>' -- docker run -i --rm -e WG_EASY_PASSWORD -e WG_EASY_URL -e WG_EASY_USERNAME ghcr.io/ni-c/wg-easy-mcp:0.6.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "wg-easy-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WG_EASY_PASSWORD",
        "-e",
        "WG_EASY_URL",
        "-e",
        "WG_EASY_USERNAME",
        "ghcr.io/ni-c/wg-easy-mcp:0.6.0"
      ],
      "command": "docker",
      "env": {
        "WG_EASY_PASSWORD": "<WG_EASY_PASSWORD>",
        "WG_EASY_URL": "<WG_EASY_URL>",
        "WG_EASY_USERNAME": "<WG_EASY_USERNAME>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "wg-easy-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WG_EASY_PASSWORD",
        "-e",
        "WG_EASY_URL",
        "-e",
        "WG_EASY_USERNAME",
        "ghcr.io/ni-c/wg-easy-mcp:0.6.0"
      ],
      "command": "docker",
      "env": {
        "WG_EASY_PASSWORD": "<WG_EASY_PASSWORD>",
        "WG_EASY_URL": "<WG_EASY_URL>",
        "WG_EASY_USERNAME": "<WG_EASY_USERNAME>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "WG_EASY_PASSWORD",
      "id": "wg-easy-password",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "WG_EASY_URL",
      "id": "wg-easy-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "WG_EASY_USERNAME",
      "id": "wg-easy-username",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "wg-easy-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WG_EASY_PASSWORD",
        "-e",
        "WG_EASY_URL",
        "-e",
        "WG_EASY_USERNAME",
        "ghcr.io/ni-c/wg-easy-mcp:0.6.0"
      ],
      "command": "docker",
      "env": {
        "WG_EASY_PASSWORD": "${input:wg-easy-password}",
        "WG_EASY_URL": "${input:wg-easy-url}",
        "WG_EASY_USERNAME": "${input:wg-easy-username}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.wg-easy-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "WG_EASY_PASSWORD", "-e", "WG_EASY_URL", "-e", "WG_EASY_USERNAME", "ghcr.io/ni-c/wg-easy-mcp:0.6.0"]
env = { "WG_EASY_PASSWORD" = "<WG_EASY_PASSWORD>", "WG_EASY_URL" = "<WG_EASY_URL>", "WG_EASY_USERNAME" = "<WG_EASY_USERNAME>" }

For AI agents

  1. Ask the user for: WG_EASY_URL, WG_EASY_USERNAME, WG_EASY_PASSWORD. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_clients, get_client, create_client, update_client, enable_client, disable_client, delete_client, get_client_config, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json