Claude Code + SSH through SSHive's MCP server
Let Claude Code run commands on your servers, read remote files, and explore your fleet, via SSHive's local MCP server. One-shot CLI setup, no cloud relay.
Set up Claude Code with SSHive in 4 steps
- 1
Enable the MCP server in SSHive
Open SSHive on macOS, go to Settings → MCP, toggle "Enable MCP server". A random Bearer token appears just below, copy it. The server is now listening on `http://127.0.0.1:49422/mcp`.
- 2
Run the one-shot `claude mcp add` command
In your terminal, paste the command SSHive shows you in the same Settings panel. It tears down any old `sshive` MCP entry and registers the new one in `~/.claude.json` in a single step.
Copy thisclaude mcp remove sshive --scope user 2>/dev/null; claude mcp add --transport http --scope user sshive http://127.0.0.1:49422/mcp --header "Authorization:Bearer <your-token>"
- 3
Restart Claude Code
Quit any running `claude` session and reopen. The next time you run `claude` (or launch the IDE plugin), it loads the new MCP config and discovers the SSHive tools: `ssh_list_sessions`, `ssh_execute`, `sftp_list`, `sftp_read_file`, `sftp_write_file`, `sftp_write_file_chunk`, `sftp_write_from_local_path`.
- 4
Open the SSH sessions you want Claude to see
Claude only sees sessions that are actually connected in SSHive. Open the prod, staging, db-master profiles you want, Claude can now `ssh_list_sessions` to discover them and `ssh_execute` to run commands. Sessions you close vanish from Claude's tools.
What to ask Claude Code once connected
"List all Docker containers on my prod server and tell me which ones have been up the longest."
Claude calls `ssh_list_sessions`, picks the prod profile, runs `docker ps --format "..."` via `ssh_execute`, parses the output and replies in natural language.
"Read the nginx config on staging and tell me which sites it serves."
Claude calls `sftp_list` on `/etc/nginx/sites-enabled/`, then `sftp_read_file` on each entry, summarizes server blocks and listed domains.
"My deploy script just failed on prod, check `/var/log/deploy.log` and tell me what went wrong."
Claude `sftp_read_file`s the log, finds the error stanza, correlates with the previous successful entry, and proposes the likely root cause in plain English.
Why pair Claude Code with SSHive specifically
Frequently asked questions
Does Claude see my SSH private keys?+
Where does the MCP traffic go?+
Can Claude write files to my servers via SFTP?+
Why is MCP macOS-only and not iOS?+
Try SSHive Free for macOS
Get the all-in-one SSH, SFTP, RDP and VNC client for Mac. Free download, no signup required.
Download SSHive Free