Back to Home
moinugare19 icon

ssh-client-mcp

Verified Safe

by 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

Run Command
npx ssh-client-mcp --host 192.168.1.100 --user admin --key ~/.ssh/id_rsa

Environment 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

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2026-01-19

Tags

SSHSFTPMCPAI AgentRemote Access