homelab-infra-mcp

v2.1.1
io.github.seayniclabs/homelab-infra-mcp Checked 15 hours ago Published 1 month ago

Homelab: Nginx Proxy Manager, Docker and Cloudflare DNS, with approval for every change.

Values you need

VariableWhat it is
HOMELAB_PROXY_URLoptional Nginx Proxy Manager address, e.g. http://localhost:81
HOMELAB_PROXY_EMAILoptional Nginx Proxy Manager admin email
HOMELAB_PROXY_PASSWORDoptional secret Nginx Proxy Manager admin password
HOMELAB_DOCKER_HOSToptional Docker engine address, e.g. unix:///var/run/docker.sock
HOMELAB_DOCKER_PORTAINER_URLoptional Portainer base URL, instead of the Docker socket
HOMELAB_DOCKER_PORTAINER_TOKENoptional secret Portainer API key
HOMELAB_DOCKER_PORTAINER_ENDPOINT_IDoptional Portainer endpoint id (default 1)
HOMELAB_DNS_API_TOKENoptional secret Cloudflare API token with DNS edit permission
HOMELAB_DNS_ZONE_IDoptional Default Cloudflare zone id
HOMELAB_HOME_ASSISTANT_URLoptional Home Assistant address (module is off by default)
HOMELAB_HOME_ASSISTANT_TOKENoptional secret Home Assistant long-lived access token
HOMELAB_UPTIME_ENABLEDoptional true turns on the Uptime Kuma module (off by default)
HOMELAB_UPTIME_URLoptional Uptime Kuma address
HOMELAB_UPTIME_API_KEYoptional secret Uptime Kuma API key, read from /metrics
HOMELAB_TUNNEL_ENABLEDoptional true turns on the Cloudflare Tunnel module (off by default)
HOMELAB_TUNNEL_API_TOKENoptional secret Cloudflare API token with tunnel edit permission
HOMELAB_TUNNEL_ACCOUNT_IDoptional Cloudflare account id that owns the tunnel
HOMELAB_TUNNEL_TUNNEL_IDoptional Cloudflare Tunnel id
HOMELAB_DNS_FILTER_ENABLEDoptional true turns on the AdGuard Home module (off by default)
HOMELAB_DNS_FILTER_URLoptional AdGuard Home address
HOMELAB_DNS_FILTER_USERNAMEoptional AdGuard Home login
HOMELAB_DNS_FILTER_PASSWORDoptional secret AdGuard Home password
HOMELAB_SSO_ENABLEDoptional true turns on the Authentik module (off by default)
HOMELAB_SSO_URLoptional Authentik address
HOMELAB_SSO_TOKENoptional secret Authentik API token
HOMELAB_SSO_FLOW_SLUGoptional Authentik authorization flow slug used for new proxy providers
HOMELAB_READ_ONLYoptional 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-infra
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: proxy_hosts, proxy_redirections, proxy_certificates, proxy_access_lists, docker_containers, docker_images, docker_inventory, dns_zones, ….
  4. 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