Skip to content

Menu

Tailscale Network MCP Server logo

Tailscale Network MCP Server

Published · Updated

At a glance

GitHub repository
HexSleeves/tailscale-mcp
Watch out for
A community project, not maintained by Tailscale.

tailscale-mcp, from HexSleeves, is a community MCP server for Tailscale. Tailscale does not publish an official MCP server, so this community project is one of the available options. It combines two ways of working with Tailscale: the Tailscale CLI on the machine where it runs, and the Tailscale REST API for the tailnet as a whole.

The tools cover device and network management. list_devices lists every device in the tailnet, and device_action authorises, deauthorises, deletes or expires the key of a specific device. manage_routes enables or disables subnet routes. get_network_status reads the local network status from the CLI, connect_network and disconnect_network bring the local machine on or off the tailnet, ping_peer checks connectivity to another device, and get_tailnet_info and get_version report on the tailnet and installed version. The README's feature list also mentions ACLs and tags.

That combination makes it handy for troubleshooting: an agent can check whether a device is online, ping it, look at routes and report back. But device_action can delete devices and expire keys, which can lock people out, so the API key you give it deserves care. Tailscale API access tokens can be scoped and set to expire, which is worth using here.

How it connects

Your AI app

An assistant or agent that supports MCP

Tailscale Network MCP Server

Runs as

  • npx (Node.js)
  • Docker

Gives the agent

  • Device inventory
  • Device actions
  • Routes
  • Local network
  • Tailnet information

Tailscale

Signs in with

  • API key
Your AI app talks to Tailscale Network MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Device inventory
list_devices shows every device in the tailnet with its details.
Device actions
device_action authorises, deauthorises, deletes or expires the key of a device.
Routes
manage_routes enables or disables advertised subnet routes for a device.
Local network
get_network_status, connect_network, disconnect_network and ping_peer use the local Tailscale CLI.
Tailnet information
get_tailnet_info and get_version report on the tailnet and installed version.

Setting it up

Create a Tailscale API access token in the admin console, scoped as narrowly as possible and with an expiry. Run the server with npx -y @hexsleeves/tailscale-mcp-server, or the Docker image hexsleeves/tailscale-mcp-server, with TAILSCALE_API_KEY and TAILSCALE_TAILNET in its environment. CLI-based tools need the tailscale command installed on the machine where the server runs. Add it to Claude Desktop or another client with that command and environment.

Run in a terminal
claude mcp add tailscale -- npx -y @hexsleeves/tailscale-mcp-server

Runs the @hexsleeves/tailscale-mcp-server package from npm. Add any API keys, environment variables or extra arguments the setup notes above list. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Checking which devices are offline in the tailnet
  • Pinging a server over Tailscale to diagnose connectivity
  • Approving a new device or subnet route after setting it up
  • Getting an overview of the tailnet's devices and versions

Limitations and things to watch

  • A community project, not maintained by Tailscale.
  • device_action can delete devices and expire keys, affecting real users.
  • CLI tools act on the machine the server runs on, which may not be the one you mean.
  • An unscoped API token gives broad control over the tailnet.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…