You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An MCP server that gives AI agents structured access to Tailscale tailnets. Built for the Model Context Protocol with security visibility and token efficiency as first-class design goals.
Why this exists
Tailscale exposes a clean REST API (v2) for managing devices, ACL policies, DNS, auth keys, users, and audit logs. This MCP wraps it with the guardrails that automated agents need:
Security-first tool set — 17 tools focused on what network security agents actually need: device inventory, key expiry auditing, ACL review, route approval, DNS hygiene. Not a thin wrapper around every endpoint.
Token-efficient output — compact pipe-delimited format. A 20-device tailnet in ~40 tokens per device. Devices flagged with KEY_EXPIRY_OFF, KEY_EXPIRED, UPDATE_AVAILABLE, UNAUTHORIZED, OFFLINE at a glance.
Key expiry approaching — ts_devices flags KEY_EXPIRY_OFF and expired keys for proactive rotation
Unauthorized devices — ts_devices flags UNAUTHORIZED for approval workflows
Route approval — ts_device_routes shows unapproved subnets for security review
ACL changes — ts_audit_log tracks policy updates for compliance auditing
Stale devices — ts_devices shows OFFLINE with last-seen time for cleanup workflows
Development
make install-dev # Install with dev + test dependencies
make test# Unit tests (mocked, no API access needed)
make check # Lint + format + type-check
make run # Start MCP server (stdio)