truenas-mcp
Provides read-only access to TrueNAS SCALE storage (pools, disks, datasets, snapshots), shares (SMB, NFS), services, system info, jobs, and alerts via the JSON-RPC 2.0 WebSocket API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@truenas-mcpwhat's the status of my storage pools?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
truenas-mcp
Read-only MCP server for TrueNAS SCALE 25.10+ — connects via the JSON-RPC 2.0 WebSocket API.
Why this exists: The official
truenas/truenas-mcpbinary uses the legacy DDP protocol, which was removed in TrueNAS 25.10. This server targets the newwss://host/api/currentJSON-RPC 2.0 endpoint exclusively.
READ-ONLY: This server performs zero write or mutating operations.
Requirements
TrueNAS SCALE 25.10 or later
A TrueNAS API key (generate in System → API Keys)
Node.js 18+
Related MCP server: KVMFleet MCP Server
Install
npm install -g @profanter-dev/truenas-mcpOr run without installing:
npx @profanter-dev/truenas-mcpConfiguration
Variable | Required | Description |
| ✓ |
|
| ✓ | TrueNAS API key |
|
|
Copy .env.example to .env and fill in your values, or pass as environment variables.
Claude Code setup
claude mcp add truenas \
-e TRUENAS_HOST=192.168.1.29:444 \
-e TRUENAS_API_KEY=your-key \
-e TRUENAS_INSECURE=true \
-- npx @profanter-dev/truenas-mcpTools
All entities follow a consistent list / details pattern.
Storage
Tool | Description |
| All ZFS pools — health, status, usable capacity (used + available) |
| Single pool: health, capacity, last scrub |
| All disks — model, type, pool assignment, temperature, SMART result, ZFS error counts |
| Single disk: serial, size, temperature, full SMART history, vdev assignment, ZFS errors |
| All ZFS datasets with used/available space; optionally filter by pool |
| Full properties for a single dataset: compression, dedup, quota, and more |
| ZFS snapshots ordered newest-first; filter by dataset, configurable limit, boot-pool excluded by default |
| Single snapshot: size, referenced, compression ratio, clones |
Shares
Tool | Description |
| All SMB and NFS shares — path, enabled state, comment |
| Full config for a single SMB or NFS share |
Services
Tool | Description |
| All TrueNAS services with running state and boot-enable flag |
| Single service state plus service-specific config (e.g. SSH port and auth settings, SMB workgroup, NFS settings). Private/public key material is stripped. |
System
Tool | Description |
| Hostname, version, CPU, memory, uptime, load average (1/5/15 min), timezone |
Jobs & Alerts
Tool | Description |
| Unique job types with last-run status and timestamp (cron jobs shown with human-readable description) |
| Full run history for a specific job; requires |
| Active alerts sorted by severity: CRITICAL → ERROR → WARNING → NOTICE → INFO |
Protocol details
WebSocket URL:
wss://<host>/api/currentAuth:
auth.login_with_api_key— called once on connect; never reconnects per-callRate limit: TrueNAS enforces 20 auth attempts per 60 s; exceeding triggers a 10-minute lockout
The server maintains a single persistent connection with exponential-backoff reconnection on unexpected disconnects
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/profanter-dev/truenas-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server