Python Ssh MCP Server

An SSH MCP server built in Python on top of FastMCP. The goal: give an LLM real SSH access to many hosts while keeping fine-grained control over what

Local serverstdioPython

What is the Python Ssh MCP Server?

An SSH MCP server built in Python on top of FastMCP. The goal: give an LLM real SSH access to many hosts while keeping fine-grained control over what it can and

What you get

  • MCP-compliant server — exposing SSH over stdio (or HTTP if you prefer); transport speaks MCP directly, no shim
  • Four-tier access model — — read / low-access / dangerous / sudo. Each tier is toggled with its own env flag and enforced via FastMCP Visibility transforms. Default: read-only
  • Ten tool groups — orthogonal to tiers (host, session, sftp-read, file-ops, exec, sudo, shell, docker, systemctl, pkg). SSH_ENABLED_GROUPS trims the catalog to what a given assistant actually needs
  • 100 tools — see TOOLS.md for the complete per-tool reference. Highlights:
  • Read-only probes (ping, host info, disk usage, processes, alerts, known-hosts verify, user info, host notes, server-info)
  • SFTP reads (list, stat, download, find, file_hash) with remote-realpath confinement

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.

How to install the Python Ssh MCP Server

{
  "mcpServers": {
    "ssh-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/Nightreaver/python-ssh-mcp",
        "ssh-mcp"
      ],
      "env": {
        "LOG_LEVEL": "INFO",
        "ALLOW_LOW_ACCESS_TOOLS": "false",
        "ALLOW_DANGEROUS_TOOLS": "false",
        "ALLOW_SUDO": "false"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
LOG_LEVELDeclared in the maintainer’s client configuration.Check documentation
ALLOW_LOW_ACCESS_TOOLSDeclared in the maintainer’s client configuration.Check documentation
ALLOW_DANGEROUS_TOOLSDeclared in the maintainer’s client configuration.Check documentation
ALLOW_SUDODeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Python Ssh MCP to Cursor.”
  • “Use Python Ssh MCP to Kilocode.”
  • “Use Python Ssh MCP to HostNotAllowed.”

Frequently asked questions

An SSH MCP server built in Python on top of FastMCP. The goal: give an LLM real SSH access to many hosts while keeping fine-grained control over what it can and Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.