Skip to main content

MCP server for SSH remote server management

Project description

cygnus-ssh-mcp

An MCP (Model Context Protocol) server for SSH remote server management. Enables AI assistants like Claude to execute commands, manage files, and perform system administration tasks on remote Linux servers.

Features

  • Command Execution: Run commands with timeout control and background process support
  • File Operations: Read, write, edit, search files and directories
  • Process Management: Background tasks, process monitoring, interruption
  • Sudo Support: Elevated privileges with password or passwordless sudo
  • Multi-Auth: Password or SSH key authentication (with passphrase support)
  • Host Management: TOML-based configuration with aliases

Installation

pip install cygnus-ssh-mcp

Or with uvx:

uvx cygnus-ssh-mcp

Quick Start

1. Create a hosts configuration file

Create ~/.mcp_ssh_hosts.toml:

[admin@myserver.com]
password = "your_password"
port = 22
alias = "myserver"
description = "My production server"

# Or with SSH key
[deploy@server2.com]
keyfile = "~/.ssh/id_ed25519"
port = 22
alias = "deploy"

2. Configure Claude Desktop

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "ssh": {
      "command": "cygnus-ssh-mcp",
      "args": ["--config", "/path/to/.mcp_ssh_hosts.toml"]
    }
  }
}

3. Connect and use

In Claude, connect to a host:

Connect to myserver

Then run commands:

Show disk usage on the server

Documentation

See the docs/ folder for detailed documentation:

Available Tools

Tool Description
ssh_conn_connect Connect to a configured host
ssh_cmd_run Execute a command
ssh_cmd_run_sudo Execute with sudo
ssh_file_read Read file contents
ssh_file_write Write to a file
ssh_file_edit Edit file with search/replace
ssh_dir_list List directory contents
ssh_task_start Start background task
ssh_task_status Check task status
... and more

See Tools Reference for the complete list.

License

GPL-3.0 - See LICENSE for details.

Author

Peter Ritter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cygnus_ssh_mcp-0.1.0.tar.gz (81.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cygnus_ssh_mcp-0.1.0-py3-none-any.whl (109.0 kB view details)

Uploaded Python 3

File details

Details for the file cygnus_ssh_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: cygnus_ssh_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 81.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for cygnus_ssh_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9bb60b28f0e943cd6fe31a47ee847bebddd6e4e822d0185eded21e136983a906
MD5 3b87b14ae6271885e3d2b73ddedd5d29
BLAKE2b-256 ba4998de4f37505b909a1336c4b74f6106ce60ce36e9a5233f2b25834fe253e2

See more details on using hashes here.

File details

Details for the file cygnus_ssh_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cygnus_ssh_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 109.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for cygnus_ssh_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ca0c5517417ebd98a15d25f72b34aae712ee78f336a56680f094123a6cc4738
MD5 83445cd5d3dca5f954bf80051e28b4be
BLAKE2b-256 2705916c69d6154708da76387926146794396bbc2325150d46d9b0d2b9b86dc5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page