zrok-mcp
zrok-mcp
Ein MCP-Server für zrok — die Open-Source-Plattform für sicheres Teilen, die auf OpenZiti basiert. Ermöglicht KI-Agenten die programmgesteuerte Verwaltung von zrok-Tunneln, Freigaben und Zugriffen.
Unterstützt drei Transporte: stdio (lokal), streamable-http und SSE (remote/Bifrost).
Tools
Jedes Tool verwendet einen action-Parameter, um den Vorgang auszuwählen — es müssen nicht viele Tool-Namen auswendig gelernt werden.
zrok_env — Umgebungsmanagement
Aktion | Beschreibung |
| Überprüft den Umgebungsstatus (aktiviert, API-Endpunkt, Identität) |
| Aktiviert die zrok-Umgebung mit einem Account-Token |
| Deaktiviert die aktuelle zrok-Umgebung |
zrok_share — Freigabemanagement
Aktion | Beschreibung |
| Erstellt eine öffentliche oder private Freigabe |
| Löscht eine Freigabe anhand des Tokens |
| Listet alle Freigaben mit optionalen Filtern auf |
zrok_access — Zugriffsmanagement
Aktion | Beschreibung |
| Erstellt Zugriff auf eine private Freigabe |
| Entfernt den Zugriff auf eine Freigabe |
| Listet alle Zugriffe mit optionalen Filtern auf |
Related MCP server: env0
Anforderungen
Python 3.10+
zrok2 Python SDK
Ein zrok-Account und eine aktivierte Umgebung
Installation
cd zrok-mcp
pip install -e .Ausführung
Der Transport wird über die Umgebungsvariable ZROK_MCP_TRANSPORT ausgewählt (Standard: stdio).
Transport | Anwendungsfall |
| Lokale Clients (Claude Desktop, Cursor, Crush) |
| Remote / Bifrost-Gateway (empfohlen) |
| Remote / Bifrost-Gateway (Legacy SSE) |
STDIO (Standard)
zrok-mcpStreamable HTTP (remote)
ZROK_MCP_TRANSPORT=streamable-http ZROK_MCP_PORT=8000 zrok-mcpDocker (remote)
docker build -t zrok-mcp .
docker run -p 8000:8000 -v ~/.zrok2:/root/.zrok2 zrok-mcpMit MCP Inspector
mcp dev src/zrok_mcp/server.pyUmgebungsvariablen
Variable | Standard | Beschreibung |
|
| Transport: |
|
| Bind-Host (HTTP/SSE-Transporte) |
|
| Bind-Port (HTTP/SSE-Transporte) |
Konfiguration
Claude Desktop (stdio)
Hinzufügen zu ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"zrok": {
"command": "uv",
"args": ["--directory", "/path/to/zrok-mcp", "run", "zrok-mcp"]
}
}
}Cursor / Crush (stdio)
Hinzufügen zu Ihren Crush-Einstellungen oder der MCP-Konfiguration:
{
"zrok": {
"command": "uv",
"args": ["--directory", "/path/to/zrok-mcp", "run", "zrok-mcp"]
}
}Bifrost AI Gateway (streamable-http)
Stellen Sie zrok-mcp als Remote-HTTP-Server bereit (Docker, Railway, etc.)
Gehen Sie im Bifrost Web-UI auf MCP Gateway → New MCP Server
Wählen Sie HTTP als Verbindungstyp
Geben Sie die URL ein:
http://your-zrok-mcp-host:8000/mcpSetzen Sie
tools_to_executeauf["*"](oder filtern Sie nach Bedarf)
Oder über eine Konfigurationsdatei:
{
"mcp": {
"mcp_clients": [
{
"name": "zrok",
"connection_type": "http",
"connection_string": "http://your-zrok-mcp-host:8000/mcp",
"tools_to_execute": ["*"]
}
]
}
}Für SSE-Transport verwenden Sie connection_type: "sse" und connection_string: "http://your-zrok-mcp-host:8000/sse".
Beispielanwendung
Sobald die Konfiguration abgeschlossen ist, kann Ihr KI-Agent Dinge tun wie:
"Teile meinen lokalen Server auf Port 3000 öffentlich über zrok"
Der Agent ruft zrok_share(action="create", target="http://localhost:3000") auf und gibt die öffentliche URL zurück.
"Liste alle meine zrok-Freigaben auf"
Der Agent ruft zrok_share(action="list") auf und zeigt Token, Modus, Ziel und Endpunkte an.
"Erstelle einen privaten TCP-Tunnel für meine Datenbank auf Port 5432"
Der Agent ruft zrok_share(action="create", share_mode="private", backend_mode="tcpTunnel", target="localhost:5432") auf.
Lizenz
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Manage portable AI agent playbooks, Agent Skills, MCP configurations, personas, and memory.
Manage SRG+ hubs, channels, content, assets, users, and workspaces from any MCP-aware AI agent.
- mcp-serverOAuthcom.make
Give your AI agents the tools to build, manage, and run automation workflows.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage agents, webhooks, and P2P connectivity on the Anycast network, allowing operations like listing agents, creating tokens, and viewing connection stats.9 npmMIT
- AlicenseBqualityAmaintenanceEnables AI agents to manage environments and access resources on the Env0 platform through natural language, including deploying, canceling, and viewing logs of environments, as well as querying Cloud Compass.144Apache 2.0
- AlicenseBqualityCmaintenanceEnables AI agents to directly manage Beyond Identity resources such as identities, groups, applications, SSO configurations, and credentials via natural language tool calls.369 npmApache 2.0

@volter/tunnel-mcpofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to manage account, usage, and abuse operations for the Volter tunnel relay.1,109 npm2Apache 2.0