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

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

list_clients List WireGuard clients

List all WireGuard clients of the wg-easy instance, including their status (enabled/expired), addresses and traffic statistics.

ParameterTypeDescription
filterstringOptional name filter (substring match)
sortstringSort by name, ascending or descending

get_client Get WireGuard client

Get the full details of a single WireGuard client. The private key and pre-shared key are redacted. They are not missing from the instance — wg-easy returns them here in full, and this server removes them, because a key in the conversation is a key in the transcript. Use get_client_config or get_client_qrcode when the key is genuinely wanted: handing a peer its configuration is what those two are for.

ParameterTypeDescription
clientId *Numeric ID of the client (see list_clients)

create_client Create WireGuard client

Create a new WireGuard client. Keys and IP addresses are generated by wg-easy. Returns the new client ID. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.

ParameterTypeDescription
name *stringDisplay name of the new client
confirm_tokenstringThe token from this tool’s previous, unconfirmed response.
expiresAtstringOptional expiry date as ISO string (e.g. 2026-12-31). Omit for no expiry.

update_client Update WireGuard client

Update a WireGuard client. Only the provided fields are changed; all other settings are preserved. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.

ParameterTypeDescription
clientId *Numeric ID of the client (see list_clients)
allowedIpsCIDRs routed through the tunnel on the client side, or null to use the server default
confirm_tokenstringThe token from this tool’s previous, unconfirmed response.
dnsDNS servers for the client, or null to use the server default
enabledbooleanEnable or disable the client
expiresAt
ipv4AddressstringIPv4 address of the client
ipv6AddressstringIPv6 address of the client
mtuintegerMTU for the client (1280–9000)
namestringNew display name
persistentKeepaliveintegerPersistent keepalive interval in seconds (0 = off)
serverAllowedIpsarrayAdditional CIDRs the server routes to this client

enable_client Enable WireGuard client

Enable a WireGuard client so it can connect again. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.

ParameterTypeDescription
clientId *Numeric ID of the client (see list_clients)
confirm_tokenstringThe token from this tool’s previous, unconfirmed response.

disable_client Disable WireGuard client

Disable a WireGuard client. The client keeps its configuration but can no longer connect.

ParameterTypeDescription
clientId *Numeric ID of the client (see list_clients)

delete_client Delete WireGuard client

Permanently delete a WireGuard client. This is irreversible: the client loses VPN access and its keys cannot be restored. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.

ParameterTypeDescription
clientId *Numeric ID of the client (see list_clients)
confirm_tokenstringThe token from this tool’s previous, unconfirmed response.

get_client_config Get WireGuard client configuration

Get the WireGuard configuration file (wg .conf format) for a client. SENSITIVE: the output contains the client private key — treat it as a secret and do not repeat it unnecessarily.

ParameterTypeDescription
clientId *Numeric ID of the client (see list_clients)

get_client_qrcode Get WireGuard client QR code

Get the client configuration as a QR code (SVG markup) for scanning with the WireGuard mobile app. SENSITIVE: the QR code encodes the client private key — treat it as a secret.

ParameterTypeDescription
clientId *Numeric ID of the client (see list_clients)

get_server_info Get wg-easy server info

Get information about the wg-easy instance: release/update status, general settings and the WireGuard interface configuration. Secret fields (private keys, passwords) are redacted.