MCP SSH Manager - SSH Remote Server Management via Model Context Protocol 🚀
A Model Context Protocol (MCP) server that enables Claude Code and OpenAI Codex to manage multiple SSH connections. Execute commands, transfer files, manage databases, create backups, monitor health, and automate DevOps tasks across your servers — directly from your AI assistant.
🎉 What's New in v3.6.5
Security fix: ssh_db_query shell injection + a row-count fix (Released: June 30, 2026)
- 🔒
ssh_db_queryno longer lets the remote shell parse your query (#44 — thanks @technophile77) — the builders interpolated the query into a double-quoted shell string (mysql -e "${query}",psql -c "${query}",mongo --eval "${query}"), so the remote shell evaluated backticks and$(…)before the database saw it. That both corrupted backtick identifiers (hyphenated DB names, cross-DB joins → empty results, no error) and let the "SELECT-only" tool run arbitrary shell commands on the host. The query is now delivered on stdin via a single-quoted heredoc, so only the database engine ever interprets it. - 🔢
ssh_db_queryreports the realrow_count(#45 — thanks @technophile77) — it used to count the cosmetic JSON-wrapper line (1 row →2, 0 rows →2); it now derives the count from each engine's actual output (MySQL JSON entries, psql's(N rows)footer, MongoDB documents).






