mcp-tunnel
2
MCP Tunnel is a Model Context Protocol server that enables command-line access for virtual machines via a web-based interface. It supports automatic tunneling and real-time communication, making VM interaction accessible from any location.
MCP Tunnel
A simple MCP (Model Context Protocol) server for accessing the command line of a VM. It features a web-based terminal, automatic tunneling, and WebSocket-based real-time communication.
Features
- Execute shell commands on a VM through MCP
- Web-based terminal interface
- Automatic tunneling
- WebSocket communication
Prerequisites
- Node.js (v18 or newer)
Installation and Usage
Running with npx
(no installation)
Global Installation
Local Development
Usage
- Start the MCP server with or without automatic tunneling.
- Use MCP to interact with the server using available tools.
Web Interface
Access the VM interface via web terminal to execute commands and interact with the VM.
Environment Variables
Configure the server using a .env
file.
Security Considerations
- Implement strong authentication
- Limit command execution
- Use a restricted environment