MCP server that lets Claude Code, Claude Desktop and Codex manage multiple SSH servers
open sourceMITself-hostablefreeMCP
MCP SSH Manager is an MCP server that lets AI agents such as Claude Code, Claude Desktop and OpenAI Codex work on remote servers over SSH: run commands, transfer and rsync files, dump and query MySQL, PostgreSQL and MongoDB databases, take backups, check health and open tunnels. Each server gets a security mode (unrestricted, read-only, or restricted to allowed command patterns) and an approval rule (never, destructive commands, or always), with credentials in an AES-256-GCM vault whose key lives in the OS keychain and a live audit trail of what the agent did. Its 37 tools are grouped so they can be switched off to save context, down to a five-tool minimal mode. The ssh-manager CLI adds and tests servers and imports them from ~/.ssh/config, PuTTY, FileZilla, Termius and others, and a desktop app runs the approval control plane.
Problems it solves
- let Claude Code run commands on my production servers without giving it unchecked root access
- approve each destructive command my AI agent wants to run over SSH before it runs
- make some servers read-only for my coding agent while it can change others
- my agent keeps shelling out to ssh and scp directly and I want it to go through one audited tool
- give Codex access to a dozen SSH hosts defined in my ~/.ssh/config
- have an AI assistant dump a Postgres database on a remote server and copy it back
- keep SSH passwords and keys for my agent in an encrypted vault instead of a .env file
- check disk, memory and service health across my servers from a chat with Claude
- cut how much context an MCP server's tool list uses by switching off tool groups
- see a live log of every command my AI agent ran on my servers
Features
- 37 tools in groups: core, sessions, monitoring, backup, database and advanced
- minimal mode with 5 tools (about 3.5k tokens)
- per-server security modes: unrestricted, read-only or restricted to allow and deny patterns
- per-server approval: never, destructive or always
- AES-256-GCM credential vault with the key in the OS keychain
- live audit trail
- file transfer and rsync
- MySQL, PostgreSQL and MongoDB dumps; SELECT-only queries
- backups, health monitoring and SSH tunnels
- ssh-manager CLI: add, test, import and export servers
View 4 more
- import from ~/.ssh/config, FileZilla, PuTTY, Termius, MobaXterm, Transmit and spreadsheets
- hooks that block direct ssh, scp and sftp in Claude Code
- TOML config for Codex
- desktop app for macOS, Windows and Linux
Limitations
- Its guard hook isn't a security boundary: the README says it protects against accidents only1
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has an MCP server | plan not known |
Alternatives
The same job
These do what MCP SSH Manager does.
- mcp-server-mysql MCP server that lets Claude and other LLMs inspect MySQL schemas and run queries, read-only by default
- fauxnix Bash for AI agents on Windows by deterministic bash-to-PowerShell translation
- X MCP (xmcp) X's MCP server for the X API
- Craft Anything See how any website, app or game works, then have AI build your own version; an open-source, clean-room engine in pure Rust.
