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

ssh-remote-control-mcp

v1.0.3

Published

Remote SSH control MCP server based on the ssh-remote-control skill, exposing connection, execution, upload, and download tools over stdio.

Readme

🌏 English  |  🇨🇳 中文


SSH Remote Control MCP

基于 SSH Remote Control Skill 的核心能力,改造成可直接被 MCP 客户端调用的 stdio server。

功能

  • listConnections:列出所有已保存的 SSH 远程连接
  • addConnection:添加或管理 SSH 远程连接(自动打开 Web 管理页面,可在页面中添加;若提供完整连接信息也会直接保存)
  • setCurrentConnection:切换当前活动的 SSH 连接
  • deleteConnection:删除已保存的 SSH 连接
  • getConnectionContent:读取连接的备注 / Markdown 内容
  • getConfigPath:查看 SSH 连接配置文件路径
  • testConnection:测试当前连接是否可认证
  • execCommand:在远程服务器上执行 shell 命令
  • uploadPath:上传本地文件到远程服务器(支持断点续传,返回传输统计)
  • downloadPath:从远程服务器下载文件到本地(支持断点续传,返回传输统计)
  • openManager:打开本地 Web 管理页面(页面支持文件上传/下载,实时显示传输进度与速度,可取消任务)

配置

配置文件默认保存在:

  • Windows: %USERPROFILE%\.ssh-remote-control-mcp\ssh_config.json
  • Linux/macOS: ~/.ssh-remote-control-mcp/ssh_config.json

MCP 客户端配置示例

1. 直接使用 npx(无需本地安装)

适合直接在支持 MCP 的客户端中快速接入:

{
  "mcpServers": {
    "ssh-remote-control-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["ssh-remote-control-mcp@latest"],
      "env": {
        "SSH_REMOTE_CONTROL_PORT": "11889",
        "SSH_REMOTE_CONTROL_TIMEOUT": "-1"
      }
    }
  }
}

2. 指向本地项目目录(本地开发/调试)

{
  "mcpServers": {
    "ssh-remote-control-mcp": {
      "type": "stdio",
      "command": "node",
      "args": ["D:/code/.../mcp/ssh-remote-control-mcp/index.js"],
      "env": {
        "SSH_REMOTE_CONTROL_PORT": "11889",
        "SSH_REMOTE_CONTROL_TIMEOUT": "-1"
      }
    }
  }
}

3. Claude Desktop 配置示例

{
  "mcpServers": {
    "ssh-remote-control-mcp": {
      "type": "stdio",
      "command": "node",
      "args": ["D:/code/.../mcp/ssh-remote-control-mcp/index.js"],
      "env": {
        "SSH_REMOTE_CONTROL_PORT": "11889",
        "SSH_REMOTE_CONTROL_TIMEOUT": "-1"
      }
    }
  }
}

4. Cursor / Cherry Studio / 其他通用 MCP 客户端

{
  "mcpServers": {
    "ssh-remote-control-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["ssh-remote-control-mcp@latest"],
      "env": {
        "SSH_REMOTE_CONTROL_PORT": "11889",
        "SSH_REMOTE_CONTROL_TIMEOUT": "-1"
      }
    }
  }
}

环境变量说明

| 环境变量 | 说明 | |---|---| | SSH_REMOTE_CONTROL_CONFIG_PATH | 可选,指定 SSH 连接配置文件路径;不设置时使用默认值 | | SSH_REMOTE_CONTROL_PORT | 指定 Web 管理页面监听端口,默认 11889 | | SSH_REMOTE_CONTROL_TIMEOUT | 可选,全局操作超时(毫秒),作用于命令执行、文件上传与下载;设置为 -1 表示不限制超时,不设置时默认不限制 |

运行

cd mcp/ssh-remote-control-mcp
npm install
node index.js

启动后,服务会同时提供:

  • MCP stdio 服务:供 MCP 客户端调用
  • Web 管理页面:浏览器打开 http://127.0.0.1:11889/,可直接管理 SSH 连接配置