SSH Agent

v1.3.8Developer Toolsstable

A server that enables secure interaction with remote SSH hosts through standardized MCP interface, providing functions like listing hosts, executing commands, and transferring files using native SSH tools.

linuxmcpsshagentmodel-context-protocol
Share:
70
Stars
0
Downloads
0
Weekly
0/5

What is SSH Agent?

SSH Agent is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to server that enables secure interaction with remote ssh hosts through standardized mcp interface, providing functions like listing hosts, executing commands, and transferring files using native ssh too...

A server that enables secure interaction with remote SSH hosts through standardized MCP interface, providing functions like listing hosts, executing commands, and transferring files using native SSH tools.

This server falls under the Developer Tools and File Systems categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A server that enables secure interaction with remote SSH hos

Use Cases

Execute commands on remote SSH hosts securely.
List and manage SSH hosts through MCP interface.
Transfer files to remote servers via native SSH tools.
AiondaDotCom

Maintainer

LicenseMIT License
Languagejavascript
Versionv1.3.8
UpdatedMay 9, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @aiondadotcom/mcp-ssh

Manual Installation

npx -y @aiondadotcom/mcp-ssh

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use SSH Agent

MCP SSH Agent exposes your SSH-configured remote hosts to AI assistants through a standardized MCP interface, allowing Claude and other models to list hosts, execute remote commands, run command batches, upload files, download files, and check connectivity — all without the AI ever seeing your passwords or private keys. The server reads from your existing ~/.ssh/config so no additional host configuration is required, and passwords stored as SSH config comments never leave the local machine.

Prerequisites

  • Node.js 20 or higher installed
  • ssh and scp command-line tools available in your PATH (standard on macOS and Linux)
  • A configured ~/.ssh/config file with at least one Host entry
  • SSH key authentication set up for target hosts (key files must have 600 permissions)
  • An MCP-compatible client such as Claude Desktop
1

Install the MCP SSH package

Install the package globally with npm or use npx to run it without installing. The package name is @aiondadotcom/mcp-ssh.

npm install -g @aiondadotcom/mcp-ssh
# or run directly without installing:
npx @aiondadotcom/mcp-ssh
2

Verify your SSH configuration

Make sure your ~/.ssh/config has the correct file permissions and contains the hosts you want Claude to manage.

chmod 600 ~/.ssh/config
cat ~/.ssh/config
# Verify at least one Host block is present
3

Add the server to Claude Desktop

Edit your Claude Desktop configuration file to register the MCP SSH server. No API keys are needed — authentication is handled by your SSH config.

{
  "mcpServers": {
    "mcp-ssh": {
      "command": "npx",
      "args": ["@aiondadotcom/mcp-ssh"]
    }
  }
}
4

Restart Claude Desktop

Quit and reopen Claude Desktop so it picks up the new MCP server configuration. The SSH server starts on demand when Claude makes its first tool call.

5

Test connectivity

Ask Claude to list your known SSH hosts or check connectivity to a specific host alias to confirm the server is working correctly.

SSH Agent Examples

Client configuration

Minimal Claude Desktop configuration for the MCP SSH Agent using npx to run the package without a global install.

{
  "mcpServers": {
    "mcp-ssh": {
      "command": "npx",
      "args": ["@aiondadotcom/mcp-ssh"]
    }
  }
}

Prompts to try

Example prompts that use MCP SSH Agent tools to manage remote servers.

- "List all SSH hosts I have configured"
- "Run 'df -h' on my production server and show me disk usage"
- "Check if I can connect to the staging host"
- "Upload the file /tmp/deploy.sh to /opt/scripts/ on the web server"
- "Run these three commands on the db server: check disk space, show running MySQL processes, then show the last 20 lines of the error log"

Troubleshooting SSH Agent

runRemoteCommand fails with 'Permission denied (publickey)'

Ensure the SSH key referenced in your ~/.ssh/config IdentityFile has permissions 600 (chmod 600 ~/.ssh/id_rsa). Also verify the public key is present in ~/.ssh/authorized_keys on the remote host.

listKnownHosts returns an empty list

The server reads from ~/.ssh/config. Confirm the file exists, has 600 permissions, and contains at least one 'Host' block. Hosts defined only in ~/.ssh/known_hosts (without a config entry) may not appear.

Password-authenticated hosts fail to connect

Add a # @password:yourPassword comment directly below the Host block in ~/.ssh/config. This annotation lets the server pass the password automatically via SSH — passwords are never sent to the AI model.

Frequently Asked Questions about SSH Agent

What is SSH Agent?

SSH Agent is a Model Context Protocol (MCP) server that server that enables secure interaction with remote ssh hosts through standardized mcp interface, providing functions like listing hosts, executing commands, and transferring files using native ssh tools. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install SSH Agent?

Install via npm with the command: npx -y @aiondadotcom/mcp-ssh. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with SSH Agent?

SSH Agent works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is SSH Agent free to use?

Yes, SSH Agent is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-ssh-agent": { "command": "npx", "args": ["-y", "@aiondadotcom/mcp-ssh"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use SSH Agent?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides