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.
Install Tailscale MCP
Built from the published package, never by AI.
claude mcp add tailscale-mcp -- npx -y @tmhs/tailscale-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"tailscale-mcp": {
"args": [
"-y",
"@tmhs/tailscale-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"tailscale-mcp": {
"args": [
"-y",
"@tmhs/tailscale-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"tailscale-mcp": {
"args": [
"-y",
"@tmhs/tailscale-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add tailscale-mcp -- npx -y @tmhs/tailscale-mcp{
"mcpServers": {
"tailscale-mcp": {
"args": [
"-y",
"@tmhs/tailscale-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add tailscale-mcp npx -y @tmhs/tailscale-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
| Setting | Needed | What it is |
|---|---|---|
TAILSCALE_Environment variable | Optional | Set to 1 to let share_port expose a port to the open internet with Funnel (off by default) |
TAILSCALE_Environment variable | Optional | Set to 1 for monitoring only: no share tools, and no SSH config writes |
TAILSCALE_Environment variable | Optional | Path to the tailscale binary if it is not on PATH or in the default install location |
TAILSCALE_Environment variable | Optional | Per-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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
