TrueNAS MCP
TrueNAS MCP
TrueNAS(SCALE) 인스턴스를 도구로 만들어 주는 MCP 서버입니다. 풀, 디스크, 데이터셋, 앱, VM 등을 모든 MCP 클라이언트에서 관리할 수 있습니다. FastMCP와 공식 truenas_api_client websocket 라이브러리를 기반으로 합니다.
지속적인 websocket 연결을 통해 TrueNAS API 키로 인증합니다. TrueNAS 25.10(핀: TS-25.10.3)을 대상으로 합니다.
Docker로 실행
TrueNAS 인스턴스와 API 키가 필요합니다(계정 설정 > API 키).
docker build -t truenas-mcp .
docker run -e TRUENAS_URI=wss://truenas.example.com/api/current \
-e TRUENAS_API_KEY=your-key \
truenas-mcpRelated MCP server: truenas-ws-mcp
설정
이름 | 기본값 | 참고 |
| - | 필수, ws:// 또는 wss:// websocket URL(예: |
| - | 필수, TrueNAS API 키에서 발급 |
| true | 일반 ws://에서만 false로 설정(자체 서명 인증서에 대한 TLS 검증 비활성화) |
| INFO |
값은 작업 디렉터리의 .env 파일에서 가져올 수 있습니다. API 키 인증은 지속적인 연결을 통해 auth.login_with_api_key를 사용합니다(TrueNAS 25.10 SCRAM - 사용자 이름 불필요).
HTTP로 제공
기본적으로 서버는 stdio(클라이언트당 프로세스 하나)로 통신합니다. 게이트웨이(예: LiteLLM) 뒤의 HTTP MCP 엔드포인트로 노출하려면 FastMCP transport 환경 변수를 설정하면 됩니다 - 코드 변경은 필요 없습니다:
환경 변수 | 기본값 |
|
|
|
|
|
|
|
|
예 - 모든 인터페이스에서 streamable-http 서빙:
FASTMCP_TRANSPORT=streamable-http FASTMCP_HOST=0.0.0.0 FASTMCP_PORT=8000 \
truenas-mcp도구
system_info, list_pools, list_disks, list_datasets, list_apps, list_vms, truenas_call(범용 미들웨어 탈출구).
라이선스
MIT
Available Tools
29 toolscreate_datasetCreate DatasetC
Create a ZFS dataset.
Inputs: name (required), dry_run. Returns: result
create_snapshotCreate SnapshotC
Create a ZFS snapshot.
Inputs: dataset (required), name, dry_run. Returns: result
delete_appDelete AppC
Delete an installed app.
Inputs: app_name (required), dry_run, remove_images. Returns: result
delete_datasetDelete DatasetC
Delete a ZFS dataset.
Inputs: name (required), dry_run, recursive. Returns: result
delete_snapshotDelete SnapshotC
Delete a ZFS snapshot.
Inputs: name (required), dry_run. Returns: result
dismiss_alertDismiss AlertC
Dismiss a TrueNAS alert.
Inputs: alert_id (required). Returns: result
get_scrub_statusGet Scrub StatusB
Get ZFS pool scrub status/schedules.
Inputs: pool_name. Returns: result
install_appInstall AppC
Install an app from the TrueNAS catalog.
Inputs: values (required), app_name (required), catalog_app (required), train, +2 more. Returns: result
list_alertsList AlertsB
List TrueNAS system alerts.
Inputs: no named parameters. Returns: result
list_appsList AppsA
List installed applications (k3s apps) with state and version.
Inputs: no named parameters. Returns: result
list_boot_environmentsList Boot EnvironmentsA
List boot environments (active, activated, kernel/initramfs).
Inputs: no named parameters. Returns: result
list_datasetsList DatasetsB
List ZFS datasets (name, mountpoint, used/available, quotas).
Inputs: path. Returns: result
list_disksList DisksA
List disks and their health fields (model, serial, size, SMART status).
Inputs: serial. Returns: result
list_jobsList JobsB
List middleware jobs (long-running operations).
Inputs: state. Returns: result
list_poolsList PoolsB
List storage pools and their ZFS status (health, capacity, topology).
Inputs: name. Returns: result
list_snapshotsList SnapshotsC
List ZFS snapshots.
Inputs: dataset. Returns: result
list_vmsList VmsB
List virtual machines with their current status.
Inputs: no named parameters. Returns: result
restore_alertRestore AlertB
Restore a dismissed TrueNAS alert.
Inputs: alert_id (required). Returns: result
run_scrubRun ScrubC
Run a ZFS scrub on a pool.
Inputs: pool_name (required), dry_run. Returns: result
search_app_catalogSearch App CatalogC
Search the TrueNAS app catalog for available apps.
Inputs: train, catalog_app. Returns: result
start_appStart AppB
Start an installed app. Long-running (may take seconds).
Inputs: app_name (required). Returns: result
stop_appStop AppA
Stop an installed app. Long-running (may take seconds).
Inputs: app_name (required). Returns: result
system_infoSystem InfoA
Get TrueNAS system information (version, hostname, uptime, CPU, memory).
Returns: JSON string with system.info fields.
Inputs: no named parameters. Returns: result
truenas_callTruenas CallC
Call any TrueNAS middleware endpoint directly.
Inputs: method (required), params. Returns: result
update_appUpdate AppC
Update an installed app's configuration.
Inputs: values (required), app_name (required), dry_run. Returns: result
upgrade_appUpgrade AppC
Upgrade an installed app to the latest version.
Inputs: app_name (required), dry_run. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Most tools target clearly distinct resources and actions, especially the list/create/delete families for datasets, snapshots, and shares. Minor ambiguity exists between update_app and upgrade_app, and truenas_call overlaps with every specific tool as a generic escape hatch.
Almost all tools use consistent snake_case verb_noun naming, such as list_pools, create_dataset, and delete_share. The few deviations are system_info (noun-first) and truenas_call (noun_verb), but the overall pattern remains predictable.
TrueNAS is a broad administration domain, so many tools are justified, but 29 tools is on the heavy side and includes both granular wrappers and a generic truenas_call fallback. The set is useful but close to feeling over-expanded.
Core areas like datasets, snapshots, shares, apps, alerts, and scrubs are well covered, but VM support is list-only and there are no update operations for datasets or shares. The generic truenas_call endpoint can fill gaps, though not as cleanly as dedicated tools.
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Related MCP Servers
- AlicenseBqualityDmaintenanceA 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.201,906 PyPI36MIT
- AlicenseBqualityDmaintenanceMCP server for TrueNAS Scale that enables AI assistants to manage storage pools, datasets, apps, VMs, snapshots, and more via the native WebSocket API.59MIT
- AlicenseAqualityBmaintenanceAI-powered MCP server for TrueNAS SCALE storage operations with governance and safety features, enabling management of pools, datasets, snapshots, disks, alerts, and services.251MIT
- AlicenseAqualityBmaintenanceAn MCP server for TrueNAS that lets users manage ZFS pools, datasets, shares, snapshots, VMs, alerts, and network configuration through natural language, using a single hierarchical tool exposing 278 actions.116 npm1MIT