npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@renqf/sshmcp

v0.1.6

Published

SSH MCP server with multi-server GUI activation panel

Readme

SSH MCP

SSH MCP + 本地 Web 面板:配置多台 Linux 服务器,多选激活后供 Cursor / AI 通过 MCP 操作。

功能

  • MCP 工具:list_servers / list_active_servers / exec / upload / download / list_dir / read_file / write_file / test_connection / process_list / process_kill / port_listeners / disk_usage / system_info / service_status / service_restart / tail_log / file_stat / mkdir / rm / mv / cp
  • exec 支持 sudo: true
  • GUI:服务器 CRUD、密码/私钥认证、多选激活、连接测试
  • 凭据本地 AES-GCM 加密存储(data/master.key + data/servers.json

安装(npm)

npm i -g @renqf/sshmcp
sshmcp mcp    # MCP stdio(Cursor 用)
sshgui        # GUI/API,默认打开浏览器(等同 sshmcp api)

Cursor MCP 配置示例:

{
  "mcpServers": {
    "ssh": {
      "command": "sshmcp",
      "args": ["mcp"]
    }
  }
}

或用 npx(无需全局安装):

{
  "mcpServers": {
    "ssh": {
      "command": "npx",
      "args": ["-y", "@renqf/sshmcp", "mcp"]
    }
  }
}

本地开发

npm install
npm run api          # http://127.0.0.1:3789  (启动后自动打开 GUI)
npm run gui:dev      # http://127.0.0.1:5179  (开发态 GUI,代理到 API)
npm run mcp          # stdio MCP server
npm test

启动 API 时默认自动打开浏览器面板;若不需要自动打开,设置 SSHMCP_OPEN_BROWSER=0

生产一体启动:

npm run build
sshgui
# 或: npm run api / sshmcp api
# 打开 http://127.0.0.1:3789

Cursor MCP 配置示例(开发态)

{
  "mcpServers": {
    "sshmcp": {
      "command": "npx",
      "args": ["tsx", "src/mcp/server.ts"],
      "cwd": "C:/Users/rqf/Desktop/sshmcp"
    }
  }
}

生产安装后更简单:

{
  "mcpServers": {
    "ssh": {
      "command": "sshmcp",
      "args": ["mcp"]
    }
  }
}

确保 GUI(sshgui)与 MCP(sshmcp)默认共用用户目录下的同一份配置;一般无需再设 SSHMCP_DATA_DIR

AI 使用约定

  1. 操作前先调用 list_serverslist_active_servers(二者均只返回当前激活池;未激活的不出现)
  2. 所有操作工具必须传 serverId,且该 id 必须在当前激活池中
  3. 多选激活 = 可用池,不是「一条命令打全部机器」
  4. 要让某台机器出现在 MCP 列表里:在 GUI 勾选激活后再操作
  5. 进程管理:process_list / process_kill / port_listeners;查 root 占用的端口进程名时加 sudo: true
  6. 系统/文件:disk_usage / system_info / service_status / service_restart(默认 sudo)/ tail_log / file_stat / mkdir / rm / mv / cp

环境变量

| 变量 | 默认 | 说明 | |------|------|------| | SSHMCP_DATA_DIR | Windows: %APPDATA%\sshmcpmacOS/Linux: ~/.config/sshmcp | 配置与密钥目录(可选覆盖) | | SSHMCP_API_PORT | 3789 | HTTP API 端口 | | SSHMCP_OPEN_BROWSER | 开启 | 设为 0/false 可关闭启动时自动打开 GUI |