MCP directory
MS

MCP SSH Gateway

by github.com/d00mus · v7.0.0 · updated Sep 29, 2026

SSH terminals for AI agents: stateful shells, exit codes the moment a command ends, router CLIs.

PyPI

Run it locally

Install the package and point your AI client at it.

PyPI

uvx mcp-ssh-gateway==7.0.0

Environment variables

  • SSH_SERVERS_CONFIG

    Path to the JSON file with SSH server targets, or an inline JSON string. Overridden by --servers-config.

  • SSH_MCP_CACHE_DIR

    Where logs and known_hosts are kept. Default: the user cache directory.

  • SSH_READ_ONLY

    Set to true/1 to force the global read-only guardrail.

  • SSH_COMMAND_BLACKLIST

    Comma-separated global prohibited command patterns.

More MCP servers