/tailscale:tailscalefrom tailscale
Queries and manages Tailscale networks: list devices, tailnet status, ACL policy, DNS settings, tailnet members, authorize or delete devices via the tailscale-rmcp MCP server.
Ships in tailscale. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bridge to the Tailscale REST API (https://api.tailscale.com/api/v2) via the
tailscale-rmcp MCP server. Exposes a single tailscale MCP tool with action
dispatch. Use the three tiers below in order: MCP first, CLI second, raw REST
only as a last resort.
Tool: tailscale
Required parameter: action (string)
These require only action; no id needed.
| Action | What it returns |
|---|---|
devices | All devices in the tailnet — nodeId, hostname, addresses (IPs), os, user, lastSeen, authorized, online |
keys | API keys — id, expires, capabilities, description |
acl | ACL policy as parsed JSON — acls, groups, tagOwners, hosts, etc. |
dns | Aggregated DNS info — nameservers, searchpaths, preferences (MagicDNS status) |
users | Tailnet members — loginName, displayName, role, status |
help | Full built-in documentation |
idPass the device's stable node ID (starts with n) or legacy numeric ID.
| Action | id | What it returns |
|---|---|---|
device | required | Single device — same fields as devices plus clientVersion, updateAvailable, blocksIncomingConnections, enabledRoutes, advertisedRoutes |
device_routes | required | Subnet routes — advertisedRoutes and enabledRoutes arrays |
| Action | id | Effect |
|---|---|---|
authorize_device | required | Approves the device so it can join the tailnet; returns {"ok": true} |
delete_device permanently removes a device. It requires both:
confirm=True in the callTAILSCALE_ALLOW_DESTRUCTIVE=true on the serverIf either is missing the server returns a clear error — no device is touched.
tailscale(action="delete_device", id="nXXXXXXXXXXXXX", confirm=True)
# → {"ok": true, "device_id": "nXXX...", "action": "deleted"}
# List all devices
tailscale(action="devices")
# Inspect a single device
tailscale(action="device", id="nXXXXXXXXXXXXX")
# Check subnet routes
tailscale(action="device_routes", id="nXXXXXXXXXXXXX")
# List API keys
tailscale(action="keys")
# Read the ACL policy
tailscale(action="acl")
# DNS nameservers + search paths + MagicDNS in one call
tailscale(action="dns")
# Tailnet members
tailscale(action="users")
# Approve a pending device
tailscale(action="authorize_device", id="nXXXXXXXXXXXXX")
# Remove a device (both guards must be satisfied)
tailscale(action="delete_device", id="nXXXXXXXXXXXXX", confirm=True)
Binary: /home/jmagar/workspace/tailscale-rmcp/target/release/rtailscale
All commands accept --json / -j for machine-readable JSON output.
rtailscale devices
rtailscale device <id>
rtailscale routes <id>
rtailscale keys
rtailscale acl
rtailscale dns
rtailscale users
rtailscale authorize <id>
rtailscale delete-device <id> --confirm
Base URL: https://api.tailscale.com/api/v2
Auth: Authorization: Bearer $TAILSCALE_API_KEY
Tailnet: $TAILSCALE_TAILNET (use - for personal accounts, or your org domain e.g. example.com)
# List all devices
curl "https://api.tailscale.com/api/v2/tailnet/$TAILSCALE_TAILNET/devices" \
-H "Authorization: Bearer $TAILSCALE_API_KEY"
# Single device
curl "https://api.tailscale.com/api/v2/device/$DEVICE_ID" \
-H "Authorization: Bearer $TAILSCALE_API_KEY"
# Device subnet routes
curl "https://api.tailscale.com/api/v2/device/$DEVICE_ID/routes" \
-H "Authorization: Bearer $TAILSCALE_API_KEY"
# ACL policy — must request JSON to avoid HuJSON format
curl "https://api.tailscale.com/api/v2/tailnet/$TAILSCALE_TAILNET/acl" \
-H "Authorization: Bearer $TAILSCALE_API_KEY" \
-H "Accept: application/json"
# DNS nameservers
curl "https://api.tailscale.com/api/v2/tailnet/$TAILSCALE_TAILNET/dns/nameservers" \
-H "Authorization: Bearer $TAILSCALE_API_KEY"
# DNS search paths
curl "https://api.tailscale.com/api/v2/tailnet/$TAILSCALE_TAILNET/dns/searchpaths" \
-H "Authorization: Bearer $TAILSCALE_API_KEY"
# DNS preferences (MagicDNS on/off, etc.)
curl "https://api.tailscale.com/api/v2/tailnet/$TAILSCALE_TAILNET/dns/preferences" \
-H "Authorization: Bearer $TAILSCALE_API_KEY"
# Tailnet users
curl "https://api.tailscale.com/api/v2/tailnet/$TAILSCALE_TAILNET/users" \
-H "Authorization: Bearer $TAILSCALE_API_KEY"
# API keys
curl "https://api.tailscale.com/api/v2/tailnet/$TAILSCALE_TAILNET/keys" \
-H "Authorization: Bearer $TAILSCALE_API_KEY"
# Authorize a device (write)
curl -X POST "https://api.tailscale.com/api/v2/device/$DEVICE_ID/authorized" \
-H "Authorization: Bearer $TAILSCALE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"authorized":true}'
# Delete a device (irreversible — confirm with the user first)
curl -X DELETE "https://api.tailscale.com/api/v2/device/$DEVICE_ID" \
-H "Authorization: Bearer $TAILSCALE_API_KEY"
n (e.g. nXXXXXXXXXXXXX). Legacy
numeric IDs are also accepted everywhere id is required.-: the hyphen is a valid tailnet value meaning "personal account".
The server resolves it from TAILSCALE_TAILNET.dns aggregates three REST endpoints (nameservers, searchpaths,
preferences) into one MCP call — no need to call them separately.Accept: application/json because the raw API returns HuJSON
(a JSON superset with comments). The MCP server sets this header automatically;
you only need it when falling back to raw curl.TAILSCALE_ALLOW_DESTRUCTIVE=true AND confirm=true independently. An error
from either means the device was not deleted.authorize_device (write) and
delete_device (destructive).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
tailscale@dendrite is listed by dinglebear-ai/dendrite — review the source before installing
npx claudepluginhub dinglebear-ai/dendrite --plugin tailscale