MCP directory

Pi-hole MCP Server

by github.com/hexamatic · v0.10.0 · updated Nov 2, 2026

Manage Pi-hole v6: DNS blocking, domains, clients, query analysis, DHCP, and multi-instance sync.

Docker

Run it locally

Install the package and point your AI client at it.

Docker

docker run -i --rm ghcr.io/hexamatic/pihole-mcp:0.10.0

Environment variables

  • PIHOLE_URLrequired

    Base URL of your Pi-hole web interface. For multiple Pi-holes use PIHOLE_1_URL, PIHOLE_2_URL, ... instead.

  • PIHOLE_PASSWORDrequiredsecret

    Pi-hole admin password, or an application password (recommended — bypasses TOTP 2FA)

  • TZ

    IANA timezone for rendered timestamps, e.g. Australia/Adelaide. Defaults to UTC in the container.

  • PIHOLE_READ_ONLY

    Expose only inspection tools. Every tool that can change Pi-hole is hidden and rejected if called.

  • PIHOLE_TLS_SKIP_VERIFY

    Set to true only for a Pi-hole serving a self-signed HTTPS certificate. A trusted certificate is the better fix.

  • PIHOLE_REQUEST_TIMEOUT

    HTTP request timeout as a Go duration, e.g. 30s or 1m

  • PIHOLE_MAX_RETRIES

    Retries after a transient Pi-hole API failure; 0 disables retrying

  • PIHOLE_RETRY_MAX_DELAY

    Upper bound on a single exponential-backoff wait, as a Go duration

More MCP servers