Skip to main content
Glama
aplaceforallmystuff

MCP Pi-hole Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PIHOLE_URLYesPi-hole web interface URL
PIHOLE_PASSWORDYesPi-hole app password (generated in Pi-hole settings)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
pihole_get_stats

Get Pi-hole statistics including total queries, blocked queries, blocking percentage, active clients, and domains being blocked

pihole_get_blocking_status

Check if Pi-hole blocking is currently enabled or disabled

pihole_enable_blocking

Enable Pi-hole DNS blocking

pihole_disable_blocking

Disable Pi-hole DNS blocking, optionally for a specific duration

pihole_get_top_blocked

Get the top blocked domains

pihole_get_top_permitted

Get the top permitted (allowed) domains

pihole_get_top_clients

Get the top clients by query count

pihole_get_query_log

Get recent DNS queries from the query log

pihole_add_to_whitelist

Add a domain to the Pi-hole whitelist (allow list)

pihole_add_to_blacklist

Add a domain to the Pi-hole blacklist (block list)

pihole_remove_from_whitelist

Remove a domain from the Pi-hole whitelist

pihole_remove_from_blacklist

Remove a domain from the Pi-hole blacklist

pihole_get_whitelist

Get all domains on the Pi-hole whitelist

pihole_get_blacklist

Get all domains on the Pi-hole blacklist

pihole_update_gravity

Update Pi-hole's gravity (refresh blocklists). This may take a minute to complete.

pihole_flush_cache

Flush Pi-hole's DNS cache

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aplaceforallmystuff/mcp-pihole'

If you have feedback or need assistance with the MCP directory API, please join our Discord server