Skip to main content
Glama

TrueNAS MCP

一个 MCP 服务器,可将您的 TrueNAS (SCALE) 实例转化为工具。可从任何 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-mcp

Related MCP server: truenas-ws-mcp

设置

name

default

notes

TRUENAS_URI

-

必填,ws:// 或 wss:// websocket URL,例如 wss://host/api/current

TRUENAS_API_KEY

-

必填,来自 TrueNAS API 密钥

TRUENAS_VERIFY_SSL

true

仅在纯 ws:// 连接下设为 false(为自签名证书禁用 TLS 验证)

LOG_LEVEL

INFO

值可来自工作目录中的 .env 文件。API 密钥认证通过持久连接使用 auth.login_with_api_key(TrueNAS 25.10 SCRAM - 无需用户名)。

通过 HTTP 提供服务

默认情况下,服务器使用 stdio 通信(每个客户端一个进程)。要将其作为 HTTP MCP 端点暴露在网关(例如 LiteLLM)之后,请设置 FastMCP 传输环境变量 - 无需修改代码:

env

default

FASTMCP_TRANSPORT

stdio

FASTMCP_HOST

127.0.0.1

FASTMCP_PORT

8000

FASTMCP_STREAMABLE_HTTP_PATH

/mcp

示例 - 在所有接口上提供 streamable-http 服务:

FASTMCP_TRANSPORT=streamable-http FASTMCP_HOST=0.0.0.0 FASTMCP_PORT=8000 \
  truenas-mcp

工具

system_infolist_poolslist_diskslist_datasetslist_appslist_vmstruenas_call(通用中间件逃生通道)。

许可证

MIT

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
5Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.

  • Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.

  • Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.

View all MCP Connectors

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/trash-panda-v91-beta/truenas-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server