ssh-mcp-pro
Policy-controlled SSH sessions, file transfer and tunnels for MCP clients
ssh-mcp-pro is an open-source MCP server for cloud and infrastructure. It can run locally on your machine or as a hosted remote server.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, Linux
- Runs
- Locally or Remotely
- What it can do
- Can change data (4 tools)
- Version
- 1.19.3
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add ssh-mcp-pro -- npx -y ssh-mcp-proAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"ssh-mcp-pro": {
"command": "npx",
"args": [
"-y",
"ssh-mcp-pro"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"ssh-mcp-pro": {
"command": "npx",
"args": [
"-y",
"ssh-mcp-pro"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add ssh-mcp-pro -- npx -y ssh-mcp-proOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.ssh-mcp-pro]
command = "npx"
args = ["-y", "ssh-mcp-pro"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"ssh-mcp-pro": {
"command": "npx",
"args": [
"-y",
"ssh-mcp-pro"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "ssh-mcp-pro": { "command": "npx", "args": [ "-y", "ssh-mcp-pro" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "ssh-mcp-pro": { "command": "npx", "args": [ "-y", "ssh-mcp-pro" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "ssh-mcp-pro": { "command": "npx", "args": [ "-y", "ssh-mcp-pro" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "ssh-mcp-pro": { "command": "npx", "args": [ "-y", "ssh-mcp-pro" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
SSH_MCP_HTTP_ALLOWED_ORIGINSComma-separated allowed browser origins for Streamable HTTP clients. Keep this restricted when not using loopback.SSH_MCP_HTTP_BEARER_TOKEN_FILEPath to a bearer token file. Required for non-loopback HTTP bindings.SSH_MCP_HTTP_PUBLIC_URLStable HTTPS public /mcp URL. Required for non-loopback HTTP bindings.SSH_MCP_HTTP_TRUST_PROXYSet to true only behind a trusted reverse proxy that controls forwarded headers.
About ssh-mcp-pro
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.
Tools this server provides (13)
Taken from the project documentation; the running server may differ.
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_shellName suggests: changes
- Runs a shell command on an enrolled device
- process_startName suggests: changes
- Starts a managed process
- process_readName suggests: reads
- Reads managed process output
- process_input
- Sends input to a managed process
- process_stopName suggests: changes
- Stops a managed process
- file_searchName suggests: reads
- Finds files
- file_content_searchName suggests: reads
- Searches file contents
- file_inspectName suggests: reads
- Stats or lists a path
- file_readName suggests: reads
- Reads a file
- file_manage
- Creates, copies, moves or removes paths
- file_writeName suggests: changes
- Writes a file
- file_replace
- Replaces file content with preview and expected hash
What it does
- 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
Pricing
Open source
ssh-mcp-pro 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.


