LocalFree server, account needed

Pi-hole MCP server

ranklancer/pihole-mcp

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

3 GitHub stars3 forks

Install Pi-hole in Claude Code

Claude Code
claude mcp add ranklancer-pi-hole -e PIHOLE_INSTANCES=... -e PIHOLE_BASE_URL=... -e PIHOLE_PASSWORD=... -- npx -y @ranklancer/pihole-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "ranklancer-pi-hole": {
      "command": "npx",
      "args": [
        "-y",
        "@ranklancer/pihole-mcp"
      ],
      "env": {
        "PIHOLE_INSTANCES": "...",
        "PIHOLE_BASE_URL": "...",
        "PIHOLE_PASSWORD": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the Pi-hole MCP server do?

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

Is the Pi-hole MCP server free?

The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.

Does Pi-hole run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Pi-hole to Claude Code?

Run: claude mcp add ranklancer-pi-hole -e PIHOLE_INSTANCES=... -e PIHOLE_BASE_URL=... -e PIHOLE_PASSWORD=... -- npx -y @ranklancer/pihole-mcp

More developer tools MCP servers

View all