Pi-hole MCP Server
An MCP server that provides AI assistants with full control over Pi-hole v6 DNS ad-blocker instances. It supports multi-instance deployments, allowing users to manage query logs, allow/deny lists, groups, clients, blocking controls, local DNS records, gravity reloads, and statistics. It offers smart regex detection and is available via Docker or stdio transport.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
Checks and signals
Each line is separate evidence, not a trust score.
- Popularity 3 GitHub stars
What you can do with it
- Query DNS logs and statistics across multiple Pi-hole instances
- Manage allow and deny lists with full CRUD operations
- Configure group and client management settings
- Reload gravity and control blocking settings
Source and maintenance
- Last repository push
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@ranklancer/pihole-mcp 0.2.0
{
"version": "0.2.0",
"transport": "stdio",
"identifier": "@ranklancer/pihole-mcp",
"registryType": "npm",
"environmentVariables": [
{
"name": "PIHOLE_INSTANCES",
"format": "string",
"isRequired": true,
"description": "Comma-separated list of Pi-hole instance names (e.g. 'pihole' or 'primary,secondary')"
},
{
"name": "PIHOLE_BASE_URL",
"format": "string",
"isRequired": true,
"description": "Base URL of your first Pi-hole instance (e.g. 'http://192.168.1.100')"
},
{
"name": "PIHOLE_PASSWORD",
"format": "string",
"isRequired": true,
"description": "API password for your first Pi-hole instance"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"pi-hole-mcp-server": {
"command": "npx",
"args": [
"-y",
"@ranklancer/pihole-mcp@0.2.0"
],
"env": {
"PIHOLE_INSTANCES": "<YOUR_PIHOLE_INSTANCES>",
"PIHOLE_BASE_URL": "<YOUR_PIHOLE_BASE_URL>",
"PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>"
}
}
}
}Cline
{
"mcpServers": {
"pi-hole-mcp-server": {
"command": "npx",
"args": [
"-y",
"@ranklancer/pihole-mcp@0.2.0"
],
"env": {
"PIHOLE_INSTANCES": "<YOUR_PIHOLE_INSTANCES>",
"PIHOLE_BASE_URL": "<YOUR_PIHOLE_BASE_URL>",
"PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>"
}
}
}
}VS Code
{
"servers": {
"pi-hole-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ranklancer/pihole-mcp@0.2.0"
],
"env": {
"PIHOLE_INSTANCES": "<YOUR_PIHOLE_INSTANCES>",
"PIHOLE_BASE_URL": "<YOUR_PIHOLE_BASE_URL>",
"PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"pi-hole-mcp-server": {
"command": "npx",
"args": [
"-y",
"@ranklancer/pihole-mcp@0.2.0"
],
"env": {
"PIHOLE_INSTANCES": "<YOUR_PIHOLE_INSTANCES>",
"PIHOLE_BASE_URL": "<YOUR_PIHOLE_BASE_URL>",
"PIHOLE_PASSWORD": "<YOUR_PIHOLE_PASSWORD>"
}
}
}
}Let your agent find its tools
Find servers like Pi-hole MCP Server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.