claude-ssh-mcp
Enables Claude to connect to servers via SSH, execute commands, transfer files, and manage connections through natural language.
README
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:
npx -y claude-ssh-mcp
That's it. Restart Claude Desktop and you're ready.
Usage
Just talk to Claude naturally:
- "Connect to 192.168.1.100 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": "192.168.1.100",
"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 |
Building from Source
git clone https://github.com/MaraBank/mcp-ssh-server.git
cd mcp-ssh-server
npm install
npm run build
Then in Claude Desktop config (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"ssh": {
"command": "node",
"args": ["C:\\path\\to\\mcp-ssh-server\\build\\index.js"]
}
}
}
License
MIT — free and open source.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.