Skip to content
VS Code

Tailscale MCP for VS Code

io.github.tmhsdigital/tailscale-mcp

Let AI agents see and use your tailnet: status, SSH config, Serve/Funnel sharing, ping matrix

client:VS Code transport:stdio runtime:npm

Install Tailscale MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "tailscale-mcp-allow-funnel",
      "description": "TAILSCALE_MCP_ALLOW_FUNNEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "tailscale-mcp-readonly",
      "description": "TAILSCALE_MCP_READONLY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "tailscale-mcp-bin",
      "description": "TAILSCALE_MCP_BIN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "tailscale-mcp-timeout-ms",
      "description": "TAILSCALE_MCP_TIMEOUT_MS",
      "password": true
    }
  ],
  "servers": {
    "tailscale-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tmhs/tailscale-mcp"
      ],
      "env": {
        "TAILSCALE_MCP_ALLOW_FUNNEL": "${input:tailscale-mcp-allow-funnel}",
        "TAILSCALE_MCP_READONLY": "${input:tailscale-mcp-readonly}",
        "TAILSCALE_MCP_BIN": "${input:tailscale-mcp-bin}",
        "TAILSCALE_MCP_TIMEOUT_MS": "${input:tailscale-mcp-timeout-ms}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Tailscale MCP in other clients