ssh-client-mcp
Verified Safeby moinugare19
Overview
A Model Context Protocol (MCP) server enabling AI assistants like Claude to interact with remote SSH/SFTP servers for command execution and file operations.
Installation
npx ssh-client-mcp --host 192.168.1.100 --user admin --key ~/.ssh/id_rsaEnvironment Variables
- SESSION_TIMEOUT
- MAX_SESSIONS
- SSH_CONNECTION_TIMEOUT
- SSH_DEFAULT_SERVER
- SSH_SERVER_<ID>_HOST
- SSH_SERVER_<ID>_PORT
- SSH_SERVER_<ID>_USERNAME
- SSH_SERVER_<ID>_PASSWORD
- SSH_SERVER_<ID>_PRIVATEKEY
- SSH_SERVER_<ID>_PASSPHRASE
- SSH_SERVER_<ID>_NAME
- SSH_SERVER_<ID>_DESCRIPTION
- SSH_SERVER_<ID>_TAGS
Security Notes
The server provides direct remote command execution and file transfer capabilities via SSH/SFTP, which inherently grants significant access to target machines. The implementation uses the robust 'ssh2' library and does not contain 'eval' or intentional obfuscation. Sudo password handling is designed to prevent logging, but passing it as part of the command string can lead to brief exposure in process lists on the remote server. Credentials (password or private key path) are loaded from configuration files, environment variables, or CLI arguments; users are responsible for securing these sources. While the 'ConfigManager' has a 'saveConfig' method that, as written, would include passwords if called, the main 'index.ts' entry point does not expose configuration modification tools to the AI, mitigating this risk for typical tool usage. The primary security consideration lies in the powerful access granted to the AI agent and careful management of SSH credentials by the user.
Similar Servers
claude-code-mcp
Acts as an MCP server to enable LLMs to run Claude Code CLI in one-shot mode, bypassing permissions for complex coding, file system, Git, and terminal operations.
ssh-mcp-server
Bridging AI assistants to remote SSH server operations for command execution, file transfer, and server status retrieval via the Model Context Protocol (MCP).
mcp-ssh-manager
Manages remote SSH servers via the Model Context Protocol (MCP), enabling AI assistants like Claude Code and OpenAI Codex to execute commands, transfer files, monitor health, and automate DevOps tasks.
miyabi-mcp-bundle
An all-in-one MCP server providing a vast array of development, monitoring, and automation tools, enabling Claude Desktop and AI agents to perform complex software development, operations, and analysis tasks efficiently and securely.