Back to Apps

MCP SSH Server
by denysvitali
Persistent SSH shell sessions for AI agents with host allowlisting and PTY support.
0 stars
Works in:claude
Exposes:Tools
What it does
This server enables AI agents to establish and maintain persistent SSH connections to remote hosts. Unlike standard one-off command execution, this server preserves the environment and working directory state across multiple calls, effectively giving the AI a real shell session.
Tools
ssh_connect: Establishes a new persistent SSH session.ssh_execute: Runs a command in an active session (state persists).ssh_execute_async: Starts a long-running command in the background.ssh_job_status: Checks the status and output of an async job.ssh_job_list: Lists all active background jobs for a connection.ssh_close: Terminates a connection and cleans up the session.ssh_list: Displays all currently active SSH connections.
Installation
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"ssh": {
"command": "/path/to/mcp-ssh",
"args": [
"--allowed-hosts",
"192.168.1.*,*.example.com"
]
}
}
}
Supported hosts
- Claude Desktop
Choose your AI client and follow the steps below.
Claude Desktop
Add to claude_desktop_config.json with the --allowed-hosts flag to restrict access.





