MCP Tunnel
Supports configuration of the server through environment variables stored in a .env file.
Used for cloning the repository during local development setup.
Used as the runtime environment for the MCP server, with v18 or newer required for operation.
Provides installation and package management for the MCP server via global or local installation methods.
Enables execution of shell commands on a VM through the MCP interface, allowing remote interaction with the VM's command line.
Implements WebSocket-based real-time communication for the terminal interface.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Tunnelexecute_command ls -la"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Tunnel
A simple MCP (Model Context Protocol) server that allows accessing the command line of a VM machine. When started, it also tunnels the host to the web so it can be accessed via MCP.
Features
Execute shell commands on a VM through MCP
Web-based terminal interface for VM interaction
Automatic tunneling to make the VM accessible from anywhere
WebSocket-based real-time communication
Related MCP server: MCP Shell Server
Prerequisites
Node.js (v18 or newer)
Installation and Usage
Running with npx (no installation)
npx mcp-cliGlobal Installation
npm install -g mcp-cli
mcp-cliLocal Development
# Clone repository
git clone [repository-url]
cd mcp-cli
# Install dependencies
npm installDevelopment
Run the development server with hot-reloading for both backend and frontend:
npm run devBuilding
Build both the frontend and backend for production:
npm run build-allUsage
Start the MCP server:
# Start with automatic tunneling
npm start
# Start without automatic tunneling
npm start -- --no-tunnelThis will build the project and start the server. By default, a tunnel will be created automatically. Use the --no-tunnel flag to disable automatic tunneling.
The server will start and provide output on stderr (to avoid interfering with MCP communication on stdout)
Use MCP to interact with the server using the following tools:
Available MCP Tools
execute_command: Run a shell command on the VMParameters:
{ "command": "your shell command" }
start_tunnel: Create a web tunnel to access the VM interfaceParameters:
{ "port": 8080, "subdomain": "optional-subdomain" }
Web Interface
After starting the tunnel, you can access the web-based terminal interface at the URL provided by the tunnel. This interface allows you to:
Execute commands directly in the VM
See command outputs in real-time
Interact with the VM from any device with web access
Environment Variables
Create a .env file to configure the server:
# Server configuration
PORT=8080
# Localtunnel configuration
LOCALTUNNEL_SUBDOMAIN=your-preferred-subdomainSecurity Considerations
This tool provides direct access to your VM's command line. Consider these security practices:
Use strong authentication mechanisms before exposing the tunnel
Limit the commands that can be executed through proper validation
Consider running in a restricted environment
Do not expose sensitive information through the tunnel
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA simple MCP Server with shell execution capabilities that can be run locally with Ngrok tunneling or hosted in an Ubuntu 24 Docker container.4MIT
- -license-quality-maintenanceA 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
- Flicense-qualityDmaintenanceMCP server that enables SSH access and terminal commands for Railway containers and local shell execution.
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
A MCP server built for developers enabling Git based project management with project and personal…
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/leomercier/mcp-tunnel'
If you have feedback or need assistance with the MCP directory API, please join our Discord server