my-mcp-ssh

by ffpy

346 downloads Not rated yet Apache-2.0 license

About

MCP-based SSH tool for LLMs to interact with remote servers.

Details

License
Apache-2.0 license

Explore

- SSH Connection Management: Connect to remote SSH servers
- Command Execution: Execute commands on remote servers
- File Transfer: Upload and download files
- Session Management: Maintain and close SSH sessions

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name my-mcp-ssh
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

uv sync


json
{
"mcpServers": {
"my-mcp-ssh": {
"command": "uv",
"args": [
"--directory",
"<your_path>/my-mcp-ssh",
"run",
"src/main.py"
],
"env": {}
}
}
}
``

SSH connection parameters can be configured through environment variables:

- SSH_HOST: SSH server hostname or IP address
-
SSH_PORT: SSH server port
-
SSH_USERNAME: SSH username
-
SSH_PASSWORD: SSH password (if using password authentication)
-
SSH_KEY_PATH: SSH private key file path (if using key authentication)
-
SSH_KEY_PASSPHRASE: SSH private key passphrase (if needed)
-
SESSION_TIMEOUT: Session timeout in minutes, default is 30 minutes
-
MAX_OUTPUT_LENGTH`: Maximum command output length in characters, default is 5000 characters

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "my-mcp-ssh": {
            "my-mcp-ssh": {
                "command": "uv",
                "args": [
                    "sync"
                ]
            }
        }
    }
}

McpServers

{
    "my-mcp-ssh": {
        "command": "uv",
        "args": [
            "sync"
        ]
    }
}
EN doc CN doc

A Model Context Protocol (MCP) based SSH connection tool that allows large language models to securely connect to remote servers via SSH and perform file operations through the MCP protocol.

Features

- SSH Connection Management: Connect to remote SSH servers
- Command Execution: Execute commands on remote servers
- File Transfer: Upload and download files
- Session Management: Maintain and close SSH sessions

Installation

Dependencies

- Python >= 3.12 - uv package manager

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.