Ssh Client MCP Server
Local MCP server that lets AI clients run shell commands on remote hosts over SSH
Ssh Client MCP Server is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, macOS, Linux
- Runs
- Locally
- What it can do
- Can change data (2 tools)
- Version
- 1.6.3
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add ssh-client-mcp-server -- npx -y ssh-client-mcp-serverAdd --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-client-mcp-server": {
"command": "npx",
"args": [
"-y",
"ssh-client-mcp-server"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"ssh-client-mcp-server": {
"command": "npx",
"args": [
"-y",
"ssh-client-mcp-server"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"ssh-client-mcp-server": {
"command": "npx",
"args": [
"-y",
"ssh-client-mcp-server"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"ssh-client-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ssh-client-mcp-server"
]
}
}
}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-client-mcp-server -- npx -y ssh-client-mcp-serverOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.ssh-client-mcp-server]
command = "npx"
args = ["-y", "ssh-client-mcp-server"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"ssh-client-mcp-server": {
"command": "npx",
"args": [
"-y",
"ssh-client-mcp-server"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "ssh-client-mcp-server": { "command": "npx", "args": [ "-y", "ssh-client-mcp-server" ] } } }Or run: gemini mcp add -s user ssh-client-mcp-server npx -- -y ssh-client-mcp-server
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "ssh-client-mcp-server": { "command": "npx", "args": [ "-y", "ssh-client-mcp-server" ] } } }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-client-mcp-server": { "command": "npx", "args": [ "-y", "ssh-client-mcp-server" ] } } }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-client-mcp-server": { "command": "npx", "args": [ "-y", "ssh-client-mcp-server" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "ssh-client-mcp-server": { "command": "npx", "args": [ "-y", "ssh-client-mcp-server" ] } } }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-client-mcp-server": { "command": "npx", "args": [ "-y", "ssh-client-mcp-server" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "ssh-client-mcp-server": { "command": "npx", "args": [ "-y", "ssh-client-mcp-server" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "ssh-client-mcp-server": { "command": "npx", "args": [ "-y", "ssh-client-mcp-server" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Ssh Client MCP Server
Runs as a local stdio process and gives MCP-compatible assistants a way to execute commands on any reachable SSH server, including Linux, macOS and Windows machines with OpenSSH. Connection details such as host, user, port and authentication are supplied as command-line flags when the server starts.
Besides a single exec tool that returns stdout, stderr and exit status, the server offers tmux-backed tools for driving long-running interactive processes across several calls. Authentication can come from a password, a key file, a key injected through an environment variable, or a running ssh-agent, so private keys can stay in a password manager.
It suits developers and operators who want an assistant to inspect or manage a remote machine, with the caveat that granting shell access to an LLM calls for restricted account privileges and command auditing.
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 6 tools change data; 2 names don't say.
From the server's own tool labels and tool names; not verified by us.
- execName suggests: changes
- Execute a shell command on the remote SSH server and return its output.
- info
- Server name, version, runtime, and registered tool counts.
- tmux_listName suggests: reads
- List live tmux sessions.
- tmux_sendName suggests: changes
- Type input into a tmux session, pressing Enter unless submit is false.
- tmux_readName suggests: reads
- Return the recent pane transcript of a tmux session.
- tmux_keys
- Send control or special keys to a tmux session.
What it does
- Remote command execution
- Runs a shell command on the remote host and returns its output with the exit code and stderr clearly marked.
- Flexible authentication
- Supports password, key file, key from an environment variable, or the system ssh-agent.
- Persistent tmux sessions
- Sends input, reads pane transcripts and sends control keys to long-running tmux sessions on the remote host.
- Startup validation
- Checks configuration and key loading when the server starts, warning on stderr rather than stopping.
- Path expansion for keys
- Key paths accept tilde, environment variables and relative paths, failing with a typed error when a variable is unset.
- Built-in info tool
- Reports server name, version, runtime and registered tool counts.
Good for
- Letting an assistant check logs, disk usage or service status on a remote server
- Running deployment or maintenance commands on a host from an MCP client
- Driving a remote terminal-based coding agent across multiple calls via tmux
- Keeping SSH keys in a password manager while still giving an assistant access to a host
Pricing
Open source
Free and MIT licensed; run locally.
Ssh Client MCP Server FAQ
Which authentication methods are supported?
Password, a private key file, a private key read from an environment variable, or the system ssh-agent, with precedence in that order.
Does the remote host need tmux for the exec tool?
No. tmux is only required for the tmux_* tools, and the remote account needs a POSIX login shell for them.
How is the server installed?
It runs on demand through npx, or can be installed globally from npm with npm install -g ssh-client-mcp-server.
Is Ssh Client MCP Server free?
Yes. Ssh Client MCP Server is open source, so you can use and self-host it for free.
How do I add Ssh Client MCP Server to Claude Code?
Run this command in your terminal: claude mcp add ssh-client-mcp-server -- npx -y ssh-client-mcp-server
What are the best alternatives to Ssh Client MCP Server?
The closest alternatives to Ssh Client MCP Server are SSH LICCO MCP Server, Remote Ssh MCP, 2native SSH MCP Server, SSH MCP Server and Cygnus Ssh MCP.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.