Model Context Protocol server for Tailscale network management. Automate device management, network operations, security controls, and monitoring through CLI commands and REST API integration.
A Model Context Protocol (MCP) server that provides seamless integration with Tailscale's CLI commands and REST API, enabling automated network management and monitoring through a standardized interface.
Provides programmatic access to Tailscale network operations including:
```bash
npx --package=@hexsleeves/tailscale-mcp-server tailscale-mcp-server
```
```bash
docker run -d \
--name tailscale-mcp \
-e TAILSCALE_API_KEY=your_api_key \
-e TAILSCALE_TAILNET=your_tailnet \
ghcr.io/hexsleeves/tailscale-mcp-server:latest
```
```bash
npm install -g @hexsleeves/tailscale-mcp-server
```
Add to your Claude Desktop configuration file (`~/.claude/claude_desktop_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"
}
}
}
}
```
**Option 1: API Key**
**Option 2: OAuth (Recommended for automation)**
Use the `list_devices` tool to see all devices in your Tailscale network with their status, IP addresses, and online/offline state.
Use `device_action` with action `authorize` and provide the device ID to authorize a pending device on your network.
Use `get_network_status` to see your current Tailscale connection status, IP addresses, and peer information.
Use `manage_routes` to enable or disable subnet routing for specific devices, allowing them to act as gateways for other networks.
Use `ping_peer` with a peer's hostname or IP to test connectivity and measure latency between devices.
1. Go to [Tailscale OAuth Settings](https://login.tailscale.com/admin/settings/oauth)
2. Click "Generate OAuth client"
3. Select required scopes (e.g., `devices:read`, `devices:core` for device management)
4. Copy the client ID and secret
5. Use in your configuration instead of API key
OAuth provides scoped permissions, doesn't expire, and isn't tied to a specific user account.
```bash
git clone https://github.com/HexSleeves/tailscale-mcp-server.git
cd tailscale-mcp-server
bun install # or: npm install
cp .env.example .env
bun run build # or: npm run build
bun start # or: npm start
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/tailscale-mcp-server/raw