tailnet-agent-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools for devices on the Tailscale tailnet this machine is connected to (configured tailnet: any). Start with tailnet_status to list devices, then device_info / ping_device / check_ports / http_probe. run_command and file transfer only work for devices with exec=true and an ssh_user in /root/.config/tailnet-agent-mcp/config.toml; if a tool says access isn't configured, ask the user which account to use rather than guessing. If Tailscale SSH returns a check URL, show it to the user (or approve it in the browser if they allowed that) and retry.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| tailnet_statusB | List devices on the tailnet: name, IP, OS, owner, online/last seen, connection path, Tailscale SSH availability and whether this server has exec access configured. |
| device_infoA | Full details for one device (hostname, MagicDNS name or tailnet IP): addresses, OS, owner/tags, online state, endpoints, key expiry, traffic, Tailscale SSH, and this server's configured access for it. |
| ping_deviceA | Tailscale-level ping (works even if the device firewalls ICMP). Shows whether the path is direct or via a DERP relay and the latency. |
| check_portsB | TCP-connect check for ports on a device (default: a common set - ssh, http(s), smb, rdp, vnc, winrm, databases...). Reports open / closed / filtered. |
| http_probeB | HTTP GET a web service on a device; returns status, key headers, page , TLS certificate subject/issuer/expiry (for https) and the start of the body. Read-only. |
| tailscale_healthA | This machine's Tailscale state: active profile/tailnet, own IPs, health warnings, and a netcheck (NAT type, UDP, nearest DERP relays). |
| run_commandB | Run a shell command on a device over SSH as its configured ssh_user. Requires exec=true for the device in the config. Windows devices need OpenSSH server enabled. |
| push_fileB | Copy a local file or directory to a device (scp -r). Requires exec=true. |
| pull_fileB | Copy a file or directory from a device to this machine (scp -r). Requires exec=true. |
| access_configA | Show the config file path and per-device access settings (no secrets are stored there - auth is Tailscale SSH identity or your SSH keys). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Most tools target a distinct action+resource (ping vs port check vs HTTP probe vs file transfer) and descriptions clarify the boundaries. Minor overlap: tailnet_status (tailnet-wide listing) vs tailscale_health (local node state) vs device_info (single device) could be momentarily confused, and access info appears in both device_info and access_config.
All names are snake_case, which helps, but the conventions are mixed: verb_noun forms (ping_device, check_ports, run_command, push_file, pull_file) sit alongside noun phrases (tailnet_status, device_info, tailscale_health, access_config) and an ambiguous 'http_probe'.
Ten tools is well within the sweet spot and each one maps to a clear, non-redundant capability: discovery, inspection, connectivity, port/web probing, health, exec, and file transfer. Nothing feels padded or missing from a count perspective.
Covers the practical lifecycle for a tailnet agent: enumerate devices, inspect one, test reachability at ICMP/TCP/HTTP layers, check local health/netcheck, and perform remote exec and file copy with a config introspection tool. Gaps are minor — no tailnet administration (key expiry reauth, node removal, ACL/DNS inspection) and no traceroute or DNS resolution check, but agents can work around these.