
tufantunc/ssh-mcp
SSH control for Linux and Windows servers: execute remote shell commands
by tufantuncOpen source
Description
SSH MCP Server is a Model Context Protocol server that lets LLM agents run commands on remote hosts over SSH under tight controls. Before anything runs, each command is classified, checked against a matrix of roles and host groups, and destructive work can be held for human approval; every decision is written to an audit log. The README is frank that giving an LLM shell access carries risk that prompt injection can exploit, so the server aims to limit damage rather than remove it, and it tells users never to point it at a root account or enable automatic approval on production. Without a config file the server starts but refuses every tool call. The config, a TOML file in a per-platform location on Linux, macOS or Windows, defines hosts, roles and policy rules.…
Highlights
- SSH command execution for MCP clients
- Command classification before execution
- Role and host-group authorization policies
- Human-in-the-loop approval for destructive commands
- Full audit logging of decisions
- Refuses all tool calls until configured
Ratings & Reviews
No ratings yet
Be the first to rate tufantunc/ssh-mcp.
People also visit
tufantunc/ssh-mcp FAQ
What does SSH MCP Server do?
It exposes SSH access to remote hosts as MCP tools so an LLM agent can run commands, with classification, policy checks, approval gates and audit logs around each call.
Is it safe to give an agent shell access?
The project says the risk cannot be removed, only narrowed. It advises never connecting to a root account and never using auto approval on a production profile, and SECURITY.md documents the threat model.
Where does the configuration live?
In config.toml under ~/.config/ssh-mcp on Linux, ~/Library/Application Support/ssh-mcp on macOS, or %APPDATA%\ssh-mcp on Windows.
What happens before I configure it?
The server still completes the MCP handshake and lists its tools, but refuses every tool call, so nothing runs on any host.
What are the best tufantunc/ssh-mcp alternatives?
Popular alternatives to tufantunc/ssh-mcp include chrishayuk/mcp-cli, Decionis Commerce Gate MCP and mcp-developer. See all tufantunc/ssh-mcp alternatives




















