TT

truenas/truenas-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

135 stars 29 forks 质量 79 趋势 24GPL-3.0

truenas/truenas-mcp 是从 https://github.com/truenas/truenas-mcp. 导入的 MCP 服务器候选服务器。

概览

truenas/truenas-mcp 是从 https://github.com/truenas/truenas-mcp. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

** ⚠️ 研究预览** 该项目处于积极开发阶段,并作为研究预览发布。API 和功能可能会发生变化。不建议用于生产环境。

一款适用于 TrueNAS 的模型上下文协议(MCP)服务器,使 AI 模型能够通过自然语言查询与 TrueNAS API 交互。

目录

  • 特色
  • 建筑学
  • 建筑
  • 安装
  • 步骤1:下载或构建二进制文件
  • 步骤2:获取TrueNAS API密钥
  • 步骤3:配置您的MCP客户端
  • Claude桌面
  • 克劳德密码
  • 步骤4:重启您的MCP客户端
  • 步骤5:验证连接
  • 命令行选项
  • 连接详情
  • 安全
  • 示例用法
  • 高级功能
  • MCP任务用于长期运行操作
  • 写操作的预运行模式
  • 发展

特色

TrueNAS MCP 通过自然语言提供全面的管理能力:

核心类别

  • 📊 监控 - 系统信息、健康状况、警报、性能指标
  • 💾 存储 - 池、数据集、快照、共享(SMB/NFS)
  • 🖥️ 虚拟化 - 虚拟机管理与状态
  • 🔐 目录服务 - Active Directory、LDAP、FreeIPA 集成及健康监测

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

TrueNAS MCP Server

⚠️ Early Access This project is in early access. Destructive operations require explicit confirmation, but tools, arguments and outputs may still change between releases. Review each confirmation carefully and use caution in production environments.

An MCP server for TrueNAS. It runs on your computer, connects to the TrueNAS API, and lets an AI assistant such as Claude query and manage the system in plain language.

Features

  • Monitoring: system info and health, disks and disk health, services, alerts, jobs, CPU, memory, disk, network, ARC and UPS metrics.
  • Storage: pools, datasets, snapshots, and SMB and NFS shares (create, change and delete shares, set an SMB share ACL, and replace the filesystem ACL of a path).
  • Data protection: replication and periodic snapshot task status, running either task now, on-demand snapshots, cloning a snapshot to a new dataset, snapshot holds, and rolling back to or deleting a snapshot.
  • Apps: catalog search, install, start, stop, upgrade, update and delete.
  • Maintenance: system updates, boot environments, pool scrubs, taking a pool disk offline or online and replacing a disk, and starting, stopping and restarting services.
  • Network: gateways, nameservers, interface addresses and IPv6 autoconfiguration, with TrueNAS’s automatic rollback for interface changes.
  • Directory services: Active Directory, LDAP and FreeIPA status and setup.
  • Accounts: local users and groups: listing, creating, changing and deleting them, never granting sudo, roles or administrative group membership, and never deleting home directories or primary groups.
  • Capacity planning: usage analysis and growth trends.
  • Virtual machines: VM status.

Safety: --read-only hides every tool that changes the system. Destructive actions need your explicit confirmation, and secrets are redacted from everything sent back to the assistant.

See docs/full-features.md for every tool and docs/examples.md for example questions.

Install

You need TrueNAS 25.10 or later.

1. Get the binary

Download the archive for your platform from the Releases page: macOS (Apple Silicon or Intel), Linux (x86-64 or ARM64) or Windows (x86-64 or ARM64). Put the binary on your PATH as truenas-mcp:

# Use arm64 instead of amd64 on ARM machines.
tar -xzf truenas-mcp-linux-amd64.tar.gz
sudo install truenas-mcp-linux-amd64 /usr/local/bin/truenas-mcp

On Windows, unzip truenas-mcp-windows-amd64.zip (truenas-mcp-windows-arm64.zip on ARM) and use the full path to the .exe as the command in your client config. Each release has a checksums.txt to verify the download.

To build it yourself, you need Go 1.27.4 or later:

git clone https://github.com/truenas/truenas-mcp.git
cd truenas-mcp
make build    # writes ./truenas-mcp
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "truenas": { "command": "truenas-mcp", "args": ["--read-only"], "env": { "TRUENAS_URL": "192.0.2.10", "TRUENAS_API_USER": "truenas_admin", "TRUENAS_API_KEY": "your-api-key" } } } }