TrueNAS CoreSAFE
A working TrueNAS Core MCP Server
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://www.python.org/downloads/) [](https://github.com/modelcontextprotocol/python-sdk) [](LICENSE) [](https://pypi.org/project/truenas-mcp-server/)
A production-ready Model Context Protocol (MCP) server for TrueNAS Core and SCALE systems. Control and manage your TrueNAS storage and virtualization through natural language with Claude or other MCP-compatible clients.
Automatic variant detection: The server automatically detects whether you're connected to TrueNAS Core or SCALE and enables the appropriate features.
🚀 Features
Universal Features (Core & SCALE)
- User Management - Create, update, delete users and manage permissions
- Storage Management - Manage pools, datasets, volumes with full ZFS support
- File Sharing - Configure SMB, NFS, and iSCSI shares
- Snapshot Management - Create, delete, rollback snapshots with automation
- System Monitoring - Check system health, pool status, and resource usage
TrueNAS SCALE Features (24.04+)
Automatically enabled when connected to SCALE
- Apps - Manage Docker Compose-based TrueNAS applications
- Incus Instances - Control Incus VMs and containers (SCALE 25.04+)
- Legacy VMs - Manage bhyve virtual machines
Enterprise Features
- Type-Safe Operations - Full Pydantic models for request/response validation
- Comprehensive Error Handling - Detailed error messages and recovery guidance
- Production Logging - Structured logging with configurable levels
- Connection Pooling - Efficient HTTP connection management with retry logic
- Rate Limiting - Built-in rate limiting to prevent API abuse
- Environment-Based Config - Flexible configuration via environment variables
📦
b38a16eac1b0OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add truenas-mcp-server --env TRUENAS_API_KEY=${TRUENAS_API_KEY} -- uvx truenas-mcp-server{
"mcpServers": {
"truenas-mcp-server": {
"command": "uvx",
"args": [
"truenas-mcp-server"
],
"env": {
"TRUENAS_API_KEY": "${TRUENAS_API_KEY}"
}
}
}
}Exposed tools (1)
1 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
debug_env | read | Debug function to check environment variables |
Trust audit
SAFEgrade B · trust 85/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- declared (2 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- found
Findings (18)
api_key = "3-4vPYKNTxvN9BymmhgU77JDvrQBPbOdkCr7oM7n7ODScoZA7xaiKM1Al6uNNlKldS"
.pre-commit-config.yaml
return hashlib.md5(key_str.encode()).hexdigest()
print(f"API Key: {api_key[:10]}...{api_key[-10:]}")print(f"API Key: {api_key[:10]}...{api_key[-10:]}")print(f"Key Length: {len(api_key)} characters")TRUENAS_URL=https://192.168.1.100 # Your TrueNAS IP
"TRUENAS_URL": "https://192.168.1.100",
TRUENAS_URL=https://192.168.1.100
"TRUENAS_URL": "https://192.168.1.100",
url = "https://10.0.0.14"
async with httpx.AsyncClient(verify=False) as client:
async with httpx.AsyncClient(verify=False, timeout=10.0) as client:
async with httpx.AsyncClient(verify=False, timeout=10.0) as client:
cat .env # macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -LsSf https://astral.sh/uv/install.sh | sh
Gates applied: no_behavioural_pass.
b38a16eac1b0full audit observations/trust-audit/mcp-server/vespo92__truenas-core.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | b38a16eac1b0 | SAFE | B | 85 | first audit |
Questions
What is the TrueNAS Core MCP server?
A working TrueNAS Core MCP Server
What tools does TrueNAS Core expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is TrueNAS Core safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (85/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does TrueNAS Core need?
It reads TRUENAS_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How current is this page?
The grade is for one exact copy of the source (b38a16eac1b0), read on 2026-10-08. The repository is watched and re-audited when it changes.