# Tailscale MCP Server

> Manage and monitor Tailscale networks through MCP.

- **URL**: https://followmcp.com/en/servers/tailscale-mcp
- **Category**: Other
- **Origin**: Community
- **Stars**: 157
- **FMRS Score**: 47/100 (Grade D)
- **Source**: https://github.com/HexSleeves/tailscale-mcp
- **Transports**: stdio (local process), Streamable HTTP
- **Runtimes**: Node.js
- **Auth**: API key / credential required

## 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.

## 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
- 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.

## Client config (JSON)
```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"}}}}
```

## Tools (9)
- `list_devices`: Lists devices in the Tailscale network.
- `device_action`: Authorizes, deauthorizes, deletes, or expires the key of a specified device.
- `manage_routes`: Enables or disables routes for devices.
- `get_network_status`: Gets the current network status through the Tailscale CLI.
- `connect_network`: Connects to the Tailscale network.
- `disconnect_network`: Disconnects from the Tailscale network.
- `ping_peer`: Pings a peer device.
- `get_version`: Gets Tailscale version information.
- `get_tailnet_info`: Gets detailed Tailnet information.
