MCP Ssh 2e2a9341

MCP安全风控

提供方 jadchene

安全风控 未标注 无需鉴权 社区 / 第三方 Claude

一个用于安全、无状态的SSH自动化的生产级模型上下文协议(MCP)服务器,支持AI代理管理远程基础设施,并具备人工干预安全和语义环境感知功能。

一句话选型结论

按资料字段整理

MCP Ssh 2e2a9341 属于安全风控类 MCP 服务器,传输方式未标注,无需鉴权,可直接接入 Claude,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类安全风控 传输方式未标注 鉴权无需鉴权 部署方式未标注
GitHub 星标 0 仓库热度,无公开仓库时显示未标注
工具数 105 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

安全风控
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量105暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

SSH自动化TypeScript本地部署远程管理安全协议AI集成基础设施管理

安装与配置

未标注 无需鉴权
上游未给出传输方式
  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 105 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
资产与漏洞排查

盘点资产、扫漏洞、看暴露面。

日志与审计

汇总日志、查异常行为。

合规检查

按规则检查配置与权限是否合规。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 105 个工具,覆盖面较广,能满足多种调用。
  • 已适配 Claude,换客户端不用重新研究配置。
  • 资料标注无需鉴权,装好就能连。

先想清楚的地方

  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在安全风控场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
MCP Ssh 2e2a9341当前 105 未标注 未标注 无 2026-05-17
Cyber Strike AI 75 未标注 未标注 无 2026-05-17
mcp-for-beginners 未标注 stdio · 本地进程 本地部署 有 2026-04-13
casdoor 未标注 stdio · 本地进程 本地部署 有 2026-04-12
kubeshark 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Modelcontextprotocol C22988b0 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

安全风控
字段来自项目仓库与公开索引,中文说明由本站标注
提供方jadchene上游标注的维护方 jadchene
分类安全风控本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式无需鉴权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

5.8 KB
来自项目仓库与上游目录的原文,未做删改

English | 简体中文

mcp-ssh

mcp-ssh gives AI agents persistent SSH sessions and tools for files, Git, Docker, and system inspection.

Features

  • Persistent shell sessions with shared directory, variables, and functions.
  • Password, private-key, and jump-host authentication.
  • Structured tools for files, Git, Docker, services, and system inspection.
  • Per-server enable/read-only settings and named working directories.
  • Interactive write approval, command policies, and optional Full Access.

Quick Start

Use Node.js 24 or later and install from npm:```bash
npm install -g @jadchene/mcp-ssh-service


Save the configuration below as `config.json`, replace the host and authentication details, and verify the host-key fingerprint. Then add the service using the MCP client configuration. The client starts this stdio service; no separate background process is needed.

## MCP Client Configuration

Replace `/path/to/config.json` with an absolute config path, such as `C:/mcp/ssh/config.json` on Windows.

Codex:```bash
codex mcp add ssh -- mcp-ssh-service --config /path/to/config.json

Claude Code:```bash
claude mcp add ssh -- mcp-ssh-service --config /path/to/config.json


## Configuration

Select a config file with `--config ` or `MCP_SSH_CONFIG`. The default is `config.json` in the current working directory.

When upgrading from a version before **3.0.0** to **3.x**, read the migration guide.

Configuration example:```json
{
  "logDir": "./logs",
  "defaultTimeout": 60000,
  "sessionIdleTimeoutMs": 1800000,
  "maxSessions": 32,
  "allowedLocalRoots": ["./transfer"],
  "commandBlacklist": ["^apt-get upgrade", "curl.*\\|.*sh"],
  "commandWhitelist": ["^systemctl status\\s+nginx$", "^docker ps$"],
  "servers": {
    "prod-web": {
      "enable": true,
      "desc": "Production web server",
      "host": "10.0.0.5",
      "port": 22,
      "username": "deploy",
      "privateKeyPath": "./id_rsa",
      "passphrase": "${SSH_KEY_PASSPHRASE}",
      "strictHostKeyChecking": true,
      "hostKeySha256": "SHA256:REPLACE_WITH_SERVER_FINGERPRINT",
      "readOnly": false,
      "dangerMode": false,
      "codexAutoReview": false,
      "allowedRemoteRoots": ["/srv/app"],
      "workingDirectories": {
        "app": {
          "path": "/srv/app",
          "desc": "Application root"
        },
        "logs": {
          "path": "/var/log/nginx",
          "desc": "Nginx logs"
        }
      }
    }
  }
}

Place the private key beside config.json, or set privateKeyPath to its actual path. Set SSH_KEY_PASSPHRASE in the service's environment for an encrypted key; omit passphrase for an unencrypted key. Referenced ${VAR} variables must exist. Password and jump-host examples are in config.example.json.

Configuration changes reload automatically; invalid updates keep the last valid configuration. Changing SSH connection identity or disabling a server invalidates its sessions; call connect again after correcting or re-enabling the server configuration.

Relative private-key, log, and local transfer paths resolve from the config directory. Omitting allowedLocalRoots disables local file transfers; allowedRemoteRoots restricts only deletion through rm_safe. Timeouts are in milliseconds, and maxSessions includes connections being established.

Set hostKeySha256 to a fingerprint verified through a trusted channel. Use ssh-keyscan | ssh-keygen -lf - -E sha256 to display fingerprints; the scan itself does not authenticate the host.

MCP Tools

Remote tools require sessionId; connect and list_working_directories use serverAlias. Use your MCP client's list_tools for exact parameters.

Group Tools
Sessions and discovery list_servers, connect, disconnect, ping_server, list_working_directories, check_dependencies
Shell execute_command, execute_batch, cd, pwd, env, echo (literal text)
Files List, read, search, edit, transfer, permissions, and guarded deletion with rm_safe
Git Status, branches, log, fetch, pull, and switch
Docker / Compose Containers, images, builds, logs, and stack operations
Services systemctl_*, firewall_cmd
Network Addresses, routes, sockets, ping, DNS, tracing, and curl_http
System and processes Identity, uptime, memory, disk, GPU, open files, process lookup, and signals
Archives tar_create, tar_extract, zip, unzip

Safety Model

readOnly blocks writes and commandBlacklist blocks matching commands. commandWhitelist can skip write confirmation but cannot override read-only mode.

Writes require interactive client approval; codexAutoReview: true allows compatible Codex clients to review automatically. dangerMode: true enables Full Access, bypassing approval, read-only, command, and path restrictions. SSH authentication and argument validation still apply.

Recommended Workflow

  1. Use list_servers to choose an enabled server, then call connect(serverAlias).
  2. Call tools sequentially with the returned sessionId; directory, variables, and functions persist across calls.
  3. Call disconnect(sessionId) when finished.

Use a POSIX-compatible shell. Free-form commands allow one shell segment; use execute_batch for multiple steps. Commands must run in the foreground without interactive input. Relative remote paths use the current shell directory.

A session does not support concurrent operations. Reconnect after idle expiry or connection loss. Running operations do not expire from idleness; check results before retrying a timed-out or interrupted operation.

Skill Integration

Agent instructions: SSH MCP skill.

Development```bash

npm install
npm test


Tests use a local SSH server and Bash. On Windows, Git Bash is detected automatically; use `MCP_SSH_TEST_SHELL` to override its path.

Run the built server:```bash
node dist/index.js --config ./config.json

License

MIT. See LICENSE.

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
MCP Ssh 2e2a9341 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

MCP Ssh 2e2a9341 怎么在 Claude 里配置?

它的传输方式未标注,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

MCP Ssh 2e2a9341 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

MCP Ssh 2e2a9341 需要 API Key 吗?

资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

MCP Ssh 2e2a9341 支持哪些客户端?

资料标注支持 Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

MCP Ssh 2e2a9341 能提供哪些能力?

资料显示约 105 个工具;能力标签包括 安全协议、TypeScript、Claude、基础设施管理。具体工具清单以官方文档为准。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。