narthanaj/ssh-mcp
A secure SSH server for the Model Context Protocol (MCP), enabling LLMs to execute commands on remote hosts
Platform-specific configuration:
{
"mcpServers": {
"ssh-mcp": {
"command": "npx",
"args": [
"-y",
"ssh-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
[](https://github.com/narthanaj/ssh-mcp/actions/workflows/ci.yml) [](https://opensource.org/licenses/MIT) [](https://www.rust-lang.org)
A secure SSH server for the Model Context Protocol (MCP), enabling LLMs to execute commands on remote hosts over SSH.
Built in Rust with compile-time safety guarantees, defense-in-depth security, and strict command validation.
ssh_connect, ssh_execute, ssh_disconnect, ssh_list_sessionssh -ctail -f) are killed automaticallygit clone https://github.com/narthanaj/ssh-mcp.git
cd ssh-mcp
cp config.example.toml config.toml # Edit with your settings
cargo build --releaseAdd to your Claude Code MCP settings (~/.claude/settings.json or project
Loading reviews...