ssh-mcp-server

Ssh MCP Server

ssh-mcp-server connects MCP-compatible assistants and applications to remote SSH hosts for command execution and file transfers. It supports named connections, configurable command restrictions, and local credential management.

Server facts

ssh-mcp-server

Project

Author
classfang
License
ISC

Tech

Runtime / language
node
Transports
stdio
Remote available
No
Authentication
Not specified

Activity

GitHub stars
960
Last commit
Data as of

Overview

Remote SSH work in ssh-mcp-server centers on executing commands, moving files, and selecting configured hosts from an MCP client. The execute-command tool returns output from the connected server, while upload and download move files between local and remote locations. The list-servers tool exposes available SSH configurations. Named connections let callers choose a target for each request, supporting workflows that involve separate development, production, or bastion hosts. Connections can reuse SSH configuration entries or use supplied parameters, with password and private-key authentication, including passphrase-protected keys.

Transport choice determines which operations are available. The default exec mode supports commands and file transfers; shell mode uses a persistent session and command queue for environments such as jump hosts or systems needing shell initialization, but excludes uploads and downloads. Regular-expression allowlists and blocklists constrain command execution, and templates can wrap commands for user switching, containers, or another host hop. SOCKS proxy connections and keyboard-interactive authentication are also documented. SSH credentials remain locally managed rather than being passed to the AI model.

ssh-mcp-server setup notes

  • ssh-mcp-server records stdio only; confirm a network transport upstream before planning remote access.

Related MCP servers