能做什么
Homelab: Nginx Proxy Manager, Docker and Cloudflare DNS, with approval for every change.
作者提供的原文
- 连接方式 在你的电脑上运行
- 账号或密钥 需要 HOMELAB_PROXY_PASSWORD, HOMELAB_DOCKER_PORTAINER_TOKEN, HOMELAB_DNS_API_TOKEN, HOMELAB_HOME_ASSISTANT_TOKEN, HOMELAB_UPTIME_API_KEY, HOMELAB_TUNNEL_API_TOKEN, HOMELAB_DNS_FILTER_PASSWORD, HOMELAB_SSO_TOKEN
- 分类 开发者工具
可搭配使用
教 AI 做这类工作的 Skill,可与本项一起使用
andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
graphify
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
为什么排在这里
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 0/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 12/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
安装
选择你使用的 AI 应用,然后复制设置。
用一句话让 AI 帮你安装
请帮我安装 Homelab Infra MCP。按照 https://mcp.popnx.com/i/seayniclabs-homelab-infra-mcp.md 操作,先把命令给我看,等我同意后再运行。粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
让 AI 帮你安装
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server Homelab Infra MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "homelab-infra": { "command": "uvx", "args": [ "homelab-infra-mcp" ], "env": { "HOMELAB_PROXY_PASSWORD": "your-value", "HOMELAB_DOCKER_PORTAINER_TOKEN": "your-value", "HOMELAB_DNS_API_TOKEN": "your-value", "HOMELAB_HOME_ASSISTANT_TOKEN": "your-value", "HOMELAB_UPTIME_API_KEY": "your-value", "HOMELAB_TUNNEL_API_TOKEN": "your-value", "HOMELAB_DNS_FILTER_PASSWORD": "your-value", "HOMELAB_SSO_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) HOMELAB_PROXY_PASSWORD, HOMELAB_DOCKER_PORTAINER_TOKEN, HOMELAB_DNS_API_TOKEN, HOMELAB_HOME_ASSISTANT_TOKEN, HOMELAB_UPTIME_API_KEY, HOMELAB_TUNNEL_API_TOKEN, HOMELAB_DNS_FILTER_PASSWORD, HOMELAB_SSO_TOKEN 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Homelab Infra MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 uv(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --version- 显示版本号(例如 uv …)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
uv --version安装一次,所有需要 uv 的工具都能用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "homelab-infra": { "command": "uvx", "args": [ "homelab-infra-mcp" ], "env": { "HOMELAB_PROXY_PASSWORD": "your-value", "HOMELAB_DOCKER_PORTAINER_TOKEN": "your-value", "HOMELAB_DNS_API_TOKEN": "your-value", "HOMELAB_HOME_ASSISTANT_TOKEN": "your-value", "HOMELAB_UPTIME_API_KEY": "your-value", "HOMELAB_TUNNEL_API_TOKEN": "your-value", "HOMELAB_DNS_FILTER_PASSWORD": "your-value", "HOMELAB_SSO_TOKEN": "your-value" } } } }只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 Homelab Infra MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Homelab Infra MCP,或回答中出现 Homelab Infra MCP 的工具名称,就表示连接成功
19 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
HOMELAB_PROXY_URLNginx Proxy Manager 地址,例如 http://localhost:81查看英文原文
Nginx Proxy Manager address, e.g. http://localhost:81HOMELAB_PROXY_EMAILNginx Proxy Manager 管理员邮箱查看英文原文
Nginx Proxy Manager admin emailHOMELAB_DOCKER_HOSTDocker 引擎地址,例如 unix:///var/run/docker.sock查看英文原文
Docker engine address, e.g. unix:///var/run/docker.sockHOMELAB_DOCKER_PORTAINER_URLPortainer 基础 URL,替代 Docker socket查看英文原文
Portainer base URL, instead of the Docker socketHOMELAB_DOCKER_PORTAINER_ENDPOINT_IDPortainer 端点 ID(默认为 1)查看英文原文
Portainer endpoint id (default 1)HOMELAB_DNS_ZONE_ID默认 Cloudflare 区域 ID。查看英文原文
Default Cloudflare zone idHOMELAB_HOME_ASSISTANT_URLHome Assistant 地址(该模块默认关闭)查看英文原文
Home Assistant address (module is off by default)HOMELAB_UPTIME_ENABLEDtrue 启用 Uptime Kuma 模块(默认关闭)查看英文原文
true turns on the Uptime Kuma module (off by default)HOMELAB_UPTIME_URLUptime Kuma 地址查看英文原文
Uptime Kuma addressHOMELAB_TUNNEL_ENABLEDtrue 启用 Cloudflare Tunnel 模块(默认关闭)查看英文原文
true turns on the Cloudflare Tunnel module (off by default)HOMELAB_TUNNEL_ACCOUNT_ID拥有该隧道的 Cloudflare 账户 ID查看英文原文
Cloudflare account id that owns the tunnelHOMELAB_TUNNEL_TUNNEL_IDCloudflare Tunnel idHOMELAB_DNS_FILTER_ENABLEDtrue 表示启用 AdGuard Home 模块(默认关闭)查看英文原文
true turns on the AdGuard Home module (off by default)HOMELAB_DNS_FILTER_URLAdGuard Home 地址查看英文原文
AdGuard Home addressHOMELAB_DNS_FILTER_USERNAMEAdGuard Home 登录名查看英文原文
AdGuard Home loginHOMELAB_SSO_ENABLEDtrue 表示启用 Authentik 模块(默认关闭)查看英文原文
true turns on the Authentik module (off by default)HOMELAB_SSO_URLAuthentik 地址查看英文原文
Authentik addressHOMELAB_SSO_FLOW_SLUG用于新代理提供程序的 Authentik 授权流程 slug查看英文原文
Authentik authorization flow slug used for new proxy providersHOMELAB_READ_ONLY设为 true 将拒绝所有更改。查看英文原文
true refuses every change
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Homelab Infra MCP
Homelab Infra MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Homelab Infra MCP 的应用
- 需要 Homelab Infra MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 Homelab Infra MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
- 需要 Homelab Infra MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
- 需要 Homelab Infra MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Homelab Infra MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
让 AI 帮你安装
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server Homelab Infra MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user homelab-infra --env HOMELAB_PROXY_PASSWORD=your-value --env HOMELAB_DOCKER_PORTAINER_TOKEN=your-value --env HOMELAB_DNS_API_TOKEN=your-value --env HOMELAB_HOME_ASSISTANT_TOKEN=your-value --env HOMELAB_UPTIME_API_KEY=your-value --env HOMELAB_TUNNEL_API_TOKEN=your-value --env HOMELAB_DNS_FILTER_PASSWORD=your-value --env HOMELAB_SSO_TOKEN=your-value -- uvx homelab-infra-mcp 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) HOMELAB_PROXY_PASSWORD, HOMELAB_DOCKER_PORTAINER_TOKEN, HOMELAB_DNS_API_TOKEN, HOMELAB_HOME_ASSISTANT_TOKEN, HOMELAB_UPTIME_API_KEY, HOMELAB_TUNNEL_API_TOKEN, HOMELAB_DNS_FILTER_PASSWORD, HOMELAB_SSO_TOKEN 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Homelab Infra MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 uv(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --version- 显示版本号(例如 uv …)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
uv --version安装一次,所有需要 uv 的工具都能用
注册并创建 Homelab Infra MCP 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user homelab-infra --env HOMELAB_PROXY_PASSWORD=your-value --env HOMELAB_DOCKER_PORTAINER_TOKEN=your-value --env HOMELAB_DNS_API_TOKEN=your-value --env HOMELAB_HOME_ASSISTANT_TOKEN=your-value --env HOMELAB_UPTIME_API_KEY=your-value --env HOMELAB_TUNNEL_API_TOKEN=your-value --env HOMELAB_DNS_FILTER_PASSWORD=your-value --env HOMELAB_SSO_TOKEN=your-value -- uvx homelab-infra-mcp按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Homelab Infra MCP 在列表中并显示已连接
试一试
用 Homelab Infra MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Homelab Infra MCP,或回答中出现 Homelab Infra MCP 的工具名称,就表示连接成功
19 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
HOMELAB_PROXY_URLNginx Proxy Manager 地址,例如 http://localhost:81查看英文原文
Nginx Proxy Manager address, e.g. http://localhost:81HOMELAB_PROXY_EMAILNginx Proxy Manager 管理员邮箱查看英文原文
Nginx Proxy Manager admin emailHOMELAB_DOCKER_HOSTDocker 引擎地址,例如 unix:///var/run/docker.sock查看英文原文
Docker engine address, e.g. unix:///var/run/docker.sockHOMELAB_DOCKER_PORTAINER_URLPortainer 基础 URL,替代 Docker socket查看英文原文
Portainer base URL, instead of the Docker socketHOMELAB_DOCKER_PORTAINER_ENDPOINT_IDPortainer 端点 ID(默认为 1)查看英文原文
Portainer endpoint id (default 1)HOMELAB_DNS_ZONE_ID默认 Cloudflare 区域 ID。查看英文原文
Default Cloudflare zone idHOMELAB_HOME_ASSISTANT_URLHome Assistant 地址(该模块默认关闭)查看英文原文
Home Assistant address (module is off by default)HOMELAB_UPTIME_ENABLEDtrue 启用 Uptime Kuma 模块(默认关闭)查看英文原文
true turns on the Uptime Kuma module (off by default)HOMELAB_UPTIME_URLUptime Kuma 地址查看英文原文
Uptime Kuma addressHOMELAB_TUNNEL_ENABLEDtrue 启用 Cloudflare Tunnel 模块(默认关闭)查看英文原文
true turns on the Cloudflare Tunnel module (off by default)HOMELAB_TUNNEL_ACCOUNT_ID拥有该隧道的 Cloudflare 账户 ID查看英文原文
Cloudflare account id that owns the tunnelHOMELAB_TUNNEL_TUNNEL_IDCloudflare Tunnel idHOMELAB_DNS_FILTER_ENABLEDtrue 表示启用 AdGuard Home 模块(默认关闭)查看英文原文
true turns on the AdGuard Home module (off by default)HOMELAB_DNS_FILTER_URLAdGuard Home 地址查看英文原文
AdGuard Home addressHOMELAB_DNS_FILTER_USERNAMEAdGuard Home 登录名查看英文原文
AdGuard Home loginHOMELAB_SSO_ENABLEDtrue 表示启用 Authentik 模块(默认关闭)查看英文原文
true turns on the Authentik module (off by default)HOMELAB_SSO_URLAuthentik 地址查看英文原文
Authentik addressHOMELAB_SSO_FLOW_SLUG用于新代理提供程序的 Authentik 授权流程 slug查看英文原文
Authentik authorization flow slug used for new proxy providersHOMELAB_READ_ONLY设为 true 将拒绝所有更改。查看英文原文
true refuses every change
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Homelab Infra MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
让 AI 帮你安装
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server Homelab Infra MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "homelab-infra": { "command": "uvx", "args": [ "homelab-infra-mcp" ], "env": { "HOMELAB_PROXY_PASSWORD": "your-value", "HOMELAB_DOCKER_PORTAINER_TOKEN": "your-value", "HOMELAB_DNS_API_TOKEN": "your-value", "HOMELAB_HOME_ASSISTANT_TOKEN": "your-value", "HOMELAB_UPTIME_API_KEY": "your-value", "HOMELAB_TUNNEL_API_TOKEN": "your-value", "HOMELAB_DNS_FILTER_PASSWORD": "your-value", "HOMELAB_SSO_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) HOMELAB_PROXY_PASSWORD, HOMELAB_DOCKER_PORTAINER_TOKEN, HOMELAB_DNS_API_TOKEN, HOMELAB_HOME_ASSISTANT_TOKEN, HOMELAB_UPTIME_API_KEY, HOMELAB_TUNNEL_API_TOKEN, HOMELAB_DNS_FILTER_PASSWORD, HOMELAB_SSO_TOKEN 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Homelab Infra MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 uv(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --version- 显示版本号(例如 uv …)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
uv --version安装一次,所有需要 uv 的工具都能用
注册并创建 Homelab Infra MCP 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
填写你的密钥
在 Homelab Infra MCP 的设置中,HOMELAB_PROXY_PASSWORD, HOMELAB_DOCKER_PORTAINER_TOKEN, HOMELAB_DNS_API_TOKEN, HOMELAB_HOME_ASSISTANT_TOKEN, HOMELAB_UPTIME_API_KEY, HOMELAB_TUNNEL_API_TOKEN, HOMELAB_DNS_FILTER_PASSWORD, HOMELAB_SSO_TOKEN 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Homelab Infra MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Homelab Infra MCP,或回答中出现 Homelab Infra MCP 的工具名称,就表示连接成功
19 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
HOMELAB_PROXY_URLNginx Proxy Manager 地址,例如 http://localhost:81查看英文原文
Nginx Proxy Manager address, e.g. http://localhost:81HOMELAB_PROXY_EMAILNginx Proxy Manager 管理员邮箱查看英文原文
Nginx Proxy Manager admin emailHOMELAB_DOCKER_HOSTDocker 引擎地址,例如 unix:///var/run/docker.sock查看英文原文
Docker engine address, e.g. unix:///var/run/docker.sockHOMELAB_DOCKER_PORTAINER_URLPortainer 基础 URL,替代 Docker socket查看英文原文
Portainer base URL, instead of the Docker socketHOMELAB_DOCKER_PORTAINER_ENDPOINT_IDPortainer 端点 ID(默认为 1)查看英文原文
Portainer endpoint id (default 1)HOMELAB_DNS_ZONE_ID默认 Cloudflare 区域 ID。查看英文原文
Default Cloudflare zone idHOMELAB_HOME_ASSISTANT_URLHome Assistant 地址(该模块默认关闭)查看英文原文
Home Assistant address (module is off by default)HOMELAB_UPTIME_ENABLEDtrue 启用 Uptime Kuma 模块(默认关闭)查看英文原文
true turns on the Uptime Kuma module (off by default)HOMELAB_UPTIME_URLUptime Kuma 地址查看英文原文
Uptime Kuma addressHOMELAB_TUNNEL_ENABLEDtrue 启用 Cloudflare Tunnel 模块(默认关闭)查看英文原文
true turns on the Cloudflare Tunnel module (off by default)HOMELAB_TUNNEL_ACCOUNT_ID拥有该隧道的 Cloudflare 账户 ID查看英文原文
Cloudflare account id that owns the tunnelHOMELAB_TUNNEL_TUNNEL_IDCloudflare Tunnel idHOMELAB_DNS_FILTER_ENABLEDtrue 表示启用 AdGuard Home 模块(默认关闭)查看英文原文
true turns on the AdGuard Home module (off by default)HOMELAB_DNS_FILTER_URLAdGuard Home 地址查看英文原文
AdGuard Home addressHOMELAB_DNS_FILTER_USERNAMEAdGuard Home 登录名查看英文原文
AdGuard Home loginHOMELAB_SSO_ENABLEDtrue 表示启用 Authentik 模块(默认关闭)查看英文原文
true turns on the Authentik module (off by default)HOMELAB_SSO_URLAuthentik 地址查看英文原文
Authentik addressHOMELAB_SSO_FLOW_SLUG用于新代理提供程序的 Authentik 授权流程 slug查看英文原文
Authentik authorization flow slug used for new proxy providersHOMELAB_READ_ONLY设为 true 将拒绝所有更改。查看英文原文
true refuses every change
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Homelab Infra MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
让 AI 帮你安装
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server Homelab Infra MCP,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "homelab-infra": { "type": "stdio", "command": "uvx", "args": [ "homelab-infra-mcp" ], "env": { "HOMELAB_PROXY_PASSWORD": "your-value", "HOMELAB_DOCKER_PORTAINER_TOKEN": "your-value", "HOMELAB_DNS_API_TOKEN": "your-value", "HOMELAB_HOME_ASSISTANT_TOKEN": "your-value", "HOMELAB_UPTIME_API_KEY": "your-value", "HOMELAB_TUNNEL_API_TOKEN": "your-value", "HOMELAB_DNS_FILTER_PASSWORD": "your-value", "HOMELAB_SSO_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) HOMELAB_PROXY_PASSWORD, HOMELAB_DOCKER_PORTAINER_TOKEN, HOMELAB_DNS_API_TOKEN, HOMELAB_HOME_ASSISTANT_TOKEN, HOMELAB_UPTIME_API_KEY, HOMELAB_TUNNEL_API_TOKEN, HOMELAB_DNS_FILTER_PASSWORD, HOMELAB_SSO_TOKEN 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Homelab Infra MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 uv(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --version- 显示版本号(例如 uv …)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
uv --version安装一次,所有需要 uv 的工具都能用
注册并创建 Homelab Infra MCP 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
填写你的密钥
在 Homelab Infra MCP 的设置中,HOMELAB_PROXY_PASSWORD, HOMELAB_DOCKER_PORTAINER_TOKEN, HOMELAB_DNS_API_TOKEN, HOMELAB_HOME_ASSISTANT_TOKEN, HOMELAB_UPTIME_API_KEY, HOMELAB_TUNNEL_API_TOKEN, HOMELAB_DNS_FILTER_PASSWORD, HOMELAB_SSO_TOKEN 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Homelab Infra MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Homelab Infra MCP,或回答中出现 Homelab Infra MCP 的工具名称,就表示连接成功
19 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
HOMELAB_PROXY_URLNginx Proxy Manager 地址,例如 http://localhost:81查看英文原文
Nginx Proxy Manager address, e.g. http://localhost:81HOMELAB_PROXY_EMAILNginx Proxy Manager 管理员邮箱查看英文原文
Nginx Proxy Manager admin emailHOMELAB_DOCKER_HOSTDocker 引擎地址,例如 unix:///var/run/docker.sock查看英文原文
Docker engine address, e.g. unix:///var/run/docker.sockHOMELAB_DOCKER_PORTAINER_URLPortainer 基础 URL,替代 Docker socket查看英文原文
Portainer base URL, instead of the Docker socketHOMELAB_DOCKER_PORTAINER_ENDPOINT_IDPortainer 端点 ID(默认为 1)查看英文原文
Portainer endpoint id (default 1)HOMELAB_DNS_ZONE_ID默认 Cloudflare 区域 ID。查看英文原文
Default Cloudflare zone idHOMELAB_HOME_ASSISTANT_URLHome Assistant 地址(该模块默认关闭)查看英文原文
Home Assistant address (module is off by default)HOMELAB_UPTIME_ENABLEDtrue 启用 Uptime Kuma 模块(默认关闭)查看英文原文
true turns on the Uptime Kuma module (off by default)HOMELAB_UPTIME_URLUptime Kuma 地址查看英文原文
Uptime Kuma addressHOMELAB_TUNNEL_ENABLEDtrue 启用 Cloudflare Tunnel 模块(默认关闭)查看英文原文
true turns on the Cloudflare Tunnel module (off by default)HOMELAB_TUNNEL_ACCOUNT_ID拥有该隧道的 Cloudflare 账户 ID查看英文原文
Cloudflare account id that owns the tunnelHOMELAB_TUNNEL_TUNNEL_IDCloudflare Tunnel idHOMELAB_DNS_FILTER_ENABLEDtrue 表示启用 AdGuard Home 模块(默认关闭)查看英文原文
true turns on the AdGuard Home module (off by default)HOMELAB_DNS_FILTER_URLAdGuard Home 地址查看英文原文
AdGuard Home addressHOMELAB_DNS_FILTER_USERNAMEAdGuard Home 登录名查看英文原文
AdGuard Home loginHOMELAB_SSO_ENABLEDtrue 表示启用 Authentik 模块(默认关闭)查看英文原文
true turns on the Authentik module (off by default)HOMELAB_SSO_URLAuthentik 地址查看英文原文
Authentik addressHOMELAB_SSO_FLOW_SLUG用于新代理提供程序的 Authentik 授权流程 slug查看英文原文
Authentik authorization flow slug used for new proxy providersHOMELAB_READ_ONLY设为 true 将拒绝所有更改。查看英文原文
true refuses every change
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user homelab-infra --env HOMELAB_PROXY_PASSWORD=your-value --env HOMELAB_DOCKER_PORTAINER_TOKEN=your-value --env HOMELAB_DNS_API_TOKEN=your-value --env HOMELAB_HOME_ASSISTANT_TOKEN=your-value --env HOMELAB_UPTIME_API_KEY=your-value --env HOMELAB_TUNNEL_API_TOKEN=your-value --env HOMELAB_DNS_FILTER_PASSWORD=your-value --env HOMELAB_SSO_TOKEN=your-value -- uvx homelab-infra-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"homelab-infra": {
"command": "uvx",
"args": [
"homelab-infra-mcp"
],
"env": {
"HOMELAB_PROXY_PASSWORD": "your-value",
"HOMELAB_DOCKER_PORTAINER_TOKEN": "your-value",
"HOMELAB_DNS_API_TOKEN": "your-value",
"HOMELAB_HOME_ASSISTANT_TOKEN": "your-value",
"HOMELAB_UPTIME_API_KEY": "your-value",
"HOMELAB_TUNNEL_API_TOKEN": "your-value",
"HOMELAB_DNS_FILTER_PASSWORD": "your-value",
"HOMELAB_SSO_TOKEN": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"homelab-infra": {
"command": "uvx",
"args": [
"homelab-infra-mcp"
],
"env": {
"HOMELAB_PROXY_PASSWORD": "your-value",
"HOMELAB_DOCKER_PORTAINER_TOKEN": "your-value",
"HOMELAB_DNS_API_TOKEN": "your-value",
"HOMELAB_HOME_ASSISTANT_TOKEN": "your-value",
"HOMELAB_UPTIME_API_KEY": "your-value",
"HOMELAB_TUNNEL_API_TOKEN": "your-value",
"HOMELAB_DNS_FILTER_PASSWORD": "your-value",
"HOMELAB_SSO_TOKEN": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"homelab-infra": {
"type": "stdio",
"command": "uvx",
"args": [
"homelab-infra-mcp"
],
"env": {
"HOMELAB_PROXY_PASSWORD": "your-value",
"HOMELAB_DOCKER_PORTAINER_TOKEN": "your-value",
"HOMELAB_DNS_API_TOKEN": "your-value",
"HOMELAB_HOME_ASSISTANT_TOKEN": "your-value",
"HOMELAB_UPTIME_API_KEY": "your-value",
"HOMELAB_TUNNEL_API_TOKEN": "your-value",
"HOMELAB_DNS_FILTER_PASSWORD": "your-value",
"HOMELAB_SSO_TOKEN": "your-value"
}
}
}
}需要你填写的值
HOMELAB_PROXY_URLenvNginx Proxy Manager 地址,例如 http://localhost:81查看英文原文
Nginx Proxy Manager address, e.g. http://localhost:81HOMELAB_PROXY_EMAILenvNginx Proxy Manager 管理员邮箱查看英文原文
Nginx Proxy Manager admin emailHOMELAB_PROXY_PASSWORD机密 必填 envNginx Proxy Manager 管理员密码查看英文原文
Nginx Proxy Manager admin passwordHOMELAB_DOCKER_HOSTenvDocker 引擎地址,例如 unix:///var/run/docker.sock查看英文原文
Docker engine address, e.g. unix:///var/run/docker.sockHOMELAB_DOCKER_PORTAINER_URLenvPortainer 基础 URL,替代 Docker socket查看英文原文
Portainer base URL, instead of the Docker socketHOMELAB_DOCKER_PORTAINER_TOKEN机密 必填 envPortainer API 密钥查看英文原文
Portainer API keyHOMELAB_DOCKER_PORTAINER_ENDPOINT_IDenvPortainer 端点 ID(默认为 1)查看英文原文
Portainer endpoint id (default 1)HOMELAB_DNS_API_TOKEN机密 必填 env具有 DNS 编辑权限的 Cloudflare API 令牌查看英文原文
Cloudflare API token with DNS edit permissionHOMELAB_DNS_ZONE_IDenv默认 Cloudflare 区域 ID。查看英文原文
Default Cloudflare zone idHOMELAB_HOME_ASSISTANT_URLenvHome Assistant 地址(该模块默认关闭)查看英文原文
Home Assistant address (module is off by default)HOMELAB_HOME_ASSISTANT_TOKEN机密 必填 envHome Assistant 长期访问令牌查看英文原文
Home Assistant long-lived access tokenHOMELAB_UPTIME_ENABLEDenvtrue 启用 Uptime Kuma 模块(默认关闭)查看英文原文
true turns on the Uptime Kuma module (off by default)HOMELAB_UPTIME_URLenvUptime Kuma 地址查看英文原文
Uptime Kuma addressHOMELAB_UPTIME_API_KEY机密 必填 envUptime Kuma API 密钥,从 /metrics 读取查看英文原文
Uptime Kuma API key, read from /metricsHOMELAB_TUNNEL_ENABLEDenvtrue 启用 Cloudflare Tunnel 模块(默认关闭)查看英文原文
true turns on the Cloudflare Tunnel module (off by default)HOMELAB_TUNNEL_API_TOKEN机密 必填 env具有 tunnel 编辑权限的 Cloudflare API 令牌查看英文原文
Cloudflare API token with tunnel edit permissionHOMELAB_TUNNEL_ACCOUNT_IDenv拥有该隧道的 Cloudflare 账户 ID查看英文原文
Cloudflare account id that owns the tunnelHOMELAB_TUNNEL_TUNNEL_IDenvCloudflare Tunnel idHOMELAB_DNS_FILTER_ENABLEDenvtrue 表示启用 AdGuard Home 模块(默认关闭)查看英文原文
true turns on the AdGuard Home module (off by default)HOMELAB_DNS_FILTER_URLenvAdGuard Home 地址查看英文原文
AdGuard Home addressHOMELAB_DNS_FILTER_USERNAMEenvAdGuard Home 登录名查看英文原文
AdGuard Home loginHOMELAB_DNS_FILTER_PASSWORD机密 必填 envAdGuard Home 密码查看英文原文
AdGuard Home passwordHOMELAB_SSO_ENABLEDenvtrue 表示启用 Authentik 模块(默认关闭)查看英文原文
true turns on the Authentik module (off by default)HOMELAB_SSO_URLenvAuthentik 地址查看英文原文
Authentik addressHOMELAB_SSO_TOKEN机密 必填 envAuthentik API 令牌查看英文原文
Authentik API tokenHOMELAB_SSO_FLOW_SLUGenv用于新代理提供程序的 Authentik 授权流程 slug查看英文原文
Authentik authorization flow slug used for new proxy providersHOMELAB_READ_ONLYenv设为 true 将拒绝所有更改。查看英文原文
true refuses every change
说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月20日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 seayniclabs 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于17天前
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
已公开的漏洞(OSV.dev)
OSV.dev 中没有 homelab-infra-mcp@2.1.1 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月16日
作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/seayniclabs-homelab-infra-mcp)讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 6209 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 6209 个服务器的 56% 更新
- 基础检查结果等于或优于此分类中其他 6209 个服务器的 99%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Homelab Infra MCP 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:HOMELAB_PROXY_PASSWORD, HOMELAB_DOCKER_PORTAINER_TOKEN, HOMELAB_DNS_API_TOKEN, HOMELAB_HOME_ASSISTANT_TOKEN, HOMELAB_UPTIME_API_KEY, HOMELAB_TUNNEL_API_TOKEN, HOMELAB_DNS_FILTER_PASSWORD, HOMELAB_SSO_TOKEN
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于17天前,最新版本(2.1.1)于23天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
功能相近的其他选择
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Appllama
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Repowise
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| 本项 Homelab Infra MCP | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 云端或安装在电脑上都可以 |
| 需要密钥 | 是 | 否 | 否 | 否 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 是 | 否 | 否 |
| 基础检查 | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| 许可证 | MIT | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Homelab
Made by [Seaynic Labs](https://seayniclabs.com). Need tools like this built around your own systems? We do that.
Homelab is an MCP server that lets an AI assistant manage Nginx Proxy Manager proxy hosts, Docker containers and Cloudflare DNS records from one place. It covers the path from a container to a public web address. One call, expose_service, checks the container, adds the DNS record and the proxy host, and shows the plan before anything changes. Four more optional modules cover Uptime Kuma, Cloudflare Tunnel, AdGuard Home and Authentik.
It is a bundle: one server made of modules, plus skills that teach the assistant the workflows. You switch on the modules you use. New modules arrive switched off, so an update never changes what your assistant can do until you choose to.
Audience: self-hosters running a homelab.
| Module | What it does | Status |
|---|---|---|
proxy | Nginx Proxy Manager: proxy hosts, redirections, SSL certificates, access lists | On by default |
docker | Containers, images and volumes through the local Docker socket or Portainer | On by default |
dns | Cloudflare DNS zones and records, and BIND export | On by default |
home_assistant | Entities, automations, scripts and system info in Home Assistant | Off by default, turn on with HOMELAB_HOME_ASSISTANT_ENABLED=true |
uptime | Uptime Kuma monitors: list and read status (read only) | Off by default, turn on with HOMELAB_UPTIME_ENABLED=true |
tunnel | Cloudflare Tunnel routes: list, add and remove | Off by default, turn on with HOMELAB_TUNNEL_ENABLED=true |
dns_filter | AdGuard Home: filter status, query log and filter rules | Off by default, turn on with HOMELAB_DNS_FILTER_ENABLED=true |
sso | Authentik: list applications, create a proxy provider and application for one host | Off by default, turn on with HOMELAB_SSO_ENABLED=true |
The core tools are always on: homelab_modules, homelab_health, expose_service, teardown_service, service_status, infrastructure_overview and diagnose_service.
Homelab works with any MCP client: Claude Desktop, Claude Code, Cursor, VS Code, Sonique, Hermes, OpenClaw and others. It runs on your own machine and keeps no data of its own. It talks only to the services you configure.
Install
Homelab needs Python 3.11 or newer. With uv there is nothing to install ahead of time. Pin the version so updates arrive only when you choose them:
uvx homelab-infra-mcp==2.1.1 --version
Or with pip:
pip install homelab-infra-mcp==2.1.1
Upgrading from 2.0? Version 2.1 has no breaking changes. The four new modules are off by default. Read the 2.1.0 section of CHANGELOG.md.
Upgrading from 1.x? Version 2.0 changed the tool names and the environment variable names. Read the migration table in CHANGELOG.md first.
Quick install
Add the server to your MCP client (see Add it to your MCP client), set the variables for the modules you use, and restart the client. Then ask the assistant to call homelab_modules. The response lists each module, whether it is on, and which settings are missing.
Doctor
Run homelab-infra --doctor in a terminal before you start, and after any settings change:
homelab-infra --doctor
The doctor checks each enabled module's settings and reachability, the Docker socket access, and the TLS check. It prints a FIX line for each problem and exits with status 1 when something needs fixing.
Settings
Set these as environment variables in your MCP client's config, or put them in a config file (see below). You only need the settings for the modules you use. Homelab starts without any of them and tells you what is missing when you call a tool.
| Variable | Module | What it is |
|---|---|---|
HOMELAB_PROXY_URL | proxy | Nginx Proxy Manager address. Default http://localhost:81. |
HOMELAB_PROXY_EMAIL / HOMELAB_PROXY_PASSWORD | proxy | The NPM admin login used for the API |
HOMELAB_DOCKER_HOST | docker | Docker engine address. Default unix:///var/run/docker.sock. |
HOMELAB_DOCKER_PORTAINER_URL / HOMELAB_DOCKER_PORTAINER_TOKEN | docker | Use Portainer instead of the socket. Both are needed. |
HOMELAB_DOCKER_PORTAINER_ENDPOINT_ID | docker | Portainer endpoint id. Default 1. |
HOMELAB_DNS_API_TOKEN | dns | Cloudflare API token with DNS edit permission on the zone |
HOMELAB_DNS_ZONE_ID | dns | Default zone id, so tools can leave zone_id empty |
HOMELAB_HOME_ASSISTANT_URL | home_assistant | Home Assistant address. Default http://homeassistant.local:8123. |
HOMELAB_HOME_ASSISTANT_TOKEN | home_assistant | Long-lived access token |
HOMELAB_UPTIME_URL | uptime | Uptime Kuma address |
HOMELAB_UPTIME_API_KEY | uptime | Uptime Kuma API key. Read from /metrics, used for list and get. |
HOMELAB_TUNNEL_API_TOKEN | tunnel | Cloudflare API token with tunnel edit permission |
HOMELAB_TUNNEL_ACCOUNT_ID | tunnel | Cloudflare account id that owns the tunnel |
HOMELAB_TUNNEL_TUNNEL_ID | tunnel | Cloudflare Tunnel id |
HOMELAB_DNS_FILTER_URL | dns_filter | AdGuard Home address |
HOMELAB_DNS_FILTER_USERNAME / HOMELAB_DNS_FILTER_PASSWORD | dns_filter | AdGuard Home login |
HOMELAB_SSO_URL | sso | Authentik address |
HOMELAB_SSO_TOKEN | sso | Authentik API token |
HOMELAB_SSO_FLOW_SLUG | sso | Authorization flow slug that new proxy providers use |
HOMELAB_ _ENABLED | any | true or false. Turns a module on or off, e.g. HOMELAB_UPTIME_ENABLED=true. |
HOMELAB_ _ALLOW_WRITES | any | false by default: each change asks you first. true lets the assistant make changes in that module without asking. See Safety. |
HOMELAB_READ_ONLY | all | true refuses every change, whatever else is set. Reads and dry runs still work. |
HOMELAB_ _ _FILE | any | Read a secret from a file instead, e.g. HOMELAB_DNS_API_TOKEN_FILE=/run/secrets/cf_token |
HOMELAB_CONFIG | core | Path to the config file. Default ~/.config/homelab/config.toml. |
HOMELAB_APPROVAL_LOG | core | Path to the approval log. Default ~/.local/state/homelab/approvals.jsonl, or $XDG_STATE_HOME/homelab/approvals.jsonl when XDG_STATE_HOME is set. |
Config file (optional). Homelab also reads ~/.config/homelab/config.toml, or the file named by HOMELAB_CONFIG. Each module has its own table. Environment variables win over the file.
[proxy]
email = "admin@example.com" password = "change-me"
[dns] api_token = "your-cloudflare-token" zone_id = "your-zone-id"
Turn a module on in the same file with its enabled key, or with HOMELAB_ _ENABLED=true in the environment.
Add it to your MCP client
Most clients use the same JSON shape. Pin the version so the server runs the release you tested. Put the block where your client keeps MCP servers:
{
"mcpServers": { "homelab": { "command": "uvx", "args": ["homelab-infra-mcp==2.1.1"], "env": { "HOMELAB_PROXY_EMAIL": "admin@example.com", "HOMELAB_PROXY_PASSWORD": "change-me", "HOMELAB_DNS_API_TOKEN": "your-cloudflare-token", "HOMELAB_DNS_ZONE_ID": "your-zone-id" } } } }
| Client | Where the config goes |
|---|---|
| Claude Desktop | claude_desktop_config.json (Settings → Developer → Edit Config) |
| Claude Code | claude mcp add homelab -- uvx homelab-infra-mcp==2.1.1, then add the env values, or a project .mcp.json |
| Cursor | ~/.cursor/mcp.json, or .cursor/mcp.json in a project |
| VS Code | .vscode/mcp.json, using "servers" instead of "mcpServers" |
| Sonique, Hermes, OpenClaw, others | Any client that launches a stdio MCP server: command uvx, args ["homelab-infra-mcp==2.1.1"], plus the env values |
As a Claude Code plugin. The plugin installs the server and the skills together. Its .mcp.json pins homelab-infra-mcp==2.1.1. Set the variables in your environment or in the config file.
Over HTTP. For clients that connect to a URL instead of launching a process:
homelab-infra --transport http --port 8200
It serves streamable HTTP at http://127.0.0.1:8200/mcp. It listens only on your own machine by default. Put authentication in front of it before exposing it anywhere else.
Tools
The default install has 16 tools. Each module adds its own tools when you turn it on.
| Tool | What it does |
|---|---|
homelab_modules | Which modules are on, which settings are missing, and what each tool does. Call this first. |
homelab_health | Connectivity and version for every enabled module |
expose_service | Check a container, add a DNS record (optional), add a proxy host. One approved plan. |
teardown_service | Remove a service's proxy host and optional DNS record. One approved plan. |
service_status | One view of a service: container, proxy hosts, DNS records |
infrastructure_overview | Counts across Docker, the proxy and DNS |
diagnose_service | Read only. Checks each hop from a domain to its service, one row per hop. Returns the first failing hop and its fix. |
proxy_hosts | list, get, create, update, delete proxy hosts |
proxy_redirections | list, create, delete HTTP redirections |
proxy_certificates | list, request a Let's Encrypt certificate |
proxy_access_lists | list, create, delete IP access lists |
docker_containers | list, get, start, stop, restart, remove, logs, stats, prune |
docker_images | list, pull, remove, prune |
docker_inventory | volumes, networks, or Portainer stacks (with a stack's compose file) |
dns_zones | list zones, or export one in BIND format |
dns_records | list, get, create, update, delete records |
ha_entities | list, get, search; call_service, turn_on, turn_off, toggle (Home Assistant) |
ha_automations | list, trigger, reload automations or scripts; create previews automation YAML (Home Assistant) |
ha_system | Config, available services, check_config (Home Assistant) |
uptime_monitors | list, get: read only (Uptime Kuma). Pause and resume are not in 2.1. |
tunnel_routes | list; add, remove need approval (Cloudflare Tunnel) |
dns_filter_status | Filter status and query and block totals (AdGuard Home, read only) |
dns_filter_queries | Paged query log (AdGuard Home, read only) |
dns_filter_rules | list blocked services and custom rules; add, remove need approval (AdGuard Home) |
sso_applications | list; create makes a proxy provider and an application for one host, and needs approval (Authentik) |
Every tool returns structured data with a published schema, so an assistant can write code against the results. Lists take limit and offset. Every change tool takes dry_run=true, which shows exactly what would change and changes nothing. Errors always look like homelab. . : Fix: .
Skills
Skills are short guides the assistant reads before a job. Homelab ships them in a skills/ folder for apps that read Agent Skills, and serves each one as an MCP prompt for every other client.
Written for Homelab
| Skill | What it covers |
|---|---|
getting-started | Which modules are on, the settings each needs, the first checks, how approvals work |
expose-a-service-safely | Put one container on a public name: dry run, approval, per-hop diagnosis, outside check |
homelab-health-check | A read-only sweep of modules, containers, certificates, monitors and DNS filtering |
homelab-troubleshooting | Root-cause investigation for a failing service, one hypothesis at a time |
fix-and-deploy |