loading…
Search for a command to run...
loading…
MCP server exposing SSH control for Linux and Windows servers. Allows long running commands and the ability to perform commands on multiple hosts at the same ti
MCP server exposing SSH control for Linux and Windows servers. Allows long running commands and the ability to perform commands on multiple hosts at the same time.
SSH MCP is an MCP server that runs locally on your host that provides the ability to manage and interact with remote SSH hosts. It supports organizing hosts into groups and executing commands across multiple hosts simultaneously.
Checkout the repository:
$ git clone https://github.com/blakerouse/ssh-mcp
Build the binary:
$ go build .
Update the MCP configuration for Claude Desktop:
{
"mcpServers": {
"ssh": {
"command": "<PATH_TO_BUILT_BINARY>"
}
}
}
Restart Claude Desktop
Add a host to a group (multiple formats supported - ssh:// prefix is optional):
add host to production group connecting with 10.0.1.5
add host named web01 to production group connecting with [email protected]:2222
add host to staging group connecting with user:[email protected]
List all groups:
show me all groups
List all hosts:
list all my hosts
List hosts in a specific group:
show me hosts in production group
Get OS info for all hosts in a group:
show OS information for production group
Get OS info for specific hosts:
show OS information for production:web01 and production:web02
Run a command on all hosts in a group:
run "uptime" on production group
check disk space on staging group
Run a command on specific hosts:
run "systemctl status nginx" on production:web01 and production:web02
Commands that complete within 30 seconds will return results immediately. Longer commands are automatically moved to background:
run "apt-get update && apt-get upgrade -y" on production group
# If this takes >30s, you'll get a command ID to check later
Force a command to run in background immediately:
run "apt-get update && apt-get upgrade -y" on production group in the background
Check the status of a background command:
show me the status of command abc-123-def
show me the status of the last command
List all background commands:
list all background commands
show me all running commands
Cancel a running command:
cancel command abc-123-def
stop the running command abc-123-def
Update cached OS information:
update OS information for production group
refresh OS info for staging:db01
Remove a host:
remove production:web01
remove host web02 from staging group
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"blakerouse-ssh-mcp": {
"command": "npx",
"args": []
}
}
}