classfang/ssh-mcp-server
基于 SSH 的 MCP 服务 🧙♀️。已被MCP官方收录 🎉。 SSH MCP Server 🧙♀️. It has been included in the community MCP repository 🎉.
What it solves
ssh-mcp-server acts as a bridge that allows AI assistants and other applications supporting the Model Context Protocol (MCP) to securely execute commands and transfer files on remote servers. It solves the problem of enabling AI models to interact with remote infrastructure without requiring you to expose your raw SSH credentials directly to the AI model.
How it works
The tool runs as an MCP server that translates standardized MCP requests into SSH commands or SFTP file operations. It manages SSH connections locally, supporting password, private key, and multi-factor authentication. It can be configured to restrict allowed commands via regex-based whitelists and blacklists, and it supports both direct execution and persistent shell sessions for compatibility with jump hosts or bastion servers.
Who it’s for
This tool is designed for developers and power users who use AI-assisted coding tools (like Claude Code or Cursor) and need to perform remote server management tasks—such as running scripts, checking logs, or managing files—directly from their AI interface while maintaining strict security boundaries.
Highlights
- Secure Credential Handling: SSH credentials remain managed locally and are never exposed to the AI model.
- Command Control: Includes flexible regex-based allowlists and blocklists to prevent dangerous or unauthorized remote operations.
- Versatile Connectivity: Supports standard SSH, SOCKS/HTTP proxies, bastion/jump hosts, and multi-server management.
- File Operations: Provides built-in SFTP tools for uploading, downloading, and reading/writing text files.
- Background Job Support: Allows starting long-running tasks that persist even if the MCP connection is interrupted.
- Flexible Deployment: Runs easily via
npxwithout needing a global installation, and supports both stdio and HTTP transport modes.
Related
- Project
- Project
- Project
- Project