Ssh MCP Server

An MCP server for SSH connections and file operations.

Local serverstdioPython

What is the Ssh MCP Server?

An MCP server for SSH connections and file operations.

What it actually does

The SSH connection parameters can be configured using environment variables in the MCP settings:

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
connectConnect to an SSH server
disconnectDisconnect from the SSH server
executeExecute a command on the SSH server
uploadUpload a file to the SSH server
downloadDownload a file from the SSH server
list_filesList files in a directory on the SSH server

How to install the Ssh MCP Server

{
  "mcpServers": {
    "ssh-connect": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/ssh-connect",
        "run",
        "ssh-connect"
      ],
      "env": {
        "SSH_HOST": "example.com",
        "SSH_PORT": "22",
        "SSH_USERNAME": "username",
        "SSH_PASSWORD": "password",
        "SSH_KEY_PATH": "/path/to/private_key",
        "SSH_KEY_PASSPHRASE": "key_passphrase"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
SSH_HOSTEndpoint or connection string the server talks to.Optional
SSH_PORTConfiguration value read at startup.Optional
SSH_USERNAMEConfiguration value read at startup.Optional
SSH_PASSWORDConfiguration value read at startup.Optional
SSH_KEY_PATHCredential the server authenticates with.Yes
SSH_KEY_PASSPHRASECredential the server authenticates with.Yes

Example prompts to try

  • “Use Ssh to connect.”
  • “Use Ssh to disconnect.”
  • “Use Ssh to execute.”

Frequently asked questions

It supports password authentication via `SSH_PASSWORD` and private key authentication via `SSH_KEY_PATH` (with optional `SSH_KEY_PASSPHRASE`). You must provide at least one of these.