What is the Pi-hole MCP Server MCP server?
Manage Pi-hole v6: DNS blocking, domains, clients, query analysis, DHCP, and multi-instance sync.
How to install Pi-hole MCP Server
Copy-paste configuration for popular MCP clients.
PIHOLE_URLrequiredBase URL of your Pi-hole web interface. For multiple Pi-holes use PIHOLE_1_URL, PIHOLE_2_URL, ... instead.
PIHOLE_PASSWORDrequiredsecretPi-hole admin password, or an application password (recommended — bypasses TOTP 2FA)
TZIANA timezone for rendered timestamps, e.g. Australia/Adelaide. Defaults to UTC in the container.
PIHOLE_TLS_SKIP_VERIFYSet to true only for a Pi-hole serving a self-signed HTTPS certificate. A trusted certificate is the better fix.
PIHOLE_REQUEST_TIMEOUTHTTP request timeout as a Go duration, e.g. 30s or 1m
PIHOLE_MAX_RETRIESRetries after a transient Pi-hole API failure; 0 disables retrying
PIHOLE_RETRY_MAX_DELAYUpper bound on a single exponential-backoff wait, as a Go duration
{
"mcpServers": {
"pihole-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hexamatic/pihole-mcp:0.8.0"
],
"env": {
"PIHOLE_URL": "<YOUR_PIHOLE_URL>",
"PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>",
"TZ": "<YOUR_TZ>",
"PIHOLE_TLS_SKIP_VERIFY": "<YOUR_PIHOLE_TLS_SKIP_VERIFY>",
"PIHOLE_REQUEST_TIMEOUT": "<YOUR_PIHOLE_REQUEST_TIMEOUT>",
"PIHOLE_MAX_RETRIES": "<YOUR_PIHOLE_MAX_RETRIES>",
"PIHOLE_RETRY_MAX_DELAY": "<YOUR_PIHOLE_RETRY_MAX_DELAY>"
}
}
}
}{
"mcpServers": {
"pihole-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hexamatic/pihole-mcp:0.8.0"
],
"env": {
"PIHOLE_URL": "<YOUR_PIHOLE_URL>",
"PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>",
"TZ": "<YOUR_TZ>",
"PIHOLE_TLS_SKIP_VERIFY": "<YOUR_PIHOLE_TLS_SKIP_VERIFY>",
"PIHOLE_REQUEST_TIMEOUT": "<YOUR_PIHOLE_REQUEST_TIMEOUT>",
"PIHOLE_MAX_RETRIES": "<YOUR_PIHOLE_MAX_RETRIES>",
"PIHOLE_RETRY_MAX_DELAY": "<YOUR_PIHOLE_RETRY_MAX_DELAY>"
}
}
}
}{
"mcpServers": {
"pihole-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hexamatic/pihole-mcp:0.8.0"
],
"env": {
"PIHOLE_URL": "<YOUR_PIHOLE_URL>",
"PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>",
"TZ": "<YOUR_TZ>",
"PIHOLE_TLS_SKIP_VERIFY": "<YOUR_PIHOLE_TLS_SKIP_VERIFY>",
"PIHOLE_REQUEST_TIMEOUT": "<YOUR_PIHOLE_REQUEST_TIMEOUT>",
"PIHOLE_MAX_RETRIES": "<YOUR_PIHOLE_MAX_RETRIES>",
"PIHOLE_RETRY_MAX_DELAY": "<YOUR_PIHOLE_RETRY_MAX_DELAY>"
}
}
}
}{
"servers": {
"pihole-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hexamatic/pihole-mcp:0.8.0"
],
"env": {
"PIHOLE_URL": "<YOUR_PIHOLE_URL>",
"PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>",
"TZ": "<YOUR_TZ>",
"PIHOLE_TLS_SKIP_VERIFY": "<YOUR_PIHOLE_TLS_SKIP_VERIFY>",
"PIHOLE_REQUEST_TIMEOUT": "<YOUR_PIHOLE_REQUEST_TIMEOUT>",
"PIHOLE_MAX_RETRIES": "<YOUR_PIHOLE_MAX_RETRIES>",
"PIHOLE_RETRY_MAX_DELAY": "<YOUR_PIHOLE_RETRY_MAX_DELAY>"
}
}
}
}claude mcp add pihole-mcp --env PIHOLE_URL=<YOUR_PIHOLE_URL> --env PIHOLE_PASSWORD=<YOUR_PIHOLE_PASSWORD> --env TZ=<YOUR_TZ> --env PIHOLE_TLS_SKIP_VERIFY=<YOUR_PIHOLE_TLS_SKIP_VERIFY> --env PIHOLE_REQUEST_TIMEOUT=<YOUR_PIHOLE_REQUEST_TIMEOUT> --env PIHOLE_MAX_RETRIES=<YOUR_PIHOLE_MAX_RETRIES> --env PIHOLE_RETRY_MAX_DELAY=<YOUR_PIHOLE_RETRY_MAX_DELAY> -- docker run -i --rm ghcr.io/hexamatic/pihole-mcp:0.8.0Related MCP servers
Control a real Chrome browser to complete any task: fill forms, extract data, book flights.
World Monitor
Live global intelligence: real-time markets, conflicts, country risk, chokepoints, energy. 39 tools.
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Trending hip-hop artist momentum scores across four cultural dimensions.
AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
Scrapling MCP Server
Give your AI agent stealth web scraping with Cloudflare bypass and CSS selection, powered by Scrapling.