GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Generic MCP server for UGREEN NAS (UGOS) over SSH — 39 tools with dry-run safety.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
UGNAS_MCP_CONFIG, UGNAS_HOST, UGNAS_USER, UGNAS_KEY_PATH, UGNAS_PASSWORD, UGNAS_PORT, UGNAS_DEFAULT_SHARE, UGNAS_HOST_KEY_SHA256标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"ugnas": {
"command": "npx",
"args": [
"-y",
"ugnas-mcp"
],
"env": {
"UGNAS_MCP_CONFIG": "your-value",
"UGNAS_HOST": "your-value",
"UGNAS_USER": "your-value",
"UGNAS_KEY_PATH": "your-value",
"UGNAS_PASSWORD": "your-value",
"UGNAS_PORT": "your-value",
"UGNAS_DEFAULT_SHARE": "your-value",
"UGNAS_HOST_KEY_SHA256": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add ugnas --env UGNAS_MCP_CONFIG=your-value --env UGNAS_HOST=your-value --env UGNAS_USER=your-value --env UGNAS_KEY_PATH=your-value --env UGNAS_PASSWORD=your-value --env UGNAS_PORT=your-value --env UGNAS_DEFAULT_SHARE=your-value --env UGNAS_HOST_KEY_SHA256=your-value -- npx -y ugnas-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"ugnas": {
"command": "npx",
"args": [
"-y",
"ugnas-mcp"
],
"env": {
"UGNAS_MCP_CONFIG": "your-value",
"UGNAS_HOST": "your-value",
"UGNAS_USER": "your-value",
"UGNAS_KEY_PATH": "your-value",
"UGNAS_PASSWORD": "your-value",
"UGNAS_PORT": "your-value",
"UGNAS_DEFAULT_SHARE": "your-value",
"UGNAS_HOST_KEY_SHA256": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"ugnas": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ugnas-mcp"
],
"env": {
"UGNAS_MCP_CONFIG": "your-value",
"UGNAS_HOST": "your-value",
"UGNAS_USER": "your-value",
"UGNAS_KEY_PATH": "your-value",
"UGNAS_PASSWORD": "your-value",
"UGNAS_PORT": "your-value",
"UGNAS_DEFAULT_SHARE": "your-value",
"UGNAS_HOST_KEY_SHA256": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
UGNAS_MCP_CONFIG envUGNAS_HOST envUGNAS_USER envUGNAS_PORT envUGNAS_DEFAULT_SHARE envUGNAS_HOST_KEY_SHA256 env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 Omodaka9375 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:UGNAS_KEY_PATH, UGNAS_PASSWORD
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.2)于22天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
npx -y ugnas-mcp
A generic MCP (Model Context Protocol) server for UGREEN NAS devices running UGOS, talking to the NAS over SSH (with SFTP for file transfers).
Unlike most existing UGREEN NAS integrations, nothing here is hard-coded — no fixed IPs, subnets, usernames, or share names. Every target-specific value comes from your config, so the same server works for anyone's NAS.
Organized the way a NAS owner actually thinks about daily operations:
| Group | Tools | Mutating? |
|---|---|---|
| Connection & system | system.status, system.info, system.pools | read-only |
| Docker | docker.containers.* (list/inspect/logs/start/stop/restart/remove), docker.images.* (list/pull/remove), docker.networks.* (list/inspect/create/remove/connect/disconnect), docker.compose | start/stop/restart/pull/remove/create/compose are gated |
| Files & data | files.list, files.usage, files.find, files.thumbnail, files.mkdir, files.copy, files.move, files.remove, files.upload, files.download, files.sync | thumbnail/mkdir/copy/move/remove/upload/download/sync are gated |
| Backup | backup.create, backup.list, backup.verify, backup.restore, backup.schedule | create/restore/schedule are gated |
| Networks | network.interfaces, network.routes, network.ports | read-only |
39 tools total. system.pools reports mdadm array + degradation state, LVM volume/logical/physical volumes, btrfs devices, block devices, and filesystems.
files.find searches a directory tree by name glob and/or extension (returns path, size, modified time). files.thumbnail renders a preview of an image or a video frame with ffmpeg on the NAS and downloads it locally — read-only with respect to your NAS data (only a /tmp scratch file is written and removed), but writing the thumbnail to the local machine is gated: the first call returns a dry-run plan, and you confirm with the token to write the local file. Requires ffmpeg on the NAS (present on UGOS by default).
files.list and files.find prefer GNU coreutils flags (ls --time-style=long-iso, find -printf); when those are unavailable (BusyBox), they fall back to ls -1p and find -exec stat so they keep working — with size/mtime zeroed out for plain ls where BusyBox can't report them.
files.sync and the rsync fallbackfiles.sync uses rsync for fast, resumable NAS↔NAS copies, with --delete mirroring and an rsync --dry-run pre-flight. rsync is not installed on UGOS by default, so:
note telling you how to install rsync (Entware: opkg install rsync) or how to turn on the fallback. Nothing runs until you confirm.cp -a copy. The plan's note explains this, and warnings call out what the fallback can't do: no --delete mirroring, no rsync --dry-run, and extraArgs are ignored.So you opt in per call by passing fallback: "cp". Nothing changes unless you ask for it.
Every mutating tool has two phases:
confirmationToken.Read-only tools never need a token. This makes "copy my data", "pull this image", or "restart that container" reviewable before anything changes.
All user-supplied values (paths, container names, image tags) are POSIX-shell-quoted before being interpolated into a remote command, so they cannot break out into arbitrary command execution.
At confirm time, the arguments of the confirming call are cross-checked against the plan-time arguments captured in the token: if they differ, the tool refuses and asks you to re-run for a fresh plan (so a stale token can never execute a differently-argued action).
The server reads a JSON config from ~/.ugnas-mcp/config.json (override with the UGNAS_MCP_CONFIG environment variable). See config.example.json.
{
"name": "home-nas", "host": "192.168.1.50", "port": 22, "username": "admin", "auth": { "type": "key", "privateKeyPath": "~/.ssh/id_ed25519" }, "defaultShare": "/volume1", "commandTimeoutMs": 60000 }
| Field | Required | Notes |
|---|---|---|
host | yes | IP or hostname of the NAS. |
port | no | SSH port, default 22. |
username | yes | SSH user. |
auth | yes | { "type": "key", "privateKeyPath": "..." } (recommended, supports passphrase) or { "type": "password", "password": "..." }. privateKeyPath may also be raw inline PEM. |
defaultShare | no | Base directory for relative tool paths, default /volume1. |
sftpRoot | no | The directory the SFTP subsystem is rooted at. On UGOS, SFTP is chrooted to the share root, so an exec path like /volume1/docker/x must be requested over SFTP as /docker/x; set this to the chroot root (defaults to defaultShare). Use "/" if your NAS does not chroot SFTP. |
hostKeySha256 | no | When set, the SSH host key is pinned and enforced (e.g. SHA256:...). Compare is padding-insensitive, so the canonical fingerprint from ssh-keygen -lf works as-is. |
commandTimeoutMs | no | Per-command timeout, default 60000. |
Useful for CI or secret injection. Env values win over the file:
UGNAS_HOST=192.168.1.50
UGNAS_PORT=22 UGNAS_USER=admin UGNAS_KEY_PATH=~/.ssh/id_ed25519 # or UGNAS_AUTH_TYPE=password + UGNAS_PASSWORD UGNAS_DEFAULT_SHARE=/volume1 UGNAS_HOST_KEY_SHA256=SHA256:...
File/backup tools accept either. An absolute path is used as-is; a relative path is joined onto defaultShare:
files.list("media") -> /volume1/media
files.list("/mnt/x") -> /mnt/x
Published on npm as ugnas-mcp. Run it directly — no clone, no build:
npx ugnas-mcp
npm install -g ugnas-mcp ugnas-mcp
That starts the stdio MCP server. It reads its config from ~/.ugnas-mcp/config.json (or UGNAS_MCP_CONFIG / UGNAS_* env vars — see Configuration).
Point your client at the official package (stdio):
{
"mcpServers": { "ugnas": { "command": "npx", "args": ["-y", "ugnas-mcp"], "env": { "UGNAS_MCP_CONFIG": "/absolute/path/to/config.json" } } } }
Or, if you installed it globally, "command": "ugnas-mcp" with no args.
The server is stdio by default. Set UGNAS_HTTP_PORT to *also* expose a streamable HTTP transport (both run side by side):
UGNAS_HTTP_HOST=127.0.0.1 UGNAS_HTTP_PORT=4110 ugnas-mcp
POST http://127.0.0.1:4110/mcp — JSON-RPC (stateless; a fresh session per request, max 1 MiB body).GET http://127.0.0.1:4110/health — liveness + target host.It binds to loopback by default. UGNAS_HTTP_HOST=0.0.0.0 (or any non-loopback address) is refused unless `UGNAS_HTTP_ALLOW_REMOTE=1` is also set — the /mcp endpoint has no authentication, and confirmation tokens are process-wide, so only opt in if the port is secured by something else (reverse proxy with auth, VPN, etc.).
docker (be in the docker group) and, for scheduled backups, use crontab.tar, df, du, ip, ss are present on UGOS — these are standard.backup.schedule job names must be plain words ([A-Za-z0-9._-]) — they are embedded in a generated shell script and a crontab line, so anything else is rejected up front.rsync is optional, used only by files.sync. If it's missing you get a note explaining how to install it or how to enable the built-in cp fallback (files.sync { fallback: "cp" }); every other file tool works without rsync.MIT — see LICENSE. Contributing, architecture, and the dev/release toolchain live in DEVELOPMENT.md.