Pihole MCP Server
by aplaceforallmystuffio.github.aplaceforallmystuff/mcp-piholev1.0.1
Pi-hole v6 MCP server - manage DNS blocking, stats, whitelists/blacklists
context tax
queued
security
queued
cold start
queued
freshness
Maintained2mo ago
Install Pihole MCP server
Install in Claude Code
claude mcp add pihole -e PIHOLE_URL='<pihole-url>' -e PIHOLE_PASSWORD='<pihole-password>' -- npx -y mcp-pihole-serverInstall in Cursor
{
"mcpServers": {
"pihole": {
"command": "npx",
"args": [
"-y",
"mcp-pihole-server"
],
"env": {
"PIHOLE_URL": "<pihole-url>",
"PIHOLE_PASSWORD": "<pihole-password>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"pihole": {
"command": "npx",
"args": [
"-y",
"mcp-pihole-server"
],
"env": {
"PIHOLE_URL": "<pihole-url>",
"PIHOLE_PASSWORD": "<pihole-password>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"pihole": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-pihole-server"
],
"env": {
"PIHOLE_URL": "<pihole-url>",
"PIHOLE_PASSWORD": "<pihole-password>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"pihole": {
"command": "npx",
"args": [
"-y",
"mcp-pihole-server"
],
"env": {
"PIHOLE_URL": "<pihole-url>",
"PIHOLE_PASSWORD": "<pihole-password>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| PIHOLE_URL | yes | — | Pi-hole web interface URL (e.g., http://pihole.local:8080) |
| PIHOLE_PASSWORD | yes | yes | Pi-hole app password for API authentication |
Freshness
Maintained — last maintenance signal 2mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-09 · 2mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2025-11-28 · 11mo ago · official registry · v1.0.1
FAQ
›How do I install the Pihole MCP server in Claude Code?
Run: claude mcp add pihole -e PIHOLE_URL='<pihole-url>' -e PIHOLE_PASSWORD='<pihole-password>' -- npx -y mcp-pihole-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Pihole require an API key?
Yes. It expects PIHOLE_URL, PIHOLE_PASSWORD, of which 1 is a secret.
›Can I use Pihole as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Pihole in the official MCP registry?
Yes, as io.github.aplaceforallmystuff/mcp-pihole.