How to Use the zrok (Open-Source Tunnel) MCP in Claude Code
Run zrok (Open-Source Tunnel) tunnel management in headless scripts using Claude Code's terminal capabilities.
Works with every AI agent you already use
…and any MCP-compatible client
Connect zrok (Open-Source Tunnel) MCP to Claude Code
Create your Vinkius account to connect zrok (Open-Source Tunnel) 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.
MCP Server for Claude Code
When running background tasks, you need to manage endpoints. Use `list_shares` to confirm active tunnels before a deployment starts. If the service needs an endpoint, use `create_share`—it handles the necessary setup completely in the terminal. If testing is finished, always run `delete_share`. This ensures your CI/CD job doesn't leave behind expensive, orphaned resources.
Authentication and Account Status
For automated scripts, you need a stable token. Start by calling `login_account` to authenticate the script runner. If the account needs setup, use `register_account`. These tools are essential for headless execution. To verify quotas or check if your build is running into limits, call `get_account`. It pipes all the necessary account metrics right to standard output.
Managing Tunnel Environments in Scripts
Scripts often need clean state. First, run `list_environments` to get a list of available network contexts. Before executing sensitive code, pipe the environment name into `enable_environment`. This guarantees isolation. When the script finishes its work, call `disable_environment` immediately. It’s crucial for managing resources properly in shell scripts.
Set up zrok (Open-Source Tunnel) 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 seezrok-open-source-tunnel-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest zrok (Open-Source Tunnel) transactions." It will automatically discover and invoke the available zrok (Open-Source Tunnel) tools.
claude mcp add --transport http zrok-open-source-tunnel-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 zrok (Open-Source Tunnel) MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the zrok (Open-Source Tunnel) MCP today
We host it, we monitor it, we maintain it. You just paste one token.