GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
SSH-based MCP control of remote Linux, macOS, and Windows servers -- 46 purpose-built tools.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"cygnus-ssh": {
"command": "uvx",
"args": [
"cygnus-ssh-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add cygnus-ssh -- uvx cygnus-ssh-mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"cygnus-ssh": {
"command": "uvx",
"args": [
"cygnus-ssh-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"cygnus-ssh": {
"type": "stdio",
"command": "uvx",
"args": [
"cygnus-ssh-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 cygnussystems 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.5.1)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Cross-platform SSH MCP server with 46 purpose-built tools for real server management by AI agents
*Give Claude, OpenCode, or any MCP-compatible AI assistant full control of your Linux, macOS, and Windows servers with 46 specialized tools*
Prerequisites · Installation · Quick Start · Features · Documentation
[!TIP]
A note from the author: I've been running this daily since April 2025 — over a
year now — to manage a dozen+ machines and devices, plus a Proxmox host running
30+ containers, across a network tied together with Tailscale. It started as a
tool to solve my own problem, and it's saved me a huge amount of manual work ever
since. After a year of running it against Linux, I've since added support for
Windows, macOS, and other devices with reduced shells like BusyBox. I'm
open-sourcing it now because I think anyone running real infrastructure will find
it just as useful. This is a young *public* repo, but the tool behind it isn't new
or unproven — it's been battle-tested against my own servers for over a year.
If you find it useful, a ⭐ star or a mention to someone who manages their own
infrastructure goes a long way for a project this new — thank you!
cygnus-ssh-mcp is an MCP server - usable from Claude Desktop, Claude Code, OpenCode, or any other MCP-compatible client - that connects your AI assistant directly to your remote servers over SSH, exposing 46 purpose-built tools instead of one generic command-runner. It turns natural-language requests into real systems administration - connecting by alias, editing files, managing background processes, handling sudo - across Linux, macOS, and Windows targets alike.
Doing that properly means solving a pile of genuinely hard, per-platform problems that a naive ssh wrapper never has to face - and that this project hit and fixed the hard way, including:
1Get-Content, because PowerShell's console encodes stdout in its OEM code page and corrupts anything non-ASCIIsudo'd background process without leaving its privileged child orphaned or blindly firing SIGKILL at the wrong PIDNone of this shows up until you actually run these tools against real Linux, macOS, and Windows targets under real conditions - which is exactly how every one of these was found and fixed here, not guessed at from documentation.
| What you get | Basic SSH MCP | cygnus-ssh-mcp |
|---|---|---|
| Run commands | ✅ | ✅ |
| Pre-configured hosts with aliases | ❌ | ✅ |
| Sudo support (Linux/macOS) | Limited | ✅ |
| Windows Server support | ❌ | ✅ |
| Background task management | ❌ | ✅ |
| Line-level file editing | ❌ | ✅ |
| Command history with output | ❌ | ✅ |
| Recursive directory operations | ❌ | ✅ |
| Archive create/extract | ❌ | ✅ |
| Full Unicode support | Varies | ✅ |
Beyond Linux, macOS, and Windows, cygnus-ssh-mcp can also reach further - routers, NAS boxes, and other non-standard SSH targets connect too, via a flex platform type and a capability probe that detects what each device's shell can actually do. See Connecting to Alternate Platforms below.
[!WARNING]
Alternate-platform (`flex`) support is a work in progress. It's been
verified against several real devices, but the space of routers/NAS/embedded
systems is huge - expect rough edges on hardware that hasn't been tried yet.
Ask your MCP-capable agent to:
web host."cygnus-ssh-mcp connects over standard SSH - it doesn't provide SSH itself, so each server you want to manage needs an SSH server already installed and running.
Linux - usually pre-installed on server distros; if not:
sudo apt install openssh-server # Debian/Ubuntu
sudo systemctl enable --now ssh
macOS - enable Remote Login in System Preferences → Sharing, or from the terminal:
sudo systemsetup -setremotelogin on
Windows (Server 2019+, or Windows 10/11) - OpenSSH Server is an optional feature:
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd Set-Service -Name sshd -StartupType 'Automatic'
See [Windows Support](docs/25-windows-support.md) for Windows Server 2016 and other edge cases.
Pick one of the two options below - they're independent tools that don't share storage, so commands from one won't see or affect what the other did.
pip install cygnus-ssh-mcp
Uninstalling or upgrading:
pip uninstall cygnus-ssh-mcp
pip install --upgrade cygnus-ssh-mcp
[!NOTE]
What's `uvx`? It's part of
uv(a fast Python
package manager) -
uvxdownloads a package into a disposable,
isolated cache and runs it immediately, without installing it into your system
Python, a project, or anywhere
pipcan see. Nothing lingers afterward for you
to manage. It's the easiest option if you just want your MCP client to launch
this server without thinking about Python environments at all.
uvx cygnus-ssh-mcp
There's nothing to "uninstall" - uvx re-resolves and re-fetches the latest version on every run anyway. To force a fresh fetch or clear its cache instead:
uvx --refresh cygnus-ssh-mcp # force this run to ignore the cache
uv cache clean # clear uv's entire package cache
If you want a uvx-style setup that *does* persist (so it doesn't re-fetch every time) and can be upgraded deliberately, use uv tool install cygnus-ssh-mcp instead - manage that with uv tool uninstall cygnus-ssh-mcp / uv tool upgrade cygnus-ssh-mcp. This is still separate from pip (Option A) - don't mix pip commands with anything set up via uv/uvx, they can't see each other.
You don't need to create anything by hand - the first time the server starts, it automatically creates an empty host config file at ~/.mcp_ssh_hosts.toml (secure 0o600 permissions) if nothing is there yet. Just open that file (or use ssh_conn_add_host from within your AI assistant) and add entries like:
# Minimal (password auth) - only required fields
["user@server.example.com"] password = "your_password" port = 22
["admin@production.example.com"] password = "your_password" port = 22 sudo_password = "sudo_pass" # optional: for use_sudo operations alias = "prod" # optional: connect by alias description = "Production server" # optional: for documentation
["deploy@staging.example.com"] keyfile = "~/.ssh/id_ed25519" port = 22 alias = "staging"
["administrator@winserver.example.com"] password = "your_password" port = 22 alias = "win-prod"
Required fields: port + (password OR keyfile) Optional fields: alias, description, sudo_password, key_passphrase
sudo_password is optional if your account uses password auth - when omitted, the regular password is reused for use_sudo operations too. It's only required if your sudo password differs from your login password, or if you're using SSH key auth (keyfile) with no password field at all - in that case, either set sudo_password explicitly or configure passwordless sudo on the server.
[!TIP]
Host file locations: Default is
~/.mcp_ssh_hosts.toml. Falls back to./mcp_ssh_hosts.tomlif not found.
Use
--config /path/to/hosts.tomlfor a custom location. If a file already exists
at whichever path is used, it is never overwritten or reset - auto-creation
only ever happens when nothing is there yet.
[!WARNING]
Watch for hidden file extensions. If you create this file yourself in Notepad
or TextEdit, Windows and macOS both hide known extensions by default - a file you
named
mcp_ssh_hosts.tomlcan silently actually be saved as
mcp_ssh_hosts.toml.txt, and the server will never find it. Turn on "show file
extensions" in Explorer/Finder, or verify from a terminal:
ls -la ~/.mcp_ssh_hosts.toml*(macOS/Linux) or
dir %USERPROFILE%\.mcp_ssh_hosts.toml*(Windows) - either should show exactly
one file, with no extra extension after
.toml.
Most MCP clients (Claude Desktop, Claude Code, OpenCode, Cursor, Cline, Windsurf, and others) use the same mcpServers JSON shape shown below - only the config file's name and location differ per client. Claude Desktop is used as the concrete example here; see the Claude Code note further down for one client that differs, or check your own client's docs for its config file's path.
[!WARNING]
**Python must be on
PATHfor"command": "cygnus-ssh-mcp"(below) to work at
all.** This is the most common reason an MCP client fails to start the server
(or the tool list never appears) - and with Python often installed in several
different places on one machine, it's easy to hit. Check first with:
`bash
python --version # Windows/macOS/Linux
python3 --version # macOS/Linux, if the above isn't found
`
If that fails with "not recognized"/"command not found", Python isn't on
PATH-
fix that first (reinstall Python with "Add to PATH" checked on Windows, or add it
to your shell profile), or work around it entirely by finding the full path to
the installed executable instead:
where cygnus-ssh-mcp(Windows) or
which cygnus-ssh-mcp(macOS/Linux), then use that directly ascommand:
`json
{
"mcpServers": {
"ssh": {
"command": "C:\\Users\\yourname\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\cygnus-ssh-mcp.exe",
"args": ["--config", "C:\\Users\\yourname\\.mcp_ssh_hosts.toml"]
}
}
}
`
For Claude Desktop, edit claude_desktop_config.json:
{
"mcpServers": { "ssh": { "command": "cygnus-ssh-mcp" } } }
Or with a custom hosts file location:
{
"mcpServers": { "ssh": { "command": "cygnus-ssh-mcp", "args": ["--config", "/path/to/my_hosts.toml"] } } }
On Windows, use an absolute path with escaped backslashes (JSON needs \\, not a single \):
{
"mcpServers": { "ssh": { "command": "cygnus-ssh-mcp", "args": ["--config", "C:\\Users\\yourname\\.mcp_ssh_hosts.toml"] } } }
Using [Claude Code](https://claude.com/claude-code) instead of Claude Desktop? It reads its ow
只显示了开头部分;其余内容请在仓库中阅读