drio
Open app

MCP Tunnel

Source

MCP server for accessing VM command line with web tunneling

Catalog onlyCatalog onlySTDIO

Overview

MCP Tunnel is a simple Model Context Protocol (MCP) server that allows users to access the command line of a virtual machine (VM) through web tunneling.

To use MCP Tunnel, you can run it using npx or install it globally via npm. After starting the server, you can access the web-based terminal interface to interact with the VM.

  • 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
  1. Remotely managing a VM's command line from any device.
  2. Running shell commands on a VM without needing direct access.
  3. Providing a web interface for VM interaction in development environments.

Add to your AI client

Use these steps to connect MCP Tunnel in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-tunnel-leomercier": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-tunnel-leomercier"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-tunnel-leomercier": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-tunnel-leomercier"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-tunnel-leomercier": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-tunnel-leomercier"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-tunnel-leomercier": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-tunnel-leomercier"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-tunnel-leomercier": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-tunnel-leomercier"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-tunnel-leomercier": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-tunnel-leomercier"
      ]
    }
  }
}

FAQ

What is required to run MCP Tunnel?

You need Node.js (v18 or newer) to run MCP Tunnel.

How do I start the MCP server?

You can start the server with `npm start`, and it will automatically create a tunnel by default.

Is there a way to disable automatic tunneling?

Yes, you can use the `--no-tunnel` flag when starting the server to disable automatic tunneling.