mcp-pihole

aplaceforallmystuff/mcp-pihole

3.3

If you are the rightful owner of mcp-pihole and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

MCP (Model Context Protocol) server for Pi-hole v6 API allows users to control their Pi-hole DNS blocking, view statistics, manage whitelists/blacklists, and more directly from Claude Code.

Tools

Functions exposed to the LLM to take actions

pihole_get_stats

Get comprehensive Pi-hole statistics

pihole_get_top_blocked

Get top blocked domains

pihole_get_top_permitted

Get top permitted domains

pihole_get_top_clients

Get top clients by query count

pihole_get_query_log

Get recent DNS queries

pihole_get_blocking_status

Check if blocking is enabled

pihole_enable_blocking

Enable DNS blocking

pihole_disable_blocking

Disable blocking (optionally with timer)

pihole_get_whitelist

List all whitelisted domains

pihole_get_blacklist

List all blacklisted domains

pihole_add_to_whitelist

Add domain to whitelist

pihole_add_to_blacklist

Add domain to blacklist

pihole_remove_from_whitelist

Remove domain from whitelist

pihole_remove_from_blacklist

Remove domain from blacklist

pihole_update_gravity

Update blocklists (gravity)

pihole_flush_cache

Flush DNS cache

Prompts

Interactive templates invoked by user choice

No prompts

Resources

Contextual data attached and managed by the client

No resources