MCP Multi-Agent 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.
What is this?
An MCP server that gives Claude Code persistent SSH connections. Instead of opening and closing connections for every command, connections stay alive for 10 minutes—making remote server management fast and seamless.
Part of the Claude Code Plugin Marketplace — discover more plugins, agents, and skills for Claude Code.
Related MCP server: SSH Remote MCP Server
Quick Start
Using NPX
npx mcp-multi-agent-sshUsing Docker
docker run -it --rm \
-v ~/.mcp-multi-agent-ssh:/root/.mcp-multi-agent-ssh \
-e MCP_SSH_MASTER_PASSWORD=your-password \
mcp-multi-agent-sshClaude Code Setup
Add to your Claude Code MCP configuration:
NPX Method:
{
"mcpServers": {
"ssh": {
"command": "npx",
"args": ["mcp-multi-agent-ssh"],
"env": {
"MCP_SSH_MASTER_PASSWORD": "your-master-password"
}
}
}
}Docker Method:
{
"mcpServers": {
"ssh": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "~/.mcp-multi-agent-ssh:/root/.mcp-multi-agent-ssh",
"-e", "MCP_SSH_MASTER_PASSWORD",
"mcp-multi-agent-ssh"
],
"env": {
"MCP_SSH_MASTER_PASSWORD": "your-master-password"
}
}
}
}Features
Feature | Description |
Persistent Connections | SSH connections stay open for 10 minutes of inactivity |
Encrypted Credentials | Per-host credentials stored with AES-256-GCM encryption |
Auto-Reconnect | Transparently reconnects when connections expire or drop |
SFTP Support | Upload, download, and list files on remote servers |
Host-Based Auth | Credentials automatically matched by hostname |
Tools
Connection Management
Tool | Description |
| Connect to an SSH server. Stores credentials for future use. |
| Close connection to a specific host. |
| List all active connections with idle time. |
Command Execution
Tool | Description |
| Run a command on a remote server. Auto-connects if needed. |
File Operations (SFTP)
Tool | Description |
| Upload a local file to a remote server. |
| Download a file from a remote server. |
| List files in a remote directory. |
Credential Management
Tool | Description |
| List hosts with stored credentials. |
| Remove stored credentials for a host. |
Examples
Connect and Run Commands
User: Connect to my server at example.com as user "deploy" with password "secret123"
Claude: [calls ssh_connect]
Connected! Credentials saved for future use.
User: What's the disk usage?
Claude: [calls ssh_exec with command="df -h"]
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 100G 45G 55G 45% /Transfer Files
User: Upload my config file to the server
Claude: [calls sftp_upload]
Uploaded 2.3 KB to /etc/app/config.ymlAuto-Reconnect
After 10 minutes of inactivity, connections automatically close with a notification. The next command reconnects using stored credentials:
[mcp-multi-agent-ssh] Connection to example.com:22 expired after 10 minutes of inactivity
User: Check the server status
Claude: [calls ssh_exec — automatically reconnects]
● app.service - My Application
Active: active (running)Security
Credential Storage
Aspect | Implementation |
Location |
|
Encryption | AES-256-GCM |
Key Derivation | PBKDF2 with 100,000 iterations |
File Permissions | 600 (owner read/write only) |
Master Password
The master password encrypts/decrypts stored credentials:
Environment Variable (recommended):
export MCP_SSH_MASTER_PASSWORD="your-password"Interactive Prompt: If not set, you'll be prompted on first run.
Development
Prerequisites
Python 3.10+
Node.js 18+ (for NPX launcher)
Local Setup
# Clone the repository
git clone https://github.com/ericgrill/mcp-multi-agent-ssh.git
cd mcp-multi-agent-ssh
# Create virtual environment
python -m venv venv
source venv/bin/activate
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytestProject Structure
mcp-multi-agent-ssh/
├── src/mcp_multi_agent_ssh/
│ ├── __init__.py
│ ├── server.py # MCP server entry point
│ ├── connection_pool.py # SSH connection management
│ ├── credentials.py # Encrypted credential storage
│ └── types.py # Pydantic models
├── bin/
│ └── launcher.js # NPX launcher script
├── tests/
├── Dockerfile
├── docker-compose.yml
├── package.json
├── pyproject.toml
└── README.mdTroubleshooting
Issue | Solution |
"Master password required" | Set |
"Python 3.10+ not found" | Install Python 3.10+ from https://www.python.org/ |
Connection timeouts | Check network, verify port (default: 22), check firewall |
"Failed to decrypt credentials" | Wrong password. Delete |
Related
Claude Code Plugin Marketplace — Discover 40+ plugins, 70+ agents, and 110+ skills for Claude Code including:
superpowers — TDD, debugging, code review skills
python-development — Django, FastAPI, async Python
llm-application-dev — RAG, embeddings, LangChain
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Scoped, audited SSH exec, sessions, and SFTP on your saved servers without exposing credentials
Persistent memory for Claude Code and Cursor. Stop re-explaining your project every session.
People and AI agents build software together in persistent cloud sessions for Claude Code.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables Claude to manage multiple SSH connections, execute remote commands, and transfer files across servers. Supports secure authentication, default directories, sudo operations, and deployment automation with profiles for different project types.374,004 npm546MIT
- 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
- AlicenseAqualityDmaintenanceEnables Claude to connect to servers via SSH, execute commands, transfer files, and manage connections through natural language.921 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-