wg-easy
v0.6.0Administer wg-easy (WireGuard Easy) v15: manage VPN clients, configs, QR codes and server status
Values you need
| Variable | What it is | |
|---|---|---|
WG_EASY_URL | required | Base URL of the wg-easy web UI, e.g. https://vpn.example.com:51821 |
WG_EASY_USERNAME | required | Username of a wg-easy admin account (2FA must be disabled) |
WG_EASY_PASSWORD | required secret | Password of the wg-easy admin account |
WG_EASY_INSECURE_TLS | optional | Set to true to accept self-signed TLS certificates (scoped to the wg-easy connection) |
WG_EASY_READ_ONLY | optional | Set to true to register only the read tools (default: false) |
WG_EASY_ALLOW_TOOLS | optional | Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools) |
WG_EASY_DENY_TOOLS | optional | 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.0Add 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.0Add 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
- 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.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_clients, get_client, create_client, update_client, enable_client, disable_client, delete_client, get_client_config, ….
- 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