Cursor + SSH through SSHive's MCP server
Let Cursor inspect your running fleet, list containers, read logs, edit configs over SFTP. Local MCP server, no cloud relay.
Set up Cursor with SSHive in 4 steps
- 1
Enable the MCP server in SSHive
Open SSHive on macOS, Settings → MCP, toggle "Enable MCP server". Copy the Bearer token displayed below.
- 2
Open Cursor's MCP settings
In Cursor: Cmd+Shift+J → Cursor Settings → MCP. Click "Add new MCP server" and paste the JSON snippet from SSHive's MCP settings panel (replace `<your-token>` with the actual Bearer token).
Copy this{ "mcpServers": { "sshive": { "type": "http", "url": "http://127.0.0.1:49422/mcp", "headers": { "Authorization": "Bearer <your-token>" } } } } - 3
Reload Cursor
Cmd+Shift+P → "Reload Window". When Cursor restarts, the MCP indicator in the bottom bar should show `sshive` connected with 7 tools. Click it to verify.
- 4
Open SSH sessions to expose
In SSHive, connect to the servers you want Cursor to see (Cursor only sees connected sessions). Now in Cursor chat, ask: "What containers are running on prod?", Cursor calls `ssh_list_sessions`, picks prod, runs `docker ps`, replies.
What to ask Cursor once connected
"Refactor this Dockerfile to match the package versions actually installed on prod."
Cursor pulls `apt list --installed` via `ssh_execute` on the prod session, diffs against your Dockerfile, proposes minimal changes.
"Generate the docker-compose.yml from the running compose stack on staging."
Cursor reads the deployed compose file via `sftp_read_file` and `docker compose config` via `ssh_execute`, produces a clean compose file aligned with reality.
"Tail the api-gateway logs and tell me when the next 500 error happens."
Cursor calls `ssh_execute` with `docker logs -f api-gateway 2>&1 | head -200`, scans for 500-status entries, summarizes the stack trace.
Why pair Cursor with SSHive
Frequently asked questions
Can Cursor accidentally run a destructive command?+
Does this work for Cursor agent mode?+
What if I run Cursor remotely (over Cursor SSH Remote)?+
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