Skip to content
Grok

SSH Session MCP for Grok

io.github.zw-awa/ssh-session-mcp

Shared SSH PTY runtime for MCP clients with viewer, input lock, async tracking, and policy rules.

client:Grok transport:stdio runtime:npm

Install SSH Session MCP in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "ssh-session-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ssh-session-mcp"
      ],
      "env": {
        "SSH_MCP_CONFIG": "<SSH_MCP_CONFIG>",
        "SSH_MCP_INSTANCE": "<SSH_MCP_INSTANCE>",
        "VIEWER_PORT": "<VIEWER_PORT>",
        "VIEWER_HOST": "<VIEWER_HOST>",
        "AUTO_OPEN_TERMINAL": "<AUTO_OPEN_TERMINAL>",
        "SSH_MCP_MODE": "<SSH_MCP_MODE>",
        "SSH_MCP_LOCAL": "<SSH_MCP_LOCAL>",
        "SSH_MCP_DEBUG": "<SSH_MCP_DEBUG>",
        "SSH_HOST": "<SSH_HOST>",
        "SSH_PORT": "<SSH_PORT>",
        "SSH_USER": "<SSH_USER>",
        "SSH_PASSWORD": "<SSH_PASSWORD>",
        "SSH_KEY": "<SSH_KEY>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

SSH Session MCP in other clients