Listed from the MCP registry; nobody on Odel publishes it.
A secured scoped SSH MCP server for executing safe read-only diagnostic DevOps / SysOps commands
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx safe-ssh-mcp
MCP client config
{
"mcpServers": {
"safe-ssh": {
"command": "uvx",
"args": [
"safe-ssh-mcp"
]
}
}
}A well-scoped SSH MCP server for executing read-only diagnostic commands over SSH.
In this project, "safe" refers specifically to the safety of the remote host: the server is designed to prevent modifications to the remote system and reduce the risk of operational harm. Secrets redaction is best-effort but not guaranteed, so keep that in mind with models that retain data or learn from it.
Snyk Vulnerability Database report - security check
The core philosophy behind this MCP server is safety first. Instead of providing an AI agent with an unrestricted bash shell, this server exposes only carefully curated, read-only commands for system diagnostics and monitoring.
Using safe-ssh-mcp? I'd love to hear from you.
Whether you're using it with Claude Code, Codex, Ollama, or another MCP client, please tell me what works and what doesn't. Even a two-sentence report is valuable.
Share it in GitHub Discussions.
A few examples from each group; <...> marks a validated parameter.
Start here
Disk and filesystems
df -hfind <path> -mindepth 1 -maxdepth 1 -exec du -sh -- {} + 2>/dev/null | sort -rh | head -n 20findmnt (or cat /proc/mounts)cat /etc/fstab/proc/mounts and /proc/swaps (not mounted, read-only, swap off), then findmnt --verifyCPU, memory and processes
top -b -n 2 -d 1 -c -w 512, second sample, first 30 linesvmstat 1 5mpstat -P ALL 1 3 (per-core CPU), or computed from /proc/stat without sysstatiostat -x -m -y 1 3 (per-disk await and %util), or computed from /proc/diskstats without sysstatcat /proc/pressure/{cpu,io,memory}lscpu (without flags), or a summary of /proc/cpuinfo where lscpu is missingSystemd and logs
systemctl list-units --state=failed --no-pagersystemctl status <daemon>journalctl -p warning -n <lines> --no-pagerjournalctl --disk-usagedmesgNetwork
ss -tulpnip route show and ip -6 route showgetent ahosts <name> or dig <name> <record_type>nc -vz -w 3 <target_host> <target_port>Docker
docker ps --alldocker logs --tail <lines> <container>docker stats --no-streamKubernetes
kubectl get events --sort-by=.lastTimestampkubectl logs --tail=<lines> --namespace=<namespace> <pod>crictl ps --allSystem, logins and crashes
cat /etc/os-releasedpkg-query -W (with source package), rpm -qa --qf (with epoch and source RPM) or /lib/apk/db/installed (with origin)/proc/<pid>/exe and /proc/<pid>/maps of every process, with the package that owns each filepid and/or name: ps (state, elapsed time, threads, wait channel, command line), /proc/<pid>/status, cgroup, open files against limits, oom_score, io (command line redacted; never the environment)lastb -F -n <lines>coredumpctl list --no-pager/etc/crontab, /etc/cron.d/* and every user's crontab (secrets redacted), with a check that a cron daemon runsClick to open full list of available tools
okay, could u check disk usage on /root/ path with help of safe-ssh-mcp server on a remote myserver.mydomain.pro using root and /Users/myUser/.ssh/id_rsa to login?
The server supports SSH account-password authentication and private-key
authentication. Configure the private-key passphrase source in
mcp_config.ini:
# ENV_VAR (SSH_KEY_PASSPHRASE) or KEYCHAIN (ssh-agent)
ssh_key_passphrase_method=ENV_VAR
SSH account password: provide password to the MCP tool. Do not use this
for a private-key passphrase.
Unprotected SSH key: use key_path. The default ENV_VAR setting also
supports unprotected keys; SSH_KEY_PASSPHRASE is not required.
Passphrase-protected SSH key from an environment variable: leave
ssh_key_passphrase_method=ENV_VAR, set SSH_KEY_PASSPHRASE in the
environment that starts the MCP server, and provide key_path.
export SSH_KEY_PASSPHRASE='your-key-passphrase'
safe-ssh-mcp
macOS Keychain / SSH agent: set
ssh_key_passphrase_method=KEYCHAIN, then unlock the key in the same user
session that starts the MCP server. The server receives SSH signatures from
ssh-agent; it does not read the key passphrase or the key_path.
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
# Optional: make the loaded identity expire after one hour.
ssh-add -t 1h ~/.ssh/id_ed25519
# Remove one identity, or clear every loaded identity.
ssh-add -d ~/.ssh/id_ed25519
ssh-add -D
Cursor launched from the macOS Dock: use KEYCHAIN (recommended). You can
run ssh-add from any Terminal window; it updates the SSH agent for your
macOS login session, so Cursor does not need to be started from that
Terminal.
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
ssh-add -l
After changing mcp_config.ini, restart the MCP server in Cursor (or fully
quit and reopen Cursor). When invoking a tool in KEYCHAIN mode, omit
key_path; the agent selects from its loaded identities.
If you must use ENV_VAR, set it in the macOS launchd session before
opening Cursor from the Dock, then fully quit and reopen Cursor:
launchctl setenv SSH_KEY_PASSPHRASE 'your-key-passphrase'
This value lasts only for the current login session, and putting a
passphrase directly in a command may save it in shell history. Prefer
KEYCHAIN.
For KEYCHAIN, the MCP server must inherit SSH_AUTH_SOCK from that user
session. This is normally automatic for a stdio server started from a desktop
application. ENV_VAR stores the passphrase in the server process environment,
so restrict access to the process and avoid putting it in source control.
Tested manually on Python3.11 running on MacOS against remote Ubuntu server
Autotested with Python 3.11 3.12 3.13 3.14 3.15
The default transport is stdio: the MCP client starts the server as a local process, and nothing listens on the network.
The HTTP transports (streamable-http, sse; set in mcp_config.ini) are meant to run behind a reverse proxy, which handles authentication and TLS (mTLS, OIDC, or basic auth over TLS, whatever your setup uses).
The server itself does not authenticate requests, so it binds to 127.0.0.1 by default: expose it only through the proxy, as its callers get
the use of this server's SSH keys.
mcp-name: io.github.Areso/safe-ssh-mcp
This project is licensed under the GNU AGPLv3 License.
This server acts as core infrastructure and contains no business logic. By using the AGPL license, we ensure that any security improvements, bug fixes, or new diagnostic tools added to the server are shared back with the open-source community.
Because MCP clients communicate with this server via standard Inter-Process Communication (IPC) or network protocols (like HTTP/SSE), the AGPL license does not "infect" or restrict the client applications connecting to it.
You can safely connect proprietary, closed-source, or permissively licensed (e.g., MIT, Apache 2.0) AI agents to this server without violating the license terms.