Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Tailscale MCP

MCP server by TMHSDigital Community

Gives AI assistants structured access to the local Tailscale daemon for tailnet status, SSH config generation, Serve and Funnel port sharing, and ping latency matrices. Built for agents and developer tools that work on a Tailscale network.

  • Score 64
  • 1 stars
  • 60 a week
  • NOASSERTION
  • Updated

Install Tailscale MCP

Built from the published package, never by AI.

claude mcp add tailscale-mcp -- npx -y @tmhs/tailscale-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Tailscale MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the tailscale-mcp block.

About

Tailscale MCP is an MCP server that gives AI agents structured, safe access to the local Tailscale daemon over stdio. It shells out to the tailscale CLI and never handles auth keys or tailnet credentials. Its tools cover tailnet status, SSH config generation, port sharing through Serve and Funnel, and ping latency matrices.

Errors come back as structured results with a code and remedy instead of throwing. Serve sharing stays tailnet-only by default, and public Funnel access needs TAILSCALE_MCP_ALLOW_FUNNEL=1. A read-only mode removes the share tools. It requires Node 22 or later and a logged-in Tailscale client, and is built for agents and developer tools working with a tailnet.

Written from the project's README and checked against it.

Tools it gives your assistant

  • tailnet_statusReturns a trimmed view of the self node and peers, including online flags and tags.
  • share_statusReports active Serve and Funnel sessions as structured endpoints with a public flag.
  • ping_allPings peers concurrently and reports reachability, latency and whether the path is direct or relayed.
  • generate_ssh_configEmits ssh-config Host blocks for tailnet nodes. Dry-run by default, with an optional write.
  • share_portShares a local port via Tailscale Serve, tailnet-only by default, or via Funnel when allowed.
  • stop_shareStops a named share, the shares made this session, or the entire serve and funnel configuration.

What you need

  • Node.js 22 or later
  • An installed, logged-in Tailscale client
  • Windows, macOS or Linux
  • Serve and Funnel enabled per tailnet in the admin console for sharing
SettingNeededWhat it is
TAILSCALE_MCP_ALLOW_FUNNELEnvironment variableOptionalSet to 1 to let share_port expose a port to the open internet with Funnel (off by default)
TAILSCALE_MCP_READONLYEnvironment variableOptionalSet to 1 for monitoring only: no share tools, and no SSH config writes
TAILSCALE_MCP_BINEnvironment variableOptionalPath to the tailscale binary if it is not on PATH or in the default install location
TAILSCALE_MCP_TIMEOUT_MSEnvironment variableOptionalPer-call timeout for tailscale commands in milliseconds (default 10000)

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Show my tailnet status and which peers are online.
  • Write SSH config entries for my tailnet nodes.
  • Check ping latency to all my online peers.

Good to know

  • Funnel exposes ports to the open internet and is off unless TAILSCALE_MCP_ALLOW_FUNNEL=1 is set.
  • TAILSCALE_MCP_READONLY=1 removes share_port and stop_share.
  • Serve and Funnel must be enabled per tailnet in the admin console.
  • On Linux, Serve and Funnel changes need root or the configured operator.

Security check

C
  • Asks for administrator rights (sudo)In README.md: sudo

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Tailscale MCP

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Tailscale MCP: common questions

Does Tailscale MCP handle auth keys or tailnet credentials?

No. The server never handles auth keys or tailnet credentials, because the CLI talks to the already-authenticated local daemon.

Is port sharing public by default?

No. share_port is tailnet-only unless public is set to true and Funnel is allowed with TAILSCALE_MCP_ALLOW_FUNNEL=1.

Does generate_ssh_config change my SSH files?

Not by default, since it is a dry run. With write set to true it writes ~/.ssh/tailscale_dev_config, or edits ~/.ssh/config between tailscale-mcp markers when the user_ssh_config target is used.

How do I install Tailscale MCP?

In Claude Code run claude mcp add tailscale-mcp -- npx -y @tmhs/tailscale-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Tailscale MCP the official server?

Tailscale MCP is a community project by TMHSDigital, not verified by a company domain.

Is Tailscale MCP free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is Tailscale MCP safe to use?

It scores 64 of 100. Grades: maintenance A, licence F, quality C. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.

What are alternatives to Tailscale MCP?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Tailscale MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Tailscale MCP Install

Add to stack

Loading.