Skip to main content

Pi-hole MCP Server

io.github.hexamatic/pihole-mcp

v0.10.0Updated Nov 2, 2026stdio · Docker

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

Install

Needs 1 secret. Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add pihole-mcp -e 'PIHOLE_URL=<your-pihole-url>' -e 'PIHOLE_PASSWORD=<your-pihole-password>' -e PIHOLE_READ_ONLY=false -e PIHOLE_TLS_SKIP_VERIFY=false -e PIHOLE_REQUEST_TIMEOUT=30s -e PIHOLE_MAX_RETRIES=3 -e PIHOLE_RETRY_MAX_DELAY=8s -- docker run -i --rm -e PIHOLE_URL -e PIHOLE_PASSWORD -e PIHOLE_READ_ONLY -e PIHOLE_TLS_SKIP_VERIFY -e PIHOLE_REQUEST_TIMEOUT -e PIHOLE_MAX_RETRIES -e PIHOLE_RETRY_MAX_DELAY ghcr.io/hexamatic/pihole-mcp:0.10.0

Configuration

8 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • PIHOLE_PASSWORD
    Env var· required· secret
    Pi-hole admin password, or an application password (recommended — bypasses TOTP 2FA)
  • PIHOLE_URL
    Env var· required
    Base URL of your Pi-hole web interface. For multiple Pi-holes use PIHOLE_1_URL, PIHOLE_2_URL, ... instead.
  • TZ
    Env var· optional
    IANA timezone for rendered timestamps, e.g. Australia/Adelaide. Defaults to UTC in the container.
  • PIHOLE_READ_ONLY
    Env var· optional
    Expose only inspection tools. Every tool that can change Pi-hole is hidden and rejected if called.Default: false
  • PIHOLE_TLS_SKIP_VERIFY
    Env var· optional
    Set to true only for a Pi-hole serving a self-signed HTTPS certificate. A trusted certificate is the better fix.Default: false
  • PIHOLE_REQUEST_TIMEOUT
    Env var· optional
    HTTP request timeout as a Go duration, e.g. 30s or 1mDefault: 30s
Show 2 more
  • PIHOLE_MAX_RETRIES
    Env var· optional
    Retries after a transient Pi-hole API failure; 0 disables retryingDefault: 3
  • PIHOLE_RETRY_MAX_DELAY
    Env var· optional
    Upper bound on a single exponential-backoff wait, as a Go durationDefault: 8s

Listed in the official MCP Registry since Nov 2, 2026. Mirrored daily; last checked Nov 26, 2026.