mcp-ssh
A Model Context Protocol (MCP) server for managing and controlling SSH connections.
claude mcp add --transport stdio aiondadotcom-mcp-ssh npx @aiondadotcom/mcp-ssh \ --env MCP_SILENT="true (optional) - disable debug output when running as an MCP server"
How to use
The MCP SSH Agent exposes a set of MCP tools that let you manage SSH hosts and run remote commands through Claude Desktop or any MCP-compatible client. It automatically discovers hosts from your local SSH configuration (~/.ssh/config) and known_hosts, enabling reliable, native SSH and SCP operations without implementing SSH logic in the app. You can list known hosts, run commands on remote machines, upload/download files, and batch multiple commands in sequence. Use it to manage your SSH workflow through natural language requests or scripted MCP messages.
To start, run the server via npx (recommended) or your preferred installation method. Once running, an MCP client can invoke functions like listKnownHosts, runRemoteCommand, getHostInfo, checkConnectivity, uploadFile, downloadFile, and runCommandBatch to perform common SSH tasks. The agent streams clean JSON over STDIO, so integrations can parse responses and errors consistently.
How to install
Prerequisites:
- Node.js 18 or higher
- npm or yarn
- Access to a system with SSH client (ssh, scp) installed
- SSH configuration files (~/.ssh/config and ~/.ssh/known_hosts) configured
Step-by-step installation:
- Quick start with npx (recommended):
npx @aiondadotcom/mcp-ssh
- Global installation (optional):
npm install -g @aiondadotcom/mcp-ssh
mcp-ssh
- Local development workflow:
git clone https://github.com/aiondadotcom/mcp-ssh.git
cd mcp-ssh
npm install
npm start
- Desktop integration (Claude Desktop):
- Install via the provided .dxt extension or configure Claude Desktop to point to the MCP server using the npx command shown above in your Claude Desktop config.
- Example Claude config snippet is provided in the README under "Claude Desktop Integration".
Additional notes
- The server relies on native ssh/scp commands for reliability; ensure these tools are available in your environment.
- The agent reads SSH hosts from ~/.ssh/config and ~/.ssh/known_hosts. It supports Include directives and warns about the SSH Include directive bug to place Include statements at the beginning of the config.
- Environment variable MCP_SILENT can be used to suppress debug output when running as an MCP server; by default, the server will emit standard debugging information.
- If you encounter connectivity issues, verify your SSH keys and agent availability (SSH_AUTH_SOCK) and that Host entries in your config are reachable from the running environment.
- For troubleshooting, enable development mode (npm start) to get verbose logs and stack traces.
Related MCP Servers
Gearsystem
Sega Master System / Game Gear / SG-1000 emulator and debugger for macOS, Windows, Linux, BSD and RetroArch.
time
⏰ Time MCP Server: Giving LLMs Time Awareness Capabilities
unity-editor
An MCP server and client for LLMs to interact with Unity Projects
website-publisher
AI Website builder and publisher MCP. Quickly publish and deploy your AI generated code as real website URL. Support html, css, js, python etc.
ssh
this is a collection of tools that allows your agent to execute commands on your remote servers
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.