7.4 KiB
← Home
MCP SSH -- Complete Guide to SSH Management via Model Context Protocol
This is the comprehensive guide for MCP SSH Manager, a Model Context Protocol (MCP) server for SSH remote server management.
What is MCP SSH?
MCP SSH Manager is a complete Model Context Protocol (MCP) server that enables SSH remote server management directly from AI assistants like Claude Code and OpenAI Codex. It is the most comprehensive SSH MCP solution available, offering 37+ MCP tools for complete remote server control.
Why MCP SSH Manager?
If you are searching for any of the following, MCP SSH Manager is the right solution:
- MCP SSH server
- SSH MCP integration
- Model Context Protocol SSH tools
- Claude Code SSH support
- OpenAI Codex SSH compatibility
- Remote SSH MCP server
- SSH automation with AI
MCP SSH vs Traditional SSH
Traditional SSH requires manual terminal commands and script writing. With MCP SSH Manager, you can:
| Capability | Traditional SSH | MCP SSH Manager |
|---|---|---|
| Command interface | Terminal commands, custom scripts | Natural language: "Deploy my app to production" |
| Automation | Manual scripting | AI-powered automation via Claude Code or Codex |
| Multi-server management | Separate connections per server | Unified interface for all servers |
| Enterprise features | Custom tooling required | Built-in backup, restore, health monitoring, database management |
| Learning curve | Significant | Minimal -- ask your AI assistant what you want to do |
How to Use MCP SSH with Claude Code
Quick Installation
git clone https://github.com/bvisible/mcp-ssh-manager.git
cd mcp-ssh-manager
npm install
claude mcp add ssh-manager node /path/to/mcp-ssh-manager/src/index.js
Natural Language SSH Commands
Once installed, simply ask Claude Code:
- "List my SSH servers"
- "Execute 'docker ps' on production"
- "Backup production database"
- "Monitor CPU usage on all servers"
- "Deploy files to staging server"
- "Check health of production server"
How to Use SSH MCP with OpenAI Codex
Codex Integration
ssh-manager codex setup
ssh-manager codex migrate
Configure in ~/.codex/config.toml:
[mcp_servers.ssh-manager]
command = "node"
args = ["/path/to/mcp-ssh-manager/src/index.js"]
env = { SSH_CONFIG_PATH = "/Users/you/.codex/ssh-config.toml" }
MCP SSH Features
Core SSH MCP Features
- SSH Command Execution -- Run any command on remote servers via MCP.
- File Transfer -- Upload/download files through the MCP protocol.
- Server Management -- List, configure, and manage SSH connections.
- Persistent Sessions -- Maintain SSH context across multiple commands.
Enterprise SSH MCP Features
| Feature Area | Capabilities |
|---|---|
| Database Management | MySQL, PostgreSQL, MongoDB support; safe query execution; dumps and imports; schema exploration |
| Backup and Restore | Automated scheduling; database and file backups; one-click restore; retention policies |
| Health Monitoring | Real-time server health checks; service status monitoring; process management; alert thresholds |
| Smart Deployment | Automated deployments; permission handling; rollback support; multi-server deployment |
Model Context Protocol (MCP) for SSH
The Model Context Protocol (MCP) is a standardized way for AI assistants to interact with external tools and services. MCP SSH Manager implements the MCP specification to provide:
- 37+ MCP Tools for SSH operations
- Type-safe SSH operations via MCP schemas
- Secure credential management
- Standardized interface for all AI assistants
- Extensible architecture for custom SSH workflows
SSH MCP Tools Reference
Core MCP SSH Tools
| Tool | Description |
|---|---|
ssh_execute |
Execute SSH commands via MCP |
ssh_upload |
Upload files through MCP SSH |
ssh_download |
Download files via MCP SSH |
ssh_list_servers |
List SSH servers in MCP |
Advanced MCP SSH Tools
| Tool | Description |
|---|---|
ssh_backup_create |
Create backups via MCP SSH |
ssh_health_check |
Health monitoring through MCP |
ssh_db_dump |
Database operations via MCP SSH |
ssh_deploy |
Smart deployment through MCP |
ssh_tunnel_create |
SSH tunnels via MCP |
ssh_sync |
File synchronization through MCP SSH |
See full list in the API reference.
MCP SSH Configuration
For Claude Code (Environment Variables)
SSH_SERVER_PROD_HOST=prod.example.com
SSH_SERVER_PROD_USER=admin
SSH_SERVER_PROD_KEYPATH=~/.ssh/prod_key
For OpenAI Codex (TOML Format)
[ssh_servers.production]
host = "prod.example.com"
user = "admin"
key_path = "~/.ssh/prod_key"
SSH MCP Use Cases
DevOps Automation
- Automated deployments to remote servers
- Database backup and restore workflows
- Server health monitoring and alerting
- Log analysis and troubleshooting
- Multi-server configuration management
Development Workflows
- Remote development environment setup
- Code deployment to staging/production
- Database migration management
- Service restart and monitoring
- Debug log collection
Database Administration
- Backup scheduling and management
- Database dumps and imports
- Query execution and analysis
- Schema inspection
- Cross-server data migration
MCP SSH Security
MCP SSH Manager implements multiple security layers:
| Layer | Description |
|---|---|
| Credential Protection | Never exposes SSH credentials to AI |
| Command Validation | Validates all SSH commands before execution |
| SQL Injection Prevention | Only allows safe database queries |
| Audit Logging | Tracks all SSH operations via MCP |
| Connection Pooling | Secure connection management |
Troubleshooting MCP SSH
MCP SSH Connection Issues
- Test connection:
ssh-manager server test [name] - Verify SSH credentials.
- Check firewall rules.
- Review MCP server logs.
Claude Code SSH Integration
- Verify installation:
claude mcp list - Restart Claude Code.
- Check MCP configuration.
- Test with a simple command.
MCP SSH Alternatives
While there are other SSH tools and MCP servers, MCP SSH Manager offers:
| Advantage | Detail |
|---|---|
| Most comprehensive | 37+ tools vs competitors' 2--4 |
| Dual platform support | Claude Code and OpenAI Codex |
| Enterprise features | Backup, monitoring, database management |
| Active development | Regular updates and community support |
| Open source | MIT license |
| Production-ready | Battle-tested and well-documented |
Community and Support
Contributing
We welcome contributions to MCP SSH Manager. See CONTRIBUTING for details.
Support Channels
- GitHub Issues: Report bugs
- Documentation: Full docs
Getting Started
git clone https://github.com/bvisible/mcp-ssh-manager.git
cd mcp-ssh-manager
npm install
Repository: https://github.com/bvisible/mcp-ssh-manager
Repo: ssh-mcp · MokoStandards
| Revision | Date | Author | Description |
|---|---|---|---|
| 1.0 | 2026-05-09 | Moko Consulting | Initial version |