# ssh-mcp-pro

> ssh-mcp-pro is an open-source MCP server for cloud and infrastructure. Policy-controlled SSH sessions, file transfer and tunnels for MCP clients. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/oaslananka/ssh-mcp-pro
- **MCP Registry name:** io.github.oaslananka/ssh-mcp-pro
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

ssh-mcp-pro puts guardrails between an agent and a remote host. Policy settings, mostly SSH_MCP_* environment variables or a JSON policy file, decide which hosts, commands, remote paths and tunnel binds are allowed. Defaults are conservative: strict host-key checking, root login off, destructive commands and raw sudo disabled, and 20 concurrent sessions with 15-minute lifetimes. A policy mode of explain lets you see decisions without enforcing them.

It runs over stdio for local use, or over Streamable HTTP; non-loopback HTTP requires a bearer token file and a public HTTPS URL. Requests are rate limited globally and per session, and file reads, writes and transfers are size capped. Preferred operations are idempotent ensure-style package and service tools rather than raw sudo.

The README also describes a hosted connector where enrolled computers are managed through generic tools such as run_shell, process control and file search, read and replace, with a Full Admin profile limited to one OS account. It does not provide GUI, mouse or screen control.

## Features

- **Policy engine:** Restricts hosts, commands, paths and tunnel binds, with an enforce or explain mode.
- **Strict host keys:** Verifies host keys against known_hosts by default.
- **Two transports:** Runs over stdio or Streamable HTTP with bearer-token protection off loopback.
- **Rate and size limits:** Caps requests, output, file sizes and transfer sizes.
- **File and process tools:** Searches, reads, writes and replaces files and manages processes on the target.
- **Tunnels and transfers:** Creates SSH tunnels and moves artifacts under policy.
- **Container images:** Publishes linux/amd64 and arm64 images to GitHub Container Registry.

## Good for

- Inspect a bastion's OS and disk usage through an agent
- Run guarded maintenance commands on servers
- Transfer build artifacts to a host within size limits
- Let an agent edit remote files with hash-checked replacements
- Enroll a computer for remote management from an MCP client

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add ssh-mcp-pro -- npx -y ssh-mcp-pro
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add ssh-mcp-pro -- npx -y ssh-mcp-pro
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.ssh-mcp-pro]
command = "npx"
args = ["-y", "ssh-mcp-pro"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user ssh-mcp-pro npx -- -y ssh-mcp-pro

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ssh-mcp-pro": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-mcp-pro"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 4 of 13 tools change data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `os_detect`: Reports the target operating system
- `run_shell` (name suggests: changes): Runs a shell command on an enrolled device
- `process_start` (name suggests: changes): Starts a managed process
- `process_read` (name suggests: reads): Reads managed process output
- `process_input`: Sends input to a managed process
- `process_stop` (name suggests: changes): Stops a managed process
- `file_search` (name suggests: reads): Finds files
- `file_content_search` (name suggests: reads): Searches file contents
- `file_inspect` (name suggests: reads): Stats or lists a path
- `file_read` (name suggests: reads): Reads a file
- `file_manage`: Creates, copies, moves or removes paths
- `file_write` (name suggests: changes): Writes a file
- `file_replace`: Replaces file content with preview and expected hash

## FAQ

### Which Node versions are required?

Node 22.22.2 or newer, 24.15.0 or newer, or 26.3.0 or newer.

### What is the default host-key policy?

Strict, using ~/.ssh/known_hosts; accept-new and insecure are optional.

### Can ssh-mcp-pro run destructive commands?

Not by default; destructive commands and filesystem operations must be explicitly allowed.

### Can ssh-mcp-pro control a desktop GUI?

No. GUI, mouse, keyboard and browser interaction need desktop-session integration it does not provide.

### Is ssh-mcp-pro free?

Yes. ssh-mcp-pro is open source, so you can use and self-host it for free.

### How do I add ssh-mcp-pro to Claude Code?

Run this command in your terminal: claude mcp add ssh-mcp-pro -- npx -y ssh-mcp-pro

### What are the best alternatives to ssh-mcp-pro?

The closest alternatives to ssh-mcp-pro are REA, awslabs, AiSOC, kubeshark and Azure MCP Server.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [awslabs](https://ai-powered.com/mcp/awslabs): awslabs is an open-source MCP server for cloud and infrastructure.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [kubeshark](https://ai-powered.com/mcp/kubeshark): kubeshark is an open-source MCP server for cloud and infrastructure.
- [Azure MCP Server](https://ai-powered.com/mcp/azure-mcp-server): Azure MCP Server is an open-source MCP server for cloud and infrastructure.
- [x64dbg-mcp-server](https://ai-powered.com/mcp/x64dbg-mcp-server): x64dbg-mcp-server is an open-source MCP server for ai models and llm tooling.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [Treasure Map](https://ai-powered.com/mcp/treasure-map): Treasure Map is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/ssh-mcp-pro
