homelab-infra-mcp
v2.1.1Homelab: Nginx Proxy Manager, Docker and Cloudflare DNS, with approval for every change.
Values you need
| Variable | What it is | |
|---|---|---|
HOMELAB_PROXY_URL | optional | Nginx Proxy Manager address, e.g. http://localhost:81 |
HOMELAB_PROXY_EMAIL | optional | Nginx Proxy Manager admin email |
HOMELAB_PROXY_PASSWORD | optional secret | Nginx Proxy Manager admin password |
HOMELAB_DOCKER_HOST | optional | Docker engine address, e.g. unix:///var/run/docker.sock |
HOMELAB_DOCKER_PORTAINER_URL | optional | Portainer base URL, instead of the Docker socket |
HOMELAB_DOCKER_PORTAINER_TOKEN | optional secret | Portainer API key |
HOMELAB_DOCKER_PORTAINER_ENDPOINT_ID | optional | Portainer endpoint id (default 1) |
HOMELAB_DNS_API_TOKEN | optional secret | Cloudflare API token with DNS edit permission |
HOMELAB_DNS_ZONE_ID | optional | Default Cloudflare zone id |
HOMELAB_HOME_ASSISTANT_URL | optional | Home Assistant address (module is off by default) |
HOMELAB_HOME_ASSISTANT_TOKEN | optional secret | Home Assistant long-lived access token |
HOMELAB_UPTIME_ENABLED | optional | true turns on the Uptime Kuma module (off by default) |
HOMELAB_UPTIME_URL | optional | Uptime Kuma address |
HOMELAB_UPTIME_API_KEY | optional secret | Uptime Kuma API key, read from /metrics |
HOMELAB_TUNNEL_ENABLED | optional | true turns on the Cloudflare Tunnel module (off by default) |
HOMELAB_TUNNEL_API_TOKEN | optional secret | Cloudflare API token with tunnel edit permission |
HOMELAB_TUNNEL_ACCOUNT_ID | optional | Cloudflare account id that owns the tunnel |
HOMELAB_TUNNEL_TUNNEL_ID | optional | Cloudflare Tunnel id |
HOMELAB_DNS_FILTER_ENABLED | optional | true turns on the AdGuard Home module (off by default) |
HOMELAB_DNS_FILTER_URL | optional | AdGuard Home address |
HOMELAB_DNS_FILTER_USERNAME | optional | AdGuard Home login |
HOMELAB_DNS_FILTER_PASSWORD | optional secret | AdGuard Home password |
HOMELAB_SSO_ENABLED | optional | true turns on the Authentik module (off by default) |
HOMELAB_SSO_URL | optional | Authentik address |
HOMELAB_SSO_TOKEN | optional secret | Authentik API token |
HOMELAB_SSO_FLOW_SLUG | optional | Authentik authorization flow slug used for new proxy providers |
HOMELAB_READ_ONLY | optional | true refuses every change |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add homelab-infra-mcp -- uvx --from homelab-infra-mcp==2.1.1 homelab-infraAdd to
claude_desktop_config.json{
"mcpServers": {
"homelab-infra-mcp": {
"args": [
"--from",
"homelab-infra-mcp==2.1.1",
"homelab-infra"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"homelab-infra-mcp": {
"args": [
"--from",
"homelab-infra-mcp==2.1.1",
"homelab-infra"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"homelab-infra-mcp": {
"args": [
"--from",
"homelab-infra-mcp==2.1.1",
"homelab-infra"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.homelab-infra-mcp]
command = "uvx"
args = ["--from", "homelab-infra-mcp==2.1.1", "homelab-infra"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: proxy_hosts, proxy_redirections, proxy_certificates, proxy_access_lists, docker_containers, docker_images, docker_inventory, dns_zones, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json