tailscale-blade-mcp
v0.9.0MCP server for Tailscale network monitoring and security — devices, ACLs, DNS, keys, users, audit logs
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ts_info Ts Info
Health check: device counts, online/offline, key expiry warnings, updates, tailnet settings, write gate.
ts_devices Ts Devices
List all devices: hostname, OS, IP, online/offline, key expiry, tags, update status. Optional ``scope`` arg filters devices by DD-278 scope-tag mapping (configurable via TAILSCALE_SCOPE_{INFRASTRUCTURE,PERSONAL,HOME}_TAGS). Output includes a Track 3 ``_meta`` envelope as a JSON tail line.
| Parameter | Type | Description |
|---|---|---|
scope | DD-278 scope filter: 'infrastructure' | 'personal' | 'home'. Filtered client-side after fetch (Tailscale REST API v2 has no server-side tag filter primitive). 'public' is unsupported. |
ts_device Ts Device
Full detail for a single device: addresses, OS, client version, key status, tags, user. Single-record fetch — server-side filter is ``device_id``-shaped, not tag-shaped. The ``_meta`` envelope is emitted for audit-surface uniformity; ``scope=`` is intentionally NOT accepted here because a scope filter on a single-device-detail call is semantically incoherent.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device nodeId (from ts_devices) |
ts_device_routes Ts Device Routes
Routes for a device: advertised subnets, approved/unapproved status. Emits a DD-338 ``_meta`` envelope (``audit_surface: structured``) disclosing the ``device_id=`` server-side discrimination + the routes-row cardinality (advertised + enabled, union).
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device nodeId (from ts_devices) |
ts_dns Ts Dns
DNS configuration: nameservers, MagicDNS status, search paths, split DNS rules.
ts_acl Ts Acl
ACL policy summary: groups, rules, SSH rules, tag owners. Shows who can talk to whom.
ts_acl_validate Ts Acl Validate
Validate an ACL policy without applying it. Returns errors or 'passed'.
| Parameter | Type | Description |
|---|---|---|
policy_json * | string | ACL policy as JSON string to validate |
ts_acl_set Ts Acl Set
Apply (POST) a full ACL policy to the tailnet. Requires TAILSCALE_WRITE_ENABLED=true. Always validates the policy first and refuses to apply on validation failure. By default uses optimistic concurrency: the current ETag is sent as ``If-Match`` so a concurrent admin edit fails with a clear re-fetch message instead of silently clobbering. Pass ``allow_overwrite_concurrent=true`` to bypass the guard. Requires a token with ACL policy-file WRITE scope (a read-only key 403s). Emits a DD-338 ``_meta`` envelope (``audit_surface: structured``).
| Parameter | Type | Description |
|---|---|---|
policy_json * | string | Full ACL policy as a JSON string. Replaces the ENTIRE policy file (not a patch). |
allow_overwrite_concurrent | boolean | Skip the If-Match optimistic-concurrency guard and overwrite even if the ACL changed since it was read. Dangerous — defaults to false. |
if_match | ETag from a prior read for optimistic concurrency. If omitted, the current ETag is fetched automatically and used as the guard. Ignored when allow_overwrite_concurrent=true. |
ts_keys Ts Keys
List auth keys: ID, description, reusable/ephemeral/preauth flags, tags, expiry. Optional ``scope`` arg filters keys by DD-278 scope-tag mapping. Output includes a Track 3 ``_meta`` envelope as a JSON tail line.
| Parameter | Type | Description |
|---|---|---|
scope | DD-278 scope filter: 'infrastructure' | 'personal' | 'home'. Filtered client-side after fetch — matches the key's capabilities.devices.create.tags against the scope tag set. |
ts_users Ts Users
List users: name, login, role, status, device count, online/last seen. Sorted by case-folded loginName ascending (numeric id tie-break).
ts_webhooks Ts Webhooks
List configured webhooks: endpoint URL, event subscriptions, created date. Sorted by endpointId ascending.
ts_audit_log Ts Audit Log
Configuration audit log: who changed what, when. Recent entries first. Optional ``scope`` arg filters audit entries to those whose ``target`` is a device with a tag in the scope set. Requires a secondary fetch of the device-tag map (uncached at v1). Entries with non-device targets are excluded when ``scope`` is provided.
| Parameter | Type | Description |
|---|---|---|
count | integer | Max entries returned, most-recent-first (default 50) |
days | integer | Lookback window in days (default 7); wider windows risk the 30s API timeout |
scope | DD-278 scope filter: 'infrastructure' | 'personal' | 'home'. Filtered client-side — audit-log entries don't carry tags, so the filter resolves each entry's target.id against a secondary device-tag m… |
ts_authorize_device Ts Authorize Device
Authorize or deauthorize a device. Requires TAILSCALE_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device nodeId (from ts_devices) |
authorized | boolean | True to authorize, false to deauthorize |
ts_set_tags Ts Set Tags
Set ACL tags on a device. Replaces existing tags. Requires TAILSCALE_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device nodeId (from ts_devices) |
tags * | array | ACL tags to set (e.g. ['tag:server', 'tag:prod']) |
ts_expire_device Ts Expire Device
Force key expiry on a device — it must re-authenticate. Requires TAILSCALE_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device nodeId (from ts_devices) |
ts_approve_routes Ts Approve Routes
Approve subnet routes on a device. Requires TAILSCALE_WRITE_ENABLED=true. Default (``replace=false``): additive — reads the device's currently enabled routes first and approves the union, so previously approved routes are preserved. ``replace=true``: raw Tailscale set-routes REPLACE semantics — the enabled set becomes exactly ``routes``; any currently enabled route not listed is de-approved, which can sever subnet connectivity. Use only when you intend to remove approvals.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device nodeId (from ts_devices) |
routes * | array | Subnet routes to approve (e.g. ['192.168.1.0/24']) |
replace | boolean | Replace the device's entire enabled-route set with exactly `routes` instead of additively approving. WARNING: replace=true de-approves every currently-enabled route not listed — this can disconnect… |
ts_create_key Ts Create Key
Create a new auth key. Requires TAILSCALE_WRITE_ENABLED=true.
| Parameter | Type | Description |
|---|---|---|
description | string | Description for the auth key |
ephemeral | boolean | Devices using this key are ephemeral (auto-removed) |
expiry_seconds | integer | Key lifetime in seconds (default 86400 = 24h) |
preauthorized | boolean | Devices are pre-approved (no manual auth needed) |
reusable | boolean | Allow key to be used multiple times |
tags | ACL tags for devices using this key |
ts_delete_key Ts Delete Key
Revoke an auth key. Requires TAILSCALE_WRITE_ENABLED=true and confirm=true.
| Parameter | Type | Description |
|---|---|---|
key_id * | string | Auth key ID to revoke (from ts_keys) |
confirm | boolean | Must be true to confirm — revokes the key permanently |
ts_delete_device Ts Delete Device
Delete a device from the tailnet. Requires TAILSCALE_WRITE_ENABLED=true and confirm=true.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Device nodeId (from ts_devices) |
confirm | boolean | Must be true to confirm — removes device from tailnet |