
truenas/truenas-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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クライアントの設定
- クロードデスクトップ
- クロード・コード
- ステップ4:MCPクライアントの再起動
- ステップ5:接続の確認
- コマンドラインオプション
- 接続情報
- セキュリティ
- 使用例
- 高度な機能
- 長期運用のためのMCPタスク
- 書き込み操作用のドライランモード
- 開発
特徴
TrueNAS MCPは自然言語を用いた包括的な管理機能を提供します:
コアカテゴリー
- 📊 モニタリング - システム情報、健康状態、アラート、パフォーマンス指標
- 💾 ストレージ - プール、データセット、スナップショット、共有(SMB/NFS)
- 🖥️ 仮想化 - VM管理とステータス
- 🔐 ディレクトリサービス - 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, alerts, jobs, CPU, memory, disk, network, ARC and UPS metrics.
- Storage: pools, datasets, snapshots, and SMB and NFS shares.
- Data protection: replication and periodic snapshot task status, running either task now, and on-demand snapshots.
- Apps: catalog search, install, start, stop, upgrade, update and delete.
- Maintenance: system updates, boot environments and pool scrubs.
- Directory services: Active Directory, LDAP and FreeIPA status and setup.
- 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), Linux (x86-64) or Windows (x86-64). Put the binary on your PATH as truenas-mcp:
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 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 (needed on Intel Macs), 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
2. Create a TrueNAS API key
In the TrueNAS web UI, open the user menu in the top-right corner and choose My API Keys, or go to Credentials → Users, select the user, and click View API Keys. Note the user that owns it (for example truenas_admin). The key has that user’s privileges, so use the narrowest role that covers what you need: Read-Only Administrator is enough for --read-only.
3. Configure your MCP client
The basic settings are:
| Setting | Environment variable | Flag |
|---|---|---|
TrueNAS host or wss:// URL |
TRUENAS_URL |
--truenas-url |
| API key owner | TRUENAS_API_USER |
--api-user |
| API key | TRUENAS_API_KEY, or a file in TRUENAS_API_KEY_FILE |
--api-key-file |
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"truenas": {
"command": "truenas-mcp",
"args": ["--read-only"],
"env": {
"TRUENAS_URL": "192.168.0.31",
"TRUENAS_API_USER": "truenas_admin",
"TRUENAS_API_KEY": "your-api-key"
}
}
}
}