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.0Configuration
8 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.
PIHOLE_PASSWORDEnv var· required· secretPi-hole admin password, or an application password (recommended — bypasses TOTP 2FA)PIHOLE_URLEnv var· requiredBase URL of your Pi-hole web interface. For multiple Pi-holes use PIHOLE_1_URL, PIHOLE_2_URL, ... instead.TZEnv var· optionalIANA timezone for rendered timestamps, e.g. Australia/Adelaide. Defaults to UTC in the container.PIHOLE_READ_ONLYEnv var· optionalExpose only inspection tools. Every tool that can change Pi-hole is hidden and rejected if called.Default:falsePIHOLE_TLS_SKIP_VERIFYEnv var· optionalSet to true only for a Pi-hole serving a self-signed HTTPS certificate. A trusted certificate is the better fix.Default:falsePIHOLE_REQUEST_TIMEOUTEnv var· optionalHTTP request timeout as a Go duration, e.g. 30s or 1mDefault:30s
Show 2 moreShow fewer
PIHOLE_MAX_RETRIESEnv var· optionalRetries after a transient Pi-hole API failure; 0 disables retryingDefault:3PIHOLE_RETRY_MAX_DELAYEnv var· optionalUpper bound on a single exponential-backoff wait, as a Go durationDefault:8s
Links
Listed in the official MCP Registry since Nov 2, 2026. Mirrored daily; last checked Nov 26, 2026.