Skip to content
Claude Code

Pi-hole MCP Server for Claude Code

io.github.ranklancer/pihole-mcp

MCP server for Pi-hole v6 API — manage multiple instances: queries, lists, groups, stats

client:Claude Code transport:stdio runtime:npm

Install Pi-hole MCP Server in Claude Code

run in your project directory

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

claude mcp add pihole-mcp -e PIHOLE_INSTANCES=<PIHOLE_INSTANCES> -e PIHOLE_BASE_URL=<PIHOLE_BASE_URL> -e PIHOLE_PASSWORD=<PIHOLE_PASSWORD> -- npx -y @ranklancer/pihole-mcp

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

Pi-hole MCP Server in other clients