
Fast Mcp Ssh
io.github.klNuno由 GitHub 账号 klNuno 发布v0.5.1更新于 Oct 24, 2026
SSH, SFTP, PTY shells, host-to-host copies and remote screenshots for AI agents. One Rust binary.
发布方自己的服务:Fastio
概览
本地运行的 Rust MCP 服务器,让 AI 助手通过 SSH 操作已配置的主机:执行命令、持久 PTY 终端、SFTP 文件、截图与端口转发。
- 可以做什么
- 在远程主机执行命令:单次 exec、并行批量、持久 PTY 终端、中断
- 通过 SFTP 管理远程文件:列目录、查看属性、上传下载、主机间复制、写入、建目录、删除、tail
- 查看主机状态:缓存的系统概况、解析后的进程/磁盘/内存/网络信息、systemd 服务
- 截取远程桌面截图并先缩小再返回
- 管理会话与网络:列出主机、ping、断开连接、重载配置、关闭终端、开启和关闭本地 TCP 转发
- 适用场景
- 适合需要让助手通过 SSH 操作远程 Linux 或 macOS 机器的场景,例如执行命令、改文件、查服务或截图,且不想依赖 Node 或 Python 运行时,并希望每次调用都有防护规则和审计日志。
- 运行要求
- 以本地 stdio 进程运行,可用 cargo 或预编译二进制安装(Linux 与 macOS 的 x86_64/aarch64、Windows x86_64)。需要 ~/.fast-mcp-ssh/hosts.toml 主机配置、~/.fast-mcp-ssh/keys/ 下的 SSH 密钥,认证方式为 key、agent 或 password。需要能访问目标主机的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Fast Mcp Ssh,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
fast-mcp-ssh
SSH, SFTP and persistent shells for AI agents. One Rust binary, no runtime.
[crates.io] [CI] [License] [Rust 1.89+] [Platform]
An MCP server that gives a model real SSH access:
- One connection per host, held open across calls.
- A PTY shell that remembers
cdandexport. - SFTP instead of
cat > file, and host-to-host copies that skip your disk. - A screenshot of the remote desktop.
- Regex guards before anything leaves your machine.
- An append-only audit log of every call.
Answers come back as TOON, roughly 40 percent fewer tokens than JSON on tabular data.
Install
Or a prebuilt binary from the
latest release,
checked against SHA256SUMS.txt. Linux and macOS ship x86_64 and aarch64,
Windows x86_64.
Copy hosts.example.toml to ~/.fast-mcp-ssh/hosts.toml
and fill in your hosts. Keys go in ~/.fast-mcp-ssh/keys/<name>; auth is
key, agent or password.
Wire it up
.mcp.json, or claude_desktop_config.json for Claude Desktop:
Same block in Claude Code, Cursor, Windsurf, Zed, VS Code Copilot and anything else that speaks MCP over stdio.
In the MCP registry it is
mcp-name: io.github.klNuno/fast-mcp-ssh.
Tools
host is optional on every tool once [defaults] default_host is set.
Every tool carries MCP annotations (readOnlyHint, destructiveHint,
idempotentHint, openWorldHint) so a client can gate destructive calls.
Host-to-host copy
cp moves a file from one configured host to another. The bytes never land on
your disk and never reach the model, and a sha256 is compared on both ends
before success. Guards cover the destination too, so a read-only target still
refuses the write.
Remote screenshots
shot hands the model an image instead of a wall of text. It uses whichever of
grim, gnome-screenshot, spectacle, ImageMagick import or scrot the
host has, covering X11 and wlroots Wayland, and downscales locally so a 4K
screen is not a multi-megabyte payload.
Protocol
Speaks stateless MCP (2026-07-28) and every revision back to 2024-11-05,
picked per peer. Stateless changes three things:
- Confirmations come back as an
input_requiredresult the client answers and retries (SEP-2322), because a server may no longer open a request of its own. Older peers keepelicitation/create. - Long calls hand back a task handle to poll (SEP-2663):
execpast its 60s timeout,tailwithfollow=true. Clients without the extension keep the blocking call. tools/listis sorted, so it is byte-identical between restarts, and carries a one hourttlMs(SEP-2549). A client's prompt cache keeps hitting.
Shells are unaffected. A PTY has always been addressed by the host and
session arguments of the call, which is the explicit handle stateless wants.
Security
Guards run before any SSH packet leaves. deny_patterns refuse outright,
confirm_patterns ask the user, a client that cannot answer is denied, and
read_only = true blocks anything that looks like a write.
Paths are checked on both sides: remote reads of keys, shadow files and cloud
credentials, local writes into your ~/.bashrc or an autostart folder. Every
path-taking tool runs both checks, tail included, and re-checks once the
server has resolved the path, so a symlink cannot launder a blocked target. A
path that will not resolve refuses the call.
Host keys are pinned, TOFU by default, strict and per-host fingerprints
available. Every call lands in ~/.fast-mcp-ssh/audit.log as NDJSON, with
credentials scrubbed.
Guards stop accidents, not an adversary who controls the model. Scope the remote account accordingly. Threat model: SECURITY.md. Version history: CHANGELOG.md.
Benchmark
50 iterations per scenario, same Linux host, same LAN, same SSH key, client on
Windows 11. Medians, lower is better, measured on 0.5.0. Reproduce with
benchmark/, raw runs in
benchmark/results/.
Both alternatives are Node, so ~250 ms of their cold start is the runtime
booting. The steady-state gap is the connection: fast-mcp-ssh holds one SSH
session per host and opens a channel per call, the other two reconnect. Writes
go over SFTP here, through a cat > file heredoc there.
Development
Never write to stdout outside the MCP transport: a stray println! corrupts
the JSON-RPC stream and the client disconnects without an error. tracing
macros go to stderr and are safe.
License
MIT.
Footnotes
-
mcp-ssh-managertruncates that response to 12 KB, so it is not returning the same output.ssh-mcp-serverreturns raw stdout with no exit code, which is why its replies are the shortest and why a failed command looks like a successful one. ↩
来源:README.md,提交 760b74b
工具
0版本历史
2- v0.5.1最新Sep 24, 2026
- v0.5.0Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Fast 集成
Fastio
io.fast官方发布者
Fastio 是一个远程 MCP 端点,为每个项目提供统一的工作区,汇集文件、团队与 AI 智能体。

Fast Entity Filing USDOT BOC-3 & 2027 UCR Compliance
com.fastentityfiling
Fast Entity Filing USDOT BOC-3 & 2027 UCR Compliance 的托管 MCP 服务,由 fastentityfiling.com 发布;无需登录;Streamable HTTP;10 个工具。

Make Agent Fast
由 GitHub 账号 abdurshd 发布
Make Agent Fast 的远程 MCP 服务器,让助手创建客服智能体、查看对话与线索并改进回答。

FastOCR
由 GitHub 账号 fastocr-org 发布
FastOCR 让助手对本地扫描版 PDF 和图片做 OCR、生成可搜索 PDF,并把银行对账单转换为 Excel、CSV 或 QuickBooks 文件。

Fast Data Actors (via Apify MCP)
由 GitHub 账号 ichkifokkus 发布
这是 Apify 托管 MCP 服务器的一份配置,开放 Fast Data 的 Actor,用于 YouTube 字幕、Google 新闻与趋势、招聘信息、文档转换和图像处理。