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_statsA

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

pihole_get_blocking_statusA

Check if Pi-hole blocking is currently enabled or disabled

pihole_enable_blockingB

Enable Pi-hole DNS blocking

pihole_disable_blockingA

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

pihole_get_top_blockedB

Get the top blocked domains

pihole_get_top_permittedC

Get the top permitted (allowed) domains

pihole_get_top_clientsC

Get the top clients by query count

pihole_get_query_logC

Get recent DNS queries from the query log

pihole_add_to_whitelistC

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

pihole_add_to_blacklistC

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

pihole_remove_from_whitelistC

Remove a domain from the Pi-hole whitelist

pihole_remove_from_blacklistC

Remove a domain from the Pi-hole blacklist

pihole_get_whitelistA

Get all domains on the Pi-hole whitelist

pihole_get_blacklistA

Get all domains on the Pi-hole blacklist

pihole_update_gravityA

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

pihole_flush_cacheB

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