Skip to main content

SSH MCP Server - Manage SSH connections through MCP protocol with GUI config panel

Project description

SSH MCP Server

一个带 GUI 配置面板的 SSH MCP Server,支持多服务器管理,一键安装到主流 AI IDE。

功能

  • 多服务器管理 - 可配置多个 SSH 服务器连接
  • 认证方式 - 支持密码认证和密钥对认证
  • GUI 配置面板 - sshgui 一键启动,可视化管理服务器
  • 一键安装 - GUI 内置安装到 Windsurf / Cursor / Claude Code / Codex
  • MCP 协议 - 通过 stdio 提供 MCP 工具,供 AI 助手调用

安装

# pip 安装(推荐)
pip install sshmcp

# 或 uv 安装
uv pip install sshmcp

安装后即可使用 sshmcp 命令。

命令一览

命令 说明
sshmcp 以 MCP Server 模式运行(IDE 自动调用)
sshgui 启动 GUI 配置面板
sshmcp-install 一键安装到所有 IDE
sshmcp-install-windsurf 安装到 Windsurf
sshmcp-install-cursor 安装到 Cursor
sshmcp-install-claudecode 安装到 Claude Code
sshmcp-install-codex 安装到 Codex

快速开始

# 1. 安装
pip install sshmcp

# 2. 一键安装到你的 IDE(自动写入 MCP 配置)
sshmcp-install-windsurf   # 或 cursor / claudecode / codex
sshmcp-install            # 安装到全部 IDE

# 3. 打开 GUI 管理 SSH 服务器
sshgui

# 4. 重启 IDE,即可在 AI 对话中使用 SSH 工具

一键安装到 IDE

命令行方式:

sshmcp-install              # 安装到所有 IDE
sshmcp-install-windsurf     # 仅安装到 Windsurf
sshmcp-install-cursor       # 仅安装到 Cursor
sshmcp-install-claudecode   # 仅安装到 Claude Code
sshmcp-install-codex        # 仅安装到 Codex

GUI 方式: 运行 sshgui,点击工具栏 「安装到 IDE ▾」 按钮,选择目标 IDE。

安装会自动写入 MCP 配置到对应文件:

  • Windsurf~/.codeium/windsurf/mcp_config.json
  • Cursor~/.cursor/mcp.json
  • Claude Code~/.claude.json
  • Codex~/.codex/config.json

MCP Tools

Tool 说明
list_servers 列出所有已配置的服务器
connect 连接到指定服务器
disconnect 断开当前连接
get_status 获取当前连接状态
exec_command 在远程服务器执行命令
upload_file 上传文件到远程服务器
download_file 从远程服务器下载文件
write_remote_file 将文本内容写入远程文件
read_remote_file 读取远程文件内容
list_remote_dir 列出远程目录内容

手动配置

也可手动添加到 IDE 的 MCP 配置文件:

{
  "mcpServers": {
    "ssh": {
      "command": "sshmcp"
    }
  }
}

打包为 exe

pip install pyinstaller
pyinstaller build.spec

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

sshmcp_r-1.0.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

sshmcp_r-1.0.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file sshmcp_r-1.0.0.tar.gz.

File metadata

  • Download URL: sshmcp_r-1.0.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for sshmcp_r-1.0.0.tar.gz
Algorithm Hash digest
SHA256 024879f844a1415d31e55d7a74ac19a69f8678be52e554f631bceef1afd169a1
MD5 24d8f0f998df9be41a80c9087251f075
BLAKE2b-256 529fa64eb9acca37970200a5c663f8877bcff5ed9655d09506ffb40464abc94d

See more details on using hashes here.

File details

Details for the file sshmcp_r-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sshmcp_r-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for sshmcp_r-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a110755ee7c82eb63280966a3315cfb83b47bf36f637a965efbaf2655fe75176
MD5 9fab25d8000294b756b1b6d539ee7b2f
BLAKE2b-256 b559f675d4aab6ea955cf6c9d32876876f6ca6b946ae600959fe552aaabf0bc7

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