Pi-hole MCP Server
io.github.hexamatic/pihole-mcp
Manage Pi-hole v6: DNS blocking, domains, clients, query analysis, DHCP, and multi-instance sync.
Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.
- Repository
- github.com/hexamatic/pihole-mcp
- Website
- github.com/hexamatic/pihole-mcp
- Version
- 0.10.0
- Author
- hexamatic (namespace verified by the registry)
- Source
- Official MCP registry (updated Nov 2, 2026)
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Questions for the author
No question yet.
Sign in to ask the author a question. The author has not claimed this entry yet: they will only be told if they claim it. Other members can answer.
How to install it
Variables to fill in: PIHOLE_URL, PIHOLE_PASSWORD, TZ, PIHOLE_READ_ONLY, PIHOLE_TLS_SKIP_VERIFY, PIHOLE_REQUEST_TIMEOUT, PIHOLE_MAX_RETRIES, PIHOLE_RETRY_MAX_DELAY.
On your machine
Claude Code
The server runs on your machine (oci package). In a terminal:
claude mcp add pihole-mcp -e PIHOLE_URL=YOUR_PIHOLE_URL -e PIHOLE_PASSWORD=YOUR_PIHOLE_PASSWORD -e TZ=YOUR_TZ -e PIHOLE_READ_ONLY=YOUR_PIHOLE_READ_ONLY -e PIHOLE_TLS_SKIP_VERIFY=YOUR_PIHOLE_TLS_SKIP_VERIFY -e PIHOLE_REQUEST_TIMEOUT=YOUR_PIHOLE_REQUEST_TIMEOUT -e PIHOLE_MAX_RETRIES=YOUR_PIHOLE_MAX_RETRIES -e PIHOLE_RETRY_MAX_DELAY=YOUR_PIHOLE_RETRY_MAX_DELAY -- docker run -i --rm -e PIHOLE_URL -e PIHOLE_PASSWORD -e TZ -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.0Claude Desktop claude_desktop_config.json
Settings, Developer, Edit config, then add:
{
"mcpServers": {
"pihole-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PIHOLE_URL",
"-e",
"PIHOLE_PASSWORD",
"-e",
"TZ",
"-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"
],
"env": {
"PIHOLE_URL": "YOUR_PIHOLE_URL",
"PIHOLE_PASSWORD": "YOUR_PIHOLE_PASSWORD",
"TZ": "YOUR_TZ",
"PIHOLE_READ_ONLY": "YOUR_PIHOLE_READ_ONLY",
"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"
}
}
}
}Cursor ~/.cursor/mcp.json
In ~/.cursor/mcp.json:
{
"mcpServers": {
"pihole-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PIHOLE_URL",
"-e",
"PIHOLE_PASSWORD",
"-e",
"TZ",
"-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"
],
"env": {
"PIHOLE_URL": "YOUR_PIHOLE_URL",
"PIHOLE_PASSWORD": "YOUR_PIHOLE_PASSWORD",
"TZ": "YOUR_TZ",
"PIHOLE_READ_ONLY": "YOUR_PIHOLE_READ_ONLY",
"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"
}
}
}
}VS Code .vscode/mcp.json
In .vscode/mcp.json:
{
"servers": {
"pihole-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PIHOLE_URL",
"-e",
"PIHOLE_PASSWORD",
"-e",
"TZ",
"-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"
],
"env": {
"PIHOLE_URL": "YOUR_PIHOLE_URL",
"PIHOLE_PASSWORD": "YOUR_PIHOLE_PASSWORD",
"TZ": "YOUR_TZ",
"PIHOLE_READ_ONLY": "YOUR_PIHOLE_READ_ONLY",
"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"
}
}
}
}ChatGPT
ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.
These configurations are built from the information published by the author. Check the repository before installing a local server.
Our test
This server runs on your machine: we cannot test it remotely.
Cite this entry
For an article or comparison, use this permanent link and include the test date. The description comes from its source; reviews belong to members. A successful test is not a security audit.
[Pi-hole MCP Server — L’Agora](https://lagora.dev/en/entry/io.github.hexamatic/pihole-mcp)
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/io.github.hexamatic/pihole-mcp)HTML
<a href="https://lagora.dev/en/entry/io.github.hexamatic/pihole-mcp"><img src="https://lagora.dev/badge/io.github.hexamatic/pihole-mcp.svg?lang=en" alt="io.github.hexamatic/pihole-mcp on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.