homelab-infra-mcp

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

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

proxy_hosts

Proxy hosts. list/get are read-only. create, update and delete change NPM and need the person's approval (or HOMELAB_PROXY_ALLOW_WRITES=true). dry_run=true previews without asking.

ParameterTypeDescription
actionstring
block_exploitsboolean
domain_namesstring
dry_runboolean
force_sslboolean
forward_hoststring
forward_portinteger
host_idinteger
limitinteger
offsetinteger
sslboolean

proxy_redirections

HTTP redirections. list is read-only; create and delete need approval (or ALLOW_WRITES).

ParameterTypeDescription
actionstring
domain_namesstring
dry_runboolean
forward_domainstring
forward_schemestring
limitinteger
offsetinteger
preserve_pathboolean
redirection_idinteger

proxy_certificates

SSL certificates. list is read-only. request asks Let's Encrypt for a new certificate (needs approval, or ALLOW_WRITES). Let's Encrypt must be able to reach the domains.

ParameterTypeDescription
actionstring
domain_namesstring
dry_runboolean
limitinteger
offsetinteger

proxy_access_lists

IP access lists. list is read-only. create and delete need approval (or ALLOW_WRITES). allow and deny are comma-separated IPs or CIDRs. Deleting a list affects every proxy host that uses it.

ParameterTypeDescription
actionstring
allowstring
denystring
dry_runboolean
limitinteger
list_idinteger
namestring
offsetinteger

docker_containers

Containers. list, get, logs and stats are read-only. start, stop, restart, remove and prune change state and need the person's approval (or HOMELAB_DOCKER_ALLOW_WRITES=true). remove deletes a container permanently. prune removes ALL stopped containers. container is a name or id (not needed for list or prune).

ParameterTypeDescription
actionstring
allboolean
containerstring
dry_runboolean
limitinteger
offsetinteger
sincestring
tailinteger
timeoutinteger

docker_images

Images. list is read-only. pull, remove and prune change the host and need approval (or HOMELAB_DOCKER_ALLOW_WRITES=true). remove deletes an image; prune removes dangling and unused images.

ParameterTypeDescription
actionstring
dry_runboolean
forceboolean
imagestring
limitinteger
offsetinteger
tagstring

docker_inventory

Read-only lists: volumes, networks, or Portainer stacks (stacks need the Portainer backend). Pass stack_id with kind=stacks to get that stack's compose file.

ParameterTypeDescription
kindstring
limitinteger
offsetinteger
stack_idinteger

dns_zones

Zones for the Cloudflare account (action=list), or one zone exported in BIND format (action=export).

ParameterTypeDescription
actionstring
limitinteger
pageinteger
zone_idstring

dns_records

DNS records. list and get are read-only. create, update and delete change the zone and need the person's approval (or HOMELAB_DNS_ALLOW_WRITES=true). create needs name, record_type and content; update needs record_id and any field to change; delete removes the record permanently.

ParameterTypeDescription
actionstring
contentstring
dry_runboolean
limitinteger
namestring
pageinteger
proxied
record_idstring
record_typestring
ttlinteger
zone_idstring

expose_service

Expose a container: check it runs, add a Cloudflare CNAME to tunnel_hostname (only if given), and add an Nginx Proxy Manager host that forwards domain to forward_host:forward_port. The plan is shown to the person before anything changes.

ParameterTypeDescription
container_name *string
domain *string
forward_port *integer
dns_zone_idstring
dry_runboolean
forward_hoststring
tunnel_hostnamestring

teardown_service

Reverse expose_service: delete the proxy host for domain (found by name unless proxy_host_id is given) and, if dns_record_id is given, that DNS record. The exact plan is shown to the person first.

ParameterTypeDescription
domain *string
dns_record_idstring
dns_zone_idstring
dry_runboolean
proxy_host_idinteger

service_status

One view of a service: the container, the proxy hosts that name the domain, and its DNS records.

ParameterTypeDescription
container_name *string
dns_zone_idstring
domainstring

infrastructure_overview

Counts across Docker, Nginx Proxy Manager and Cloudflare DNS, in one call.

diagnose_service

Check each hop between a public domain and its upstream container, and name the first one that fails with the fix for it. Hops: DNS record, tunnel route (if the tunnel module is on), Nginx Proxy Manager host, TLS certificate (expiry and trust), upstream container running (Docker), upstream port answering, uptime monitor (if on), Authentik login in front (if on). Read-only: it changes nothing.

ParameterTypeDescription
domain *string

homelab_modules

Which modules are on, which settings are missing, whether writes are pre-approved, and what each tool does. Pass a module name for its full settings list (values are never shown, only whether they are set).

ParameterTypeDescription
module

homelab_health

Connectivity and version for every enabled module. A module with missing settings reports the variable it needs.