MCP.so
登录

ssh-connect MCP server

@t-suganuma

基本信息

分类

开发工具

传输方式

stdio

作者

t-suganuma

关于 ssh-connect MCP server

An MCP server for SSH connections and file operations.

ssh-connect MCP server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "ssh-connect-mcp-server": {
      "command": "python",
      "args": [
        "examples/ssh_example.py"
      ]
    }
  }
}

ssh-connect MCP server 工具

6

Connect to an SSH server

Disconnect from the SSH server

Execute a command on the SSH server

Upload a file to the SSH server

Download a file from the SSH server

List files in a directory on the SSH server

概览

What is ssh-connect MCP server?

ssh-connect MCP server is a Model Context Protocol server that provides SSH connection and file operation tools. It enables clients like Cline and Claude Desktop to connect to remote servers, execute commands, and transfer files. It uses paramiko for SSH and supports password or key-based authentication.

How to use ssh-connect MCP server?

Configure the server by setting environment variables (SSH_HOST, SSH_PORT, SSH_USERNAME, and either SSH_PASSWORD or SSH_KEY_PATH) in your MCP settings file. An example configuration uses uv to run the server. Once configured, tools such as connect, execute, upload, download, and list_files become available to the MCP client.

Key features of ssh-connect MCP server

  • Connect to SSH servers with password or key authentication
  • Execute remote commands with optional timeout (default 60 seconds)
  • Upload and download files between local and remote systems
  • List directory contents with file type and size
  • All connection parameters configurable via environment variables
  • Includes test scripts and usage examples for Cline and Claude Desktop

Use cases of ssh-connect MCP server

  • Automate remote server administration tasks from an MCP-enabled client
  • Securely transfer configuration files or logs between machines
  • Run ad‑hoc commands on a fleet of servers through a chat interface
  • Integrate remote file listing and manipulation into AI‑assisted workflows

常见问题

1

What authentication methods does ssh-connect MCP server support?

It supports password authentication via `SSH_PASSWORD` and private key authentication via `SSH_KEY_PATH` (with optional `SSH_KEY_PASSPHRASE`). You must provide at least one of these.

2

What dependencies are required to run ssh-connect MCP server?

You need to install the paramiko Python package. The project includes an `install_dependencies.sh` script to handle installation.

3

How do I configure the SSH connection parameters?

Set the environment variables `SSH_HOST`, `SSH_PORT` (default 22), `SSH_USERNAME`, and either `SSH_PASSWORD` or `SSH_KEY_PATH` in your MCP settings file. An example JSON configuration is provided in the repository.

4

How can I test the server without an actual SSH server?

Run the included test script `python tests/test_ssh_connect.py`, which uses mocking to verify core functionality without requiring a live connection.

5

Can I override connection parameters when using the connect tool?

Yes, the `connect` tool accepts optional parameters (`host`, `port`, `username`, `password`, `key_path`, `key_passphrase`) to override environment variables on a per‑connection basis.

评论

开发工具 分类下的更多 MCP 服务器