MCP Tunnel
MCPトンネル
VMマシンのコマンドラインへのアクセスを可能にするシンプルなMCP(Model Context Protocol)サーバーです。起動すると、ホストをWebにトンネリングし、MCP経由でアクセスできるようになります。
特徴
MCP を介して VM 上でシェル コマンドを実行する
VMとの対話のためのWebベースの端末インターフェース
自動トンネリングにより、どこからでも VM にアクセス可能
WebSocketベースのリアルタイム通信
Related MCP server: MCP Shell Server
前提条件
Node.js (v18以降)
インストールと使用方法
npx で実行 (インストール不要)
npx mcp-cliグローバルインストール
npm install -g mcp-cli
mcp-cli地域開発
# Clone repository
git clone [repository-url]
cd mcp-cli
# Install dependencies
npm install発達
バックエンドとフロントエンドの両方でホットリロードを使用して開発サーバーを実行します。
npm run dev建物
本番環境用にフロントエンドとバックエンドの両方を構築します。
npm run build-all使用法
MCP サーバーを起動します。
# Start with automatic tunneling
npm start
# Start without automatic tunneling
npm start -- --no-tunnelプロジェクトがビルドされ、サーバーが起動します。デフォルトでは、トンネルが自動的に作成されます。自動トンネリングを無効にするには、 --no-tunnelフラグを使用してください。
サーバーが起動し、stderr に出力を提供します (stdout での MCP 通信を妨害しないようにするため)
MCP を使用して、次のツールを使用してサーバーと対話します。
利用可能なMCPツール
execute_command: VM上でシェルコマンドを実行するパラメータ:
{ "command": "your shell command" }
start_tunnel: VMインターフェースにアクセスするためのWebトンネルを作成するパラメータ:
{ "port": 8080, "subdomain": "optional-subdomain" }
ウェブインターフェース
トンネルを開始すると、トンネルから提供されたURLでWebベースのターミナルインターフェースにアクセスできます。このインターフェースでは、以下の操作が可能です。
VM内で直接コマンドを実行する
コマンド出力をリアルタイムで確認
ウェブアクセスのあるあらゆるデバイスから VM を操作します
環境変数
サーバーを構成するための.envファイルを作成します。
# Server configuration
PORT=8080
# Localtunnel configuration
LOCALTUNNEL_SUBDOMAIN=your-preferred-subdomainセキュリティに関する考慮事項
このツールは、VMのコマンドラインに直接アクセスできるようにします。以下のセキュリティ対策を検討してください。
トンネルを公開する前に強力な認証メカニズムを使用する
適切な検証を通じて実行できるコマンドを制限する
制限された環境での実行を検討する
トンネルを通じて機密情報を公開しないでください
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
Termalin's hosted MCP server. Claude, ChatGPT or any MCP client runs commands, moves files over SFTP, queries databases and reads server metrics and monitoring alerts on your servers, keylessly through Termalin Connectors: no SSH key is handed over and no inbound port is opened. Per-host command policy and an audit log. Needs a termal.in Pro or Team account (new accounts start with a 14-day Pro trial).
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Secure and manage MCP servers through the Speakeasy AI Control Plane from your agent.
Cloud-hosted MCP server for URnetwork VPN and Proxy
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA simple MCP Server with shell execution capabilities that can be run locally with Ngrok tunneling or hosted in an Ubuntu 24 Docker container.4MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA simple MCP server that provides a terminal tool for executing shell commands with safety features like timeouts and error handling.-
- FlicenseBqualityDmaintenanceAn MCP server that enables users to execute arbitrary shell commands on their local machine and receive the output. It provides a terminal tool for running system commands through MCP-compatible clients using the Python SDK.1-
- FlicenseNot gradedqualityDmaintenanceMCP server that enables SSH access and terminal commands for Railway containers and local shell execution.-