exec
read-command
How to use it
exec is exposed by the Ssh MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the exec tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Ssh MCP
claude mcp add --transport stdio ssh-mcp -- ssh-mcpOther tools in Ssh MCP (13)
Close a session, releasing resources
Discover available hosts and connection status
List active sessions per host
Create a named interactive (stateful) or background session
Execute with sudo (always requires approval)
Execute allowlisted read-only commands (ls, cat, grep, ...)
Read output from background sessions (e.g., tail -f)
Execute arbitrary commands (destructive ones need approval)
Download a file via SFTP
Upload a file via SFTP
Send INT/TERM/KILL to a remote PID
privileged-command
v2