How to Use the Headscale (Tailscale Alternative) MCP in Claude Code
Manage your self-hosted VPN directly from the terminal. Claude Code provisions nodes and routes via headless commands.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Headscale (Tailscale Alternative) MCP to Claude Code
Create your Vinkius account to connect Headscale (Tailscale Alternative) to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Claude Code Headscale Automation
Running deployment scripts often requires temporary VPN access for your runners. You can pipe instructions straight into your terminal agent to handle this securely. Before the build starts, it executes `create_preauth_key` to generate a single-use token for the CI container. The runner joins the tailnet, does its job, and disconnects. Your AI client then cleans up the mess by running `expire_node` to kill the session and `delete_node` to scrub the machine from the database. Zero orphaned instances left behind.
Script Subnet Approvals
Managing hundreds of advertised subnets through a CLI is prone to human error. This MCP Server gives your terminal agent the ability to audit and modify routes dynamically. It pulls the current state with `list_routes` and parses the output to find unapproved subnets. You can write a single cron job that tells the agent to approve specific CIDR blocks. It iterates through the pending list and fires `enable_route` for the approved ranges, while actively blocking unauthorized paths with `disable_route`. Your network policy enforces itself.
Reassign Machines Instantly
Moving a server from a staging namespace to production usually breaks routing. Your terminal agent handles this migration without dropping packets. It grabs the exact machine details using `get_node` to verify its current state. Once confirmed, it executes `move_node` to shift the server into the correct user space. It then runs `rename_node` to update the internal DNS record, ensuring your internal services can still resolve the host. The entire migration takes seconds.
Set up Headscale (Tailscale Alternative) MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seeheadscale-tailscale-alternative-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Headscale (Tailscale Alternative) transactions." It will automatically discover and invoke the available Headscale (Tailscale Alternative) tools.
claude mcp add --transport http headscale-tailscale-alternative-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Headscale (Tailscale Alternative) MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Headscale (Tailscale Alternative) MCP today
We host it, we monitor it, we maintain it. You just paste one token.