feiniunas-mcp
by wangguanxiao
@wangguanxiao/feiniunas-mcp
飞牛 fnOS NAS 管理 MCP 服务,通过小智 AI 对话即可管理 NAS。
功能
get_nas_status — 获取 NAS 系统状态(主机名、运行时间、CPU 负载、内存、磁盘概况)
list_docker_containers — 列出所有 Docker 容器及运行状态
get_disk_info — 获取磁盘/存储详细信息
control_docker_container — 启动/停止/重启/删除 Docker 容器
安装
npm install -g @wangguanxiao/feiniunas-mcp使用
在 xiaozhi.config.json 中配置
{
"mcpServers": {
"feiniunas": {
"command": "npx",
"args": ["-y", "@wangguanxiao/feiniunas-mcp"]
}
}
}或本地开发模式:
{
"mcpServers": {
"feiniunas": {
"command": "node",
"args": ["/path/to/feiniunas-mcp/run.js"]
}
}
}示例对话
"NAS 现在什么状态?" → 调用 get_nas_status
"列出所有 Docker 容器" → 调用 list_docker_containers
"磁盘还剩多少空间?" → 调用 get_disk_info
"帮我重启 xxx 容器" → 调用 control_docker_container
开发
# 安装依赖
npm install
# 构建
npm run build
# 本地运行
node run.js
# 类型检查
npm run type-check要求
Node.js >= 18
运行在飞牛 NAS 或 Linux 环境上(依赖
hostname、uptime、free、df、docker等系统命令)Docker 命令需要当前用户有执行权限
安全说明
control_docker_container对容器名做了字符校验,只允许字母数字和_-.:不支持
exec、run等可能在容器内执行任意命令的操作建议以非 root 用户运行,配合 Docker 用户组权限
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wangguanxiao/feiniunas-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server