Home / MCP / tailscale MCP Server
Provides an MCP interface to query Tailscale status by running the tailscale CLI on macOS.
Configuration
View docs{
"mcpServers": {
"tailscale": {
"command": "python",
"args": [
"tailscale.py"
]
}
}
}This MCP server lets you query Tailscale status by running the tailscale CLI on macOS, exposing a lightweight interface you can connect to from your MCP clients. It’s useful for integrating real-time Tailscale state into your tooling and automation workflows without duplicating CLI logic in your client.
You start the MCP server locally and then connect your MCP client to it to fetch Tailscale status. By default, the server runs in STDIO mode, which means it communicates via the standard input and output streams of the process you started. If you choose the HTTP transport option, you can also connect over HTTP to a local port. The server relies on the tailscale CLI being installed and available at the expected macOS path.
Prerequisites you need to satisfy before running the server:
Step by step flow you can follow to get the server running locally:
# Step 1: Prepare the working directory
# Create a directory for the MCP server and place tailscale.py inside it
# Step 2: Start the server using the default STDIO transport
python tailscale.py
# Optional: start the server with HTTP transport on a specific port
# This enables HTTP-based MCP client connections
python tailscale.py --transport http --port 4001