mitm-ssh
This 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.
mitm-ssh
Tired of Claude running SSH commands behind your back? mitm-ssh sits between Claude and the SSH session so you can watch everything as it happens — just like a real terminal.
The server runs as a separate process in a separate terminal window. You start it, keep it visible, and watch the full SSH session unfold in real time while Claude works.
An MCP server that wraps ssh.exe inside a Windows ConPTY, pipes its stdio through MCP tools, and displays the live terminal output in its own terminal window — like looking over Claude's shoulder. It also helps debug SSH and MCP connection issues by showing connection build-up and tear-down as status messages.
How it works
Claude Code <--MCP/HTTP--> mitm-ssh (server.py) <--stdin/stdout--> ssh.exe <--> remote hostYou run the server in a terminal. Claude connects over HTTP and controls the SSH session via MCP tools. You see everything happening in real time — SSH output streams to your terminal, and connect/disconnect events are logged in grey.
Related MCP server: MCP SSH Server
Setup
Designed for Windows (uses ssh.exe). Requires Python 3.11+.
# 1. Start the server (keep this terminal open)
uv run server.py
# or without uv: pip install mcp && python server.py
# 1b. Optional: enable local keyboard input to the SSH session
uv run server.py -i
# 2. Register with Claude Code (once)
claude mcp add -s user -t http mitm-ssh http://127.0.0.1:8022/mcpMCP Tools
Tool | Description |
| Spawn ssh.exe to a host (with optional user, port, identity file) |
| Send a command + Enter, return output |
| Send raw text without newline (for prompts, passwords) |
| Read new output since last read |
| Read recent output from the full buffer |
| Check if an SSH session is active |
| Terminate the SSH session |
Usage
With the server running, just ask Claude:
Connect to myserver and check disk usage
Claude will call ssh_connect, then ssh_run with df -h, and report back.
Notes
Key-based auth recommended — password auth is unreliable without a real PTY
ANSI pass-through — ConPTY gives ssh.exe a real terminal, so you get colors and full TUI output
Ctrl+C is forwarded to the SSH session (transparent) — use Ctrl+Break to kill the server
SSH output is also appended to
ssh_output.logServer listens on
127.0.0.1:8022(localhost only)
This server cannot be deployed
Maintenance
Related MCP Connectors
SSH into your Linux server, home lab, VPS, or Proxmox machine from Claude or ChatGPT — no port forwarding, no VPN. Run shell commands, read files, tail logs, and manage processes directly from chat. One-command setup. 5-day free trial, no card required.
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).
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Give your AI hands on every computer you own. Remote control of your Windows, Mac and Linux machines from one ChatGPT, Claude or Cursor chat — even from your phone. Ask it to find out why the office server is crawling, update every PC in the house, sort out your mom's laptop from another city, or ship the site from your work machine while you're on a train. It runs commands, reads files and takes a screenshot when it needs to see the screen. You decide what each computer allows, and you can cut any of them off in a second.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables SSH remote access to servers through Claude, allowing users to execute commands, transfer files via SFTP, and manage multiple remote connections using natural language.129MIT
- AlicenseNot gradedqualityNot gradedmaintenanceConnects Claude to remote servers via SSH to execute commands, manage files, and browse directories. It allows users to add, edit, and switch between multiple server configurations through natural language conversations.-
- AlicenseAqualityCmaintenanceEnables Claude to connect to servers via SSH, execute commands, transfer files, and manage connections through natural language.911 npm1MIT
- -licenseNot gradedqualityNot gradedmaintenanceEnables Claude Code to control remote servers via SSH for automated deployment, testing, and operations, including command execution and file transfer.4-