MCP Server Studio

SSH — policy-gated remote access MCP server

Policy-gated, audited SSH for Linux and Windows hosts: roles, approvals, and an audit log.

Registry name: io.github.tufantunc/ssh-mcp

Publisher
tufantunc
Runs
Runs locally
Package
npm
Version
2.30.0
Category
Other
Updated
2026-12-01

Source code on GitHub

Set up SSH — policy-gated remote access (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "ssh-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "SSH_MCP_PASSWORD": "<SSH_MCP_PASSWORD>",
        "SSH_MCP_KEY": "<SSH_MCP_KEY>",
        "SSH_MCP_PASSPHRASE": "<SSH_MCP_PASSPHRASE>",
        "SSH_MCP_SUDO_PASSWORD": "<SSH_MCP_SUDO_PASSWORD>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add ssh-mcp -e SSH_MCP_PASSWORD='<SSH_MCP_PASSWORD>' -e SSH_MCP_KEY='<SSH_MCP_KEY>' -e SSH_MCP_PASSPHRASE='<SSH_MCP_PASSPHRASE>' -e SSH_MCP_SUDO_PASSWORD='<SSH_MCP_SUDO_PASSWORD>' -- npx -y [email protected]

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "ssh-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "SSH_MCP_PASSWORD": "<SSH_MCP_PASSWORD>",
        "SSH_MCP_KEY": "<SSH_MCP_KEY>",
        "SSH_MCP_PASSPHRASE": "<SSH_MCP_PASSPHRASE>",
        "SSH_MCP_SUDO_PASSWORD": "<SSH_MCP_SUDO_PASSWORD>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "ssh-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "SSH_MCP_PASSWORD": "<SSH_MCP_PASSWORD>",
        "SSH_MCP_KEY": "<SSH_MCP_KEY>",
        "SSH_MCP_PASSPHRASE": "<SSH_MCP_PASSPHRASE>",
        "SSH_MCP_SUDO_PASSWORD": "<SSH_MCP_SUDO_PASSWORD>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "ssh-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "SSH_MCP_PASSWORD": "<SSH_MCP_PASSWORD>",
        "SSH_MCP_KEY": "<SSH_MCP_KEY>",
        "SSH_MCP_PASSPHRASE": "<SSH_MCP_PASSPHRASE>",
        "SSH_MCP_SUDO_PASSWORD": "<SSH_MCP_SUDO_PASSWORD>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
SSH_MCP_PASSWORDNoPassword for the configured profile; a per-profile SSH_MCP_<PROFILE>_PASSWORD takes precedence. Credentials are never accepted as CLI arguments.
SSH_MCP_KEYNoPath to the private key file to authenticate with — the path, not the key material. A per-profile SSH_MCP_<PROFILE>_KEY takes precedence.
SSH_MCP_PASSPHRASENoPassphrase for an encrypted private key.
SSH_MCP_SUDO_PASSWORDNoPassword the sudo tool escalates with, when the policy in force allows the privileged class.

More other MCP servers