S

SSH MCP

by gelse · io.github.gelse/ssh-mcp

Enables AI agents to execute SSH commands and transfer files via SFTP through a centralized HTTP gateway with per-client authorization, layered command policies, audit logging, rate limiting, circuit breakers, and connection pooling.

oci Unknown transport GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-gelse-ssh-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "CONFIG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_ENABLED=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_TOKEN=<YOUR_VALUE>",
        "-e",
        "SSH_KEY_PATH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_DIR=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_SSH_KEY=<YOUR_VALUE>",
        "-e",
        "MAX_OUTPUT_LENGTH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_CONFIG_PATH=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_SESSION_COOKIE_SECURE=<YOUR_VALUE>",
        "ghcr.io/gelse/ssh-mcp:0.3.0"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-gelse-ssh-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "CONFIG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_ENABLED=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_TOKEN=<YOUR_VALUE>",
        "-e",
        "SSH_KEY_PATH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_DIR=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_SSH_KEY=<YOUR_VALUE>",
        "-e",
        "MAX_OUTPUT_LENGTH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_CONFIG_PATH=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_SESSION_COOKIE_SECURE=<YOUR_VALUE>",
        "ghcr.io/gelse/ssh-mcp:0.3.0"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-gelse-ssh-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "CONFIG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_ENABLED=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_TOKEN=<YOUR_VALUE>",
        "-e",
        "SSH_KEY_PATH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_DIR=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_SSH_KEY=<YOUR_VALUE>",
        "-e",
        "MAX_OUTPUT_LENGTH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_CONFIG_PATH=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_SESSION_COOKIE_SECURE=<YOUR_VALUE>",
        "ghcr.io/gelse/ssh-mcp:0.3.0"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-gelse-ssh-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "CONFIG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_ENABLED=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_TOKEN=<YOUR_VALUE>",
        "-e",
        "SSH_KEY_PATH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_DIR=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_SSH_KEY=<YOUR_VALUE>",
        "-e",
        "MAX_OUTPUT_LENGTH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_CONFIG_PATH=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_SESSION_COOKIE_SECURE=<YOUR_VALUE>",
        "ghcr.io/gelse/ssh-mcp:0.3.0"
      ]
    }
  }
}

Reload the VS Code window to activate.

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

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-gelse-ssh-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "CONFIG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_ENABLED=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_TOKEN=<YOUR_VALUE>",
        "-e",
        "SSH_KEY_PATH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_DIR=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_SSH_KEY=<YOUR_VALUE>",
        "-e",
        "MAX_OUTPUT_LENGTH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_CONFIG_PATH=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_SESSION_COOKIE_SECURE=<YOUR_VALUE>",
        "ghcr.io/gelse/ssh-mcp:0.3.0"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-gelse-ssh-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "CONFIG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_ENABLED=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_TOKEN=<YOUR_VALUE>",
        "-e",
        "SSH_KEY_PATH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_DIR=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_SSH_KEY=<YOUR_VALUE>",
        "-e",
        "MAX_OUTPUT_LENGTH=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "MCP_SSH_CONFIG_PATH=<YOUR_VALUE>",
        "-e",
        "CONFIG_API_SESSION_COOKIE_SECURE=<YOUR_VALUE>",
        "ghcr.io/gelse/ssh-mcp:0.3.0"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
CONFIG_DIR No Legacy fallback for MCP_SSH_CONFIG_PATH. Default: /config
LOG_DIR No Legacy fallback for MCP_SSH_LOG_DIR. Default: /logs
CONFIG_API_ENABLED No Set to true to enable the Configuration API and Web Dashboard. Default: false
CONFIG_API_TOKEN secret No Bearer token for authenticating API requests (required when CONFIG_API_ENABLED is true).
SSH_KEY_PATH No Legacy fallback for MCP_SSH_SSH_KEY.
MCP_SSH_LOG_DIR No Path to the log directory. Default: /logs
MCP_SSH_SSH_KEY No Path to the SSH private key file. Default: ssh_key
MAX_OUTPUT_LENGTH No Maximum bytes of command output returned to client. Default: 50000
MCP_SSH_LOG_LEVEL No Overrides the config-file default log level (e.g., DEBUG, INFO, WARNING, ERROR).
MCP_SSH_CONFIG_PATH No Path to the config directory. Set via --config CLI flag or this environment variable. Default: /config
CONFIG_API_SESSION_COOKIE_SECURE No Set to false to disable the Secure flag on session cookies (for HTTP-only local development). Default: true

Similar servers