MCP addon for Claude Desktop - SSH into servers, run commands, transfer files
Project description
claude-ssh-mcp
MCP addon for Claude Desktop — gives Claude SSH access to your servers.
Install
With pip (auto-installs Node.js if needed):
pip install claude-ssh-mcp
claude-ssh-mcp
Or with npm (if you have Node.js):
npx -y claude-ssh-mcp
That's it. Restart Claude Desktop and you're ready.
Usage
Just talk to Claude naturally:
- "Connect to 185.91.118.4 as root with password mypass, call it production"
- "Run
ls -la /var/wwwon production" - "Upload C:\Users\me\app.zip to /tmp/app.zip on production"
- "Download /var/log/error.log from production"
- "Connect to 10.0.0.5 as deploy with key at C:\Users\me.ssh\id_rsa, name it staging"
- "Transfer /var/log/app.log from production to /tmp/app.log on staging"
- "List my servers"
- "Remove staging"
Features
- Auto-install — one command adds it to Claude Desktop
- Auto-installs Node.js — pip version handles everything
- Servers are saved — connect once, reconnect by name
- SSH keepalive — connections stay alive during long sessions
- Auto-reconnect — recovers from network interruptions
- Auto-update — checks for updates every 2 hours
Saved Servers
When you tell Claude to connect, the server is saved to ~/.mcp-ssh/servers.json. Next time just say "connect to production".
Edit manually if you prefer:
{
"production": {
"host": "185.91.118.4",
"port": 22,
"username": "root",
"password": "mypass"
},
"staging": {
"host": "10.0.0.5",
"port": 22,
"username": "deploy",
"privateKeyPath": "C:\\Users\\me\\.ssh\\id_rsa"
}
}
Tools
| Tool | What it does |
|---|---|
ssh_connect |
Connect to a server (new or saved) |
ssh_disconnect |
Close a connection |
ssh_list_sessions |
Show all connections and saved servers |
ssh_remove_server |
Delete a saved server |
ssh_execute |
Run a shell command |
ssh_upload |
Upload a local file (SFTP) |
ssh_download |
Download a remote file (SFTP) |
ssh_transfer |
Copy a file between two servers |
ssh_list_files |
List remote directory contents |
License
MIT — free and open source.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_ssh_mcp-1.0.0.tar.gz.
File metadata
- Download URL: claude_ssh_mcp-1.0.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b5bb7bed92bbdde54b38592d76c308022da4e100dffbe2e61cc5c9d0825ae6e
|
|
| MD5 |
21280fa7c143bf87de930aa19a0d3872
|
|
| BLAKE2b-256 |
5b66fe1f60a8fb34a827c8a2fa323f6dcbc5273738013987c2c6d2bc7830d9c9
|
File details
Details for the file claude_ssh_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: claude_ssh_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20e5f4a882989463bee8dccca0b2cbca72b2557ba56f7ebdf66e315df90cd7e9
|
|
| MD5 |
0d2b709722daab0379302eb5aa8ca060
|
|
| BLAKE2b-256 |
dfd7887452c3572a72beefda9ffdfcee9096dafbc1d8eabc218e1c83d6f71b22
|