← Back to directory
T

Tailscale MCP Server

Community
Manage and monitor Tailscale networks through MCP.
Category
Other #465 of 678
Stars
★ 157 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js
Credentials
API key / credential required
License
MIT
Last commit
Tools
9
47FMRS · D

The manifest lists version 1.3.0, stdio and HTTP transports, and risk-gated tool access. The README provides a Claude Desktop stdio configuration example; the tool list here includes tools explicitly named in the README.

Strongest · Setup experience 12/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
10/20
Maintenance
8/20
Documentation
9/20
Setup experience
12/20
Why each score
Reliability 8/20
The README and manifest describe stdio/HTTP transports, CLI and REST API tools, and risk-level configuration, but provide no verifiable evidence for the initialization handshake, tool-list implementation, error handling, or dependency behavior. The README tool list also does not fully match the ACL, DNS, and key-management capabilities described in the manifest. No verifiable CI or key-path test evidence is supplied, so the static-calibration cap applies and uncertainty lowers the score.
Security and permissions 10/20
The manifest says read-only tools are allowed by default, while write and admin operations require a higher risk level; HTTP mode requires a bearer token and defaults to loopback binding. These are visible access controls. The material does not say whether dangerous operations require per-action confirmation or explain credential storage, data boundaries, and external request flows, so least privilege is not established. No evidence triggers a red line.
Maintenance 8/20
The material identifies an MIT license and version 1.3.0, and says the repository is not archived with 2 open issues. It provides no commit or release history, dependency-update evidence, maintainer response record, or security-reporting channel, so ongoing maintenance cannot be established.
Documentation 9/20
The README provides npm and Docker installation paths, a Claude Desktop configuration example, environment-variable guidance, and summaries of some tools. It lacks per-tool parameter details, limits, troubleshooting guidance, and cost information. The manifest capabilities do not fully match the README tool list, LOG_LEVEL examples use different formats, and the support links remain placeholders, so documentation gaps reduce the score.
Setup experience 12/20
The README gives npx, global-install, and Docker paths, plus a Claude Desktop example; the manifest adds authentication, transport, and HTTP configuration details. The setup path is generally clear, but API operations require credentials and tailnet information, HTTP deployments need a bearer token, and platform compatibility and end-to-end connection evidence are limited.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkChanges third-party account data

Best for

  • Administrators and automation workflows that need to inspect or manage a Tailscale network from an MCP client.
  • Users who want to run locally over stdio or deploy with HTTP transport.

Not for

  • Users who need to make changes while keeping access read-only; the default risk level permits only non-mutating operations.
  • Environments that cannot provide Tailscale API credentials but need API-backed operations.

Required permissions

  • API operations require Tailscale OAuth client ID and secret, or the fallback TAILSCALE_API_KEY, plus the applicable Tailnet setting.
  • CLI-backed tools require the local Tailscale CLI; the manifest identifies network status, connect, disconnect, ping, and version queries as CLI-backed.
  • TAILSCALE_ALLOWED_TOOL_RISK defaults to read; write enables ACL, DNS, route, and tag mutations, while admin also enables device deletion, connect/disconnect, and auth key management.
  • HTTP transport requires MCP_HTTP_BEARER_TOKEN; the default bind host is 127.0.0.1.

Risks and side effects

  • Raising the risk level can permit ACL, DNS, route, and tag changes; admin can also permit device deletion, network connect/disconnect, and auth key management.
  • If HTTP mode is exposed to a network, configure a sufficiently long bearer token and carefully set the bind host and allowed hosts.
  • Incorrect Tailnet configuration or overly privileged credentials may target the wrong network or allow unintended administrative changes.

Setup

Before you start

Runtime:Node.js

TAILSCALE_API_KEY optionalsecret Legacy Tailscale API key; obtain it from the Keys settings in the Tailscale admin console. Used as a fallback when OAuth credentials are not provided.
TAILSCALE_OAUTH_CLIENT_SECRET optionalsecret Tailscale OAuth client secret; required when a client ID is set.
MCP_HTTP_BEARER_TOKEN optionalsecret Authentication token for HTTP transport; required in HTTP mode and must be at least 32 characters.
Other optional settings (11)
TAILSCALE_TAILNET optional Tailnet name; enter your organization or tailnet name, or use `-` for the authenticated user's default tailnet.
TAILSCALE_OAUTH_CLIENT_ID optional Tailscale OAuth client ID; use it together with `TAILSCALE_OAUTH_CLIENT_SECRET`.
TAILSCALE_ALLOWED_TOOL_RISK optional Maximum permitted tool risk level; defaults to `read`. `write` enables some mutations, and `admin` also enables destructive operations.
TAILSCALE_CLI_PATH optional Path to the local Tailscale CLI executable; required for CLI-backed tools and defaults to `tailscale`.
TAILSCALE_API_BASE_URL optional Base URL for the Tailscale REST API; defaults to `https://api.tailscale.com`.
MCP_TRANSPORT optional Transport mode; defaults to `stdio`. HTTP mode requires `MCP_HTTP_BEARER_TOKEN`.
MCP_HTTP_BIND_HOST optional Host address for the HTTP server to bind to; defaults to `127.0.0.1`.
MCP_HTTP_PORT optional Port for the HTTP server; defaults to `3000`.
MCP_ALLOWED_HOSTS optional Comma-separated additional Host header values allowed in HTTP mode.
LOG_LEVEL optional Log verbosity; defaults to `info`.
MCP_SERVER_LOG_FILE optional Optional log file path; logs go to stderr when unset.

Add the provided JSON configuration to Claude Desktop's MCP configuration. Configure Tailscale credentials and the Tailnet before use; the example uses TAILSCALE_API_KEY and TAILSCALE_TAILNET. The server also supports OAuth client credentials, which the manifest marks as preferred, with an API key as the fallback.

claude_desktop_config.json
{"mcpServers":{"tailscale":{"command":"npx","args":["--package=@hexsleeves/tailscale-mcp-server","tailscale-mcp-server"],"env":{"TAILSCALE_API_KEY":"your-api-key-here","TAILSCALE_TAILNET":"your-tailnet-name"}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "tailscale": {
      "command": "npx",
      "args": [
        "--package=@hexsleeves/tailscale-mcp-server",
        "tailscale-mcp-server"
      ],
      "env": {
        "TAILSCALE_API_KEY": "your-api-key-here",
        "TAILSCALE_TAILNET": "your-tailnet-name"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.tailscale]
command = "npx"
args = ["--package=@hexsleeves/tailscale-mcp-server", "tailscale-mcp-server"]

[mcp_servers.tailscale.env]
TAILSCALE_API_KEY = "your-api-key-here"
TAILSCALE_TAILNET = "your-tailnet-name"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add tailscale -e TAILSCALE_API_KEY=your-api-key-here -e TAILSCALE_TAILNET=your-tailnet-name -- npx --package=@hexsleeves/tailscale-mcp-server tailscale-mcp-server

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Start the server and confirm that `list_devices` and `get_network_status` appear in your MCP client's tool list. Call `get_version` or `list_devices` and check that it returns Tailscale information.

Troubleshooting

  1. Check that API credentials and the Tailnet setting are correct; OAuth client ID and secret must be supplied together.
  2. If CLI-backed tools fail, check that the Tailscale CLI is installed and that TAILSCALE_CLI_PATH points to the correct binary.
  3. If mutation tools are unavailable, check whether TAILSCALE_ALLOWED_TOOL_RISK is set to the required level.
  4. For HTTP connection problems, check MCP_TRANSPORT, the bearer token, bind host, port, and allowed-host settings.

Things to try

Once connected, you can ask your AI assistant things like:

  • List the devices on my Tailscale network.
  • Show the current network status and Tailscale version.
  • Connect to Tailscale and ping a peer device.

Tools 9

list_devices read-only
Lists devices in the Tailscale network.
device_action writes
Authorizes, deauthorizes, deletes, or expires the key of a specified device.
manage_routes writes
Enables or disables routes for devices.
get_network_status read-only
Gets the current network status through the Tailscale CLI.
connect_network writes
Connects to the Tailscale network.
disconnect_network writes
Disconnects from the Tailscale network.
ping_peer read-only
Pings a peer device.
get_version read-only
Gets Tailscale version information.
Show 1 more tools
get_tailnet_info read-only
Gets detailed Tailnet information.

Use cases

Inspect devices and network information in a Tailnet.
Manage device authorization, routes, and network connections through an MCP client.
Check local Tailscale status, version, and peer connectivity.

Supported clients

Claude Desktop

Listed from the project's documentation, not tested by this site.

Overview

Tailscale MCP Server connects Tailscale CLI and REST API operations to MCP. It provides device and route management, network status checks, connection controls, and peer connectivity testing. The manifest also mentions ACL, DNS, key administration, and exit node control, but the README does not list tool identifiers for those capabilities.

Similar servers

Source revision 2a50f9175a66 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/tailscale-mcp.svg)](https://followmcp.com/en/servers/tailscale-mcp)