Ssh MCP Server

SSH Model Context Protocol Server - Connect to SSH servers and execute commands via AI assistants.

Local serverstdioPython

What is the Ssh MCP server?

SSH Model Context Protocol Server - Connect to SSH servers and execute commands via AI assistants. The ssh mcp server wraps that behind the Model Context Protocol, so an assistant can use it rather than through you.

What it actually does

[执行结果] CONTAINER ID IMAGE COMMAND STATUS PORTS abc123 nginx "nginx" Up 2 days 80:80 ```

Configuration

You will need 8 environment variables: SSH_HOST, SSH_USER, SSH_PASSWORD, SSH_PORT, SSH_TIMEOUT, SSH_KEEPALIVE_INTERVAL, SSH_SESSION_TIMEOUT, SSH_CLIENT_TYPE. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Adding it to your client

The server ships on PyPI as ssh-licco, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

When to reach for it

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by Echoqili; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Ssh's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the ssh mcp server does with a few real requests.

How to install the Ssh MCP server

{
  "mcpServers": {
    "ssh": {
      "command": "python -m ssh_mcp.server"
    }
  }
}

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

Configuration

VariableDescriptionRequired
SSH_HOSTEndpoint or connection string the server talks to.Optional
SSH_USERConfiguration value read at startup.Optional
SSH_PASSWORDConfiguration value read at startup.Optional
SSH_PORTConfiguration value read at startup.Optional
SSH_TIMEOUTConfiguration value read at startup.Optional
SSH_KEEPALIVE_INTERVALConfiguration value read at startup.Optional
SSH_SESSION_TIMEOUTConfiguration value read at startup.Optional
SSH_CLIENT_TYPEConfiguration value read at startup.Optional

Frequently asked questions

It connects Ssh to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Ssh directly.