OpenTunnel MCP
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
opentunnel-mcp
OpenTunnel(https://opentunnel.xyz、anomalyco 製の blind TLS トンネル)を MCP から
操作するサーバー。ローカルポートを https://<name>.<id>.opentunnel.xyz で公開し、
その公開 URL を返す。
公式の opentunnel CLI には MCP 機能が無く、Windows バイナリも無い(Linux/macOS のみ)。
そのため公式 TypeScript SDK @opentunnel/client をラップして実装した(Node ≥22 で
ネイティブ動作。effect が peer dependency)。
ツール
ツール | 機能 |
| トンネル識別情報(hostname)、接続状態、routes と公開 URL、直近イベント |
| ローカルポート(または |
| routes を 全置換(CLI の config 手編集相当)。 |
| bridge 切断。routes はクリア、識別情報(hostname)は保存されて再利用される |
| トンネルを完全削除(hostname 失効)。 |
Related MCP server: serve
挙動の注意
トンネルの寿命 = MCP プロセスの寿命。opencode が MCP を殺すと bridge も切れる (CLI の systemd/launchd 常駐サービスは Windows に無いため)。opencode 再起動後は
exposeを呼べば保存済み identity で即復帰する(証明書の再発行は不要)初回の
exposeはトンネル作成 + ZeroSSL 証明書発行で 1 分程度かかることがある (opencode.jsonc 側でtimeout: 180000を設定済み)route 名は 1 つの小文字 DNS ラベル。
@でトンネル hostname 自体route は 1 bridge が占有。CLI 等の別プロセスが同じ route を持つと
route_conflict(相手が消えるまでリトライして引き取る)開発サーバ等ループバック以外の bind は不可ではないが、trust boundary 的に ループバック向け(docs/trust-boundary.md)
ファイル / identity
identity(証明書・鍵・トークン)は ~/.local/share/opentunnel/default/(Windows では
ユーザープロファイル直下の .local\share\opentunnel\)に保存される
(tunnel.json / token / private-key.pem / certificate.pem / chain.pem)。
コミット禁止。hostname は <id>.opentunnel.xyz 形式。
テスト
node test/e2e.mjs # 実トンネルを張り、公開 URL を実際に fetch して 200 を確認ローカル HTTP サーバをランダムポートで立て、MCP stdio プロトコル(NDJSON)で initialize → expose → fetch → status → set_routes({}) → close まで一気に検証する。
opencode への登録(済・2026-11-19)
~/.config/opencode/opencode.jsonc の mcp に登録:
"opentunnel": {
"type": "local",
"command": ["node", "<workspace>/mcp/opentunnel-mcp/index.js"],
"timeout": 180000,
"enabled": true
}opencode は設定変更をホットリロードした(新セッションでも自動で読み込まれる)。
構成
index.js MCP サーバ本体(単一ファイル・ESM・ビルド不要)
test/e2e.mjs 実トンネル E2E
package.json deps: @opentunnel/client, effect, @modelcontextprotocol/sdk, zodnode_modules は bun install で導入(npm は当時ネットワーク不調で断念)。
関連
公式: https://github.com/anomalyco/opentunnel (SDK: packages/client)
同型の台帳:
ngrok-mcp(ngrok 公式リモート MCP の台帳)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Secure tunneling, reverse proxy and remote access for local applications.
Agent-first hosting: create apps, push code, and deploy to HTTPS URLs from your coding agent.
Remote shell and detached long-running jobs on your own machines — no SSH, open ports or VPN.
Securely control computers you explicitly pair through files, terminals, processes, screenshots, desktop UI/input, clipboard, browser automation, diagnostics, and document tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceSelf-hosted webhook relay and tunnel with Noise NK encryption. Inspect requests, replay webhooks, trace AI pipelines, connect/disconnect tunnels — 13 MCP tools. No tokens or passwords needed.138AGPL 3.0
- FlicenseAqualityFmaintenanceGive anything on your machine a public HTTPS link — live from your computer, or hosted by serve.17-
- AlicenseAqualityBmaintenanceEnables publishing folders, HTML files, or locally/SSH-reachable apps to public Cloudflare URLs, with tools for deploying, exposing ports, managing private links, rotating keys, and inspecting logs.13MIT
- AlicenseNot gradedqualityBmaintenanceExposes a single SSH-reachable host as MCP tools for running and backgrounding remote commands, resumable verified file transfers, and read-only file comparison, stat, hashing, listing and reading. Runs on loopback with per-request Bearer auth and hot-switchable permission levels, letting an agent compile and manage files on a build machine while keeping its workspace on the device.MIT