nasbridge
Provides tools to manage TrueNAS systems, including ZFS pools and datasets, SMB/NFS/iSCSI shares, snapshots, replication, VMs, alerts, and network configuration.
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., "@nasbridgeCreate a dataset on tank with lz4 and daily snapshot task"
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.
nasbridge — control TrueNAS from Claude
An MCP server for TrueNAS that lets Claude Desktop, Claude Code, Cursor or any other MCP client manage your NAS — ZFS pools and datasets, SMB and NFS shares, snapshots, replication, VMs, alerts and network config. 278 actions in all.
Ask for "a dataset on tank with lz4 and a daily snapshot task", or "which pools are degraded", and it happens over the wire rather than through the web UI.
TrueNAS 26 drops the REST API in favour of JSON-RPC 2.0 over WebSocket, so this server speaks that transport directly.
One tool, not 278
The design decision worth stealing: this exposes a single hierarchical
truenas tool rather than one tool per action.
Most MCP servers register a flat tool per operation. At 278 actions that consumes a large share of the context window before the model has done any work, and degrades tool selection as the list grows. Here the model discovers categories, lists the actions in one, then executes with parameters — three cheap round trips instead of a permanently expensive tool manifest.
Related MCP server: TrueNAS Scale MCP Server
How it works
This started as a fork of the truenas-mcp package, which targets the REST API
that TrueNAS 26 removed. The tool handlers are largely unchanged — they still call
a REST-style client (client.get/post/put/delete). What was rewritten is
everything beneath: a path-translator maps each REST path to its JSON-RPC method
(GET /pool becomes pool.query, PUT /pool/id/1 becomes pool.update), and a
ws client sends those calls over a single authenticated WebSocket connection.
Keeping the REST-shaped seam meant the 278 handlers did not have to be rewritten to change transport.
Authentication is auth.login_with_api_key on connect. The connection keeps itself alive with a 30s core.ping. Long-running operations are tracked via core.get_jobs.
Tools
The truenas tool takes category, action and params:
No args or
category="help"— list all categories with action countscategoryonly — list the actions in that category and their parameterscategory+action+params— execute
278 actions are wired across these categories:
Category | Covers |
| System info, services, mail, API keys, power, NTP |
| Pools, datasets, snapshots, periodic snapshot tasks |
| SMB, NFS and iSCSI (targets, extents, portals, initiators) |
| Interfaces, global config, static routes, staged changes |
| Virtual machines and VM devices |
| System alerts and alert notification services |
| Replication, cloud sync/backup, cron, rsync, SSH credentials |
| stat, listdir, mkdir, permissions, ACLs, ownership |
Destructive actions (reboot, shutdown and similar) require an explicit confirm: true parameter.
Resources
Read-only resources surface common state without a tool call: truenas://system/info, truenas://storage/pools, truenas://storage/datasets, truenas://services, truenas://alerts, truenas://network/summary, truenas://sharing, truenas://vms, truenas://apps, truenas://disks, truenas://boot/environments and truenas://system/update.
Configuration
Variable | Required | Default | Notes |
| yes | — | TrueNAS host or URL. |
| yes | — | Generate in TrueNAS: Credentials → API Keys → Add |
| no |
| Set |
The client connects with wss:// by default. A self-signed cert needs TRUENAS_VERIFY_SSL=false.
Don't pass a
ws://URL.http://andhttps://are rewritten towss://, but an explicitws://is left alone — and TrueNAS auto-revokes any API key it sees used over an insecure transport. You get an authentication failure that looks like a bad key, and the key really is dead. Regenerate it and connect overwss://.
Requirements
TrueNAS 26 or later (earlier versions expose a different WebSocket shape)
Node.js 18+ (CI proves the built server imports on 18 and 22)
A TrueNAS API key — Credentials → API Keys → Add
An MCP client: Claude Desktop, Claude Code, Cursor, or anything else speaking MCP
Install and run
git clone https://github.com/maverick0628/nasbridge.git
cd nasbridge
npm install
npm run build
TRUENAS_URL=https://truenas.local TRUENAS_API_KEY=1-yourkey node dist/cli.jsCreate the API key in the TrueNAS UI under Credentials → Local Users → API Keys.
Keep it in your MCP client config or a local .env, never in the repo — .env is
gitignored for that reason.
The server speaks MCP over stdio. Add it to your MCP client config — for Claude
Desktop that is claude_desktop_config.json, for Claude Code .mcp.json:
{
"command": "node",
"args": ["/path/to/nasbridge/dist/cli.js"],
"env": {
"TRUENAS_URL": "https://truenas.local",
"TRUENAS_API_KEY": "1-yourkey",
"TRUENAS_VERIFY_SSL": "false"
}
}Tests
npm testUnit tests cover the REST-to-WebSocket path translator and the client against a mock WebSocket server. test/e2e-live.mjs runs the dataset create/get flow against a real TrueNAS instance.
Notes
TrueNAS 26 tightened dataset validation: atime, compression and sync must be uppercase string literals (ON, OFF, LZ4, STANDARD). The storage tools normalise these before create/update, so the model can pass natural values.
Built against TrueNAS 26. Earlier versions expose a different WebSocket API shape and are not supported.
License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityCmaintenanceA Model Context Protocol server that enables Claude Desktop and other MCP clients to interact with TrueNAS Core systems through the TrueNAS API, supporting user management, storage operations, sharing, and snapshot creation.Last updated2029MIT
- Alicense-qualityDmaintenanceA Model Context Protocol (MCP) server that enables AI assistants to manage TrueNAS Scale Custom Apps using natural language commands, with tools for deploying, managing, and monitoring Docker Compose applications.Last updated6MIT
- AlicenseBqualityDmaintenanceMCP server for TrueNAS Scale that enables AI assistants to manage storage pools, datasets, apps, VMs, snapshots, and more via the native WebSocket API.Last updated59MIT
- Alicense-qualityDmaintenanceAn MCP server that gives AI assistants real-time access to your homelab infrastructure. It enables querying node status, managing Docker containers, controlling Proxmox VMs, and inspecting OPNsense firewall state through natural conversation.Last updated2MIT
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
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/maverick0628/nasbridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server