</>MCP Agents Market
MCP Server

ssh-mcp-server

by classfang858JavaScriptUpdated 2026-09-09

基于 SSH 的 MCP 服务 🧙‍♀️。已被MCP官方收录 🎉。 SSH MCP Server 🧙‍♀️. It has been included in the community MCP repository 🎉.

Claude DesktopClaude CodeCursor

ssh-mcp-server is an MCP server that bridges AI assistants to remote Linux/Unix servers via SSH, enabling secure command execution and file transfers without exposing credentials to the AI model. The server supports both password and private-key authentication, command filtering through whitelist/blacklist rules, proxy connections, and dual transport modes (exec and shell) for direct hosts and bastion/jump-box scenarios. Developers install it via npx and configure their MCP client (Claude Desktop, Cursor, etc.) with connection parameters in JSON format, allowing AI assistants to manage remote infrastructure, debug production issues, or automate DevOps tasks through natural language.

Key Features

Secure SSH authentication via password, private key, or passphrase-protected keys with support for 2FA/MFA
Command safety controls using flexible whitelist and blacklist regex patterns to prevent dangerous operations
Dual transport modes: exec for standard hosts and shell for bastion servers or jump boxes
Bidirectional file transfer (upload/download) with configurable local and remote path restrictions
SOCKS5, HTTP, and HTTPS proxy support for connecting through network intermediaries
SSH config file integration to reuse existing ~/.ssh/config host aliases
Multi-server configuration supporting multiple SSH connections within a single MCP server instance
Command execution timeouts, output size limits, and keepalive settings to prevent resource exhaustion

Use Cases

  • 01Enable AI coding assistants to debug applications on remote development or staging servers
  • 02Automate DevOps tasks like log analysis, disk space checks, and service restarts through conversational commands
  • 03Deploy code or configuration files to remote servers via AI-guided file uploads
  • 04Monitor production infrastructure by querying system metrics and process status through SSH
  • 05Execute read-only diagnostic commands on production servers with whitelist restrictions
  • 06Manage infrastructure across multiple environments (dev, staging, prod) with named connection profiles

Related MCP Servers

View more

ssh-mcp-server — FAQ

What is ssh-mcp-server?+

ssh-mcp-server is an MCP server that allows AI assistants to execute SSH commands and transfer files on remote Linux/Unix servers through the Model Context Protocol, while keeping SSH credentials isolated from the AI model.

How do I install and configure ssh-mcp-server?+

Install via npx without global installation. Add a configuration block to your MCP client's settings file (e.g., Claude Desktop's config.json) with the npx command and SSH connection parameters (host, port, username, password or private key). The server runs automatically when your AI client starts.

Which AI clients work with ssh-mcp-server?+

It works with any AI client that supports the Model Context Protocol, including Claude Desktop, Cursor, Claude Code, and other MCP-compatible applications.

Do I need API keys or special prerequisites?+

You need Node.js installed and valid SSH credentials (password, private key, or both) for the remote server. No API keys are required. For bastion/jump-box scenarios, you may need to configure transport mode to 'shell'.

Is ssh-mcp-server free to use?+

Yes, it's open source and available on GitHub and npm without cost.

How do I restrict which commands the AI can execute?+

Use the --whitelist parameter with comma-separated regex patterns to allow only specific commands, or --blacklist to block dangerous operations like rm, shutdown, or reboot. Whitelists are strongly recommended for production environments.

How do I install ssh-mcp-server?+

Open the source repository on GitHub and follow its README. ssh-mcp-server is a mcp server — MCP Agents Market links you directly to the official repo.

Is ssh-mcp-server free?+

ssh-mcp-server is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches