World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 97 tools.
MCP server for Pi-hole v6 API — manage multiple instances: queries, lists, groups, stats
Pick the AI app you use, then copy the settings.
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 13, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a Pi-hole MCP Server key (create it on the maker’s site) · 2 setting(s) to fill in (PIHOLE_INSTANCES, PIHOLE_BASE_URL) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PIHOLE_INSTANCES Comma-separated list of Pi-hole instance names (e.g. 'pihole' or 'primary,secondary')PIHOLE_BASE_URL Base URL of your first Pi-hole instance (e.g. 'http://192.168.1.100')Descriptions are as written by the maker.
SettingsDeveloperEdit Config
{
"mcpServers": {
"pihole": {
"command": "npx",
"args": [
"-y",
"@ranklancer/pihole-mcp"
],
"env": {
"PIHOLE_INSTANCES": "your-value",
"PIHOLE_BASE_URL": "your-value",
"PIHOLE_PASSWORD": "your-value"
}
}
}
}Paste the key only into the app’s field, never into a chat or to anyone
Use Pi-hole MCP Server and tell me what you can do for me, then show me one thing✓ If Claude says it is using Pi-hole MCP Server or shows a Pi-hole MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Pi-hole MCP Server yet
Pi-hole MCP Server runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect Pi-hole MCP Server
B · Others in Other that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
You need a Pi-hole MCP Server key (create it on the maker’s site) · 2 setting(s) to fill in (PIHOLE_INSTANCES, PIHOLE_BASE_URL) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PIHOLE_INSTANCES Comma-separated list of Pi-hole instance names (e.g. 'pihole' or 'primary,secondary')PIHOLE_BASE_URL Base URL of your first Pi-hole instance (e.g. 'http://192.168.1.100')Descriptions are as written by the maker.
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user pihole --env PIHOLE_INSTANCES=your-value --env PIHOLE_BASE_URL=your-value --env PIHOLE_PASSWORD=your-value -- npx -y @ranklancer/pihole-mcpReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
You should see Pi-hole MCP Server listed as connected
Use Pi-hole MCP Server and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Pi-hole MCP Server or shows a Pi-hole MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a Pi-hole MCP Server key (create it on the maker’s site) · 2 setting(s) to fill in (PIHOLE_INSTANCES, PIHOLE_BASE_URL) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PIHOLE_INSTANCES Comma-separated list of Pi-hole instance names (e.g. 'pihole' or 'primary,secondary')PIHOLE_BASE_URL Base URL of your first Pi-hole instance (e.g. 'http://192.168.1.100')Descriptions are as written by the maker.
In the Pi-hole MCP Server settings, PIHOLE_PASSWORD, PIHOLE_INSTANCES, PIHOLE_BASE_URL is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use Pi-hole MCP Server and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Pi-hole MCP Server or shows a Pi-hole MCP Server tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a Pi-hole MCP Server key (create it on the maker’s site) · 2 setting(s) to fill in (PIHOLE_INSTANCES, PIHOLE_BASE_URL) · Install Node.js on your computer first (one time)
One time only; it works for every server that needs Node.js
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
PIHOLE_INSTANCES Comma-separated list of Pi-hole instance names (e.g. 'pihole' or 'primary,secondary')PIHOLE_BASE_URL Base URL of your first Pi-hole instance (e.g. 'http://192.168.1.100')Descriptions are as written by the maker.
In the Pi-hole MCP Server settings, PIHOLE_PASSWORD, PIHOLE_INSTANCES, PIHOLE_BASE_URL is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use Pi-hole MCP Server and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Pi-hole MCP Server or shows a Pi-hole MCP Server tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
Claude Code
claude mcp add --scope user pihole --env PIHOLE_INSTANCES=your-value --env PIHOLE_BASE_URL=your-value --env PIHOLE_PASSWORD=your-value -- npx -y @ranklancer/pihole-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"pihole": {
"command": "npx",
"args": [
"-y",
"@ranklancer/pihole-mcp"
],
"env": {
"PIHOLE_INSTANCES": "your-value",
"PIHOLE_BASE_URL": "your-value",
"PIHOLE_PASSWORD": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"pihole": {
"command": "npx",
"args": [
"-y",
"@ranklancer/pihole-mcp"
],
"env": {
"PIHOLE_INSTANCES": "your-value",
"PIHOLE_BASE_URL": "your-value",
"PIHOLE_PASSWORD": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"pihole": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ranklancer/pihole-mcp"
],
"env": {
"PIHOLE_INSTANCES": "your-value",
"PIHOLE_BASE_URL": "your-value",
"PIHOLE_PASSWORD": "your-value"
}
}
}
}PIHOLE_INSTANCES required envPIHOLE_BASE_URL required envPIHOLE_PASSWORD secret required envDescriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 14, 2026
The registry name was verified with the GitHub account ranklancer, which owns the repo
Code last changed today
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: PIHOLE_PASSWORD
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed today, and the latest version (0.2.0) reached the registry 7 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
In the same category: World Monitor, Claude Flow, Windmill
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 97 tools.
AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
An MCP (Model Context Protocol) server that gives AI assistants like Claude full control over your Pi-hole v6 DNS ad-blocker - query logs, allow/deny lists, group management, gravity reload, and stats. Designed from day one for multi-instance deployments: manage one or many Pi-hole instances from a single MCP endpoint.
Pi-hole's admin API is powerful but cumbersome to script against. This MCP server turns every Pi-hole API action into a tool that any MCP-compatible AI assistant can call directly. Instead of clicking through the admin UI or writing curl commands, just ask your AI to check what's being blocked, allowlist a domain, or compare stats across instances.
Perfect for homelabbers running multiple Pi-holes (primary + secondary, or per-VLAN), network admins managing DNS filtering at scale, and anyone who wants AI-assisted DNS management.
/run/secrets/ filesgit clone https://github.com/ranklancer/pihole-mcp.git
cd pihole-mcp cp .env.example .env
mkdir -p secrets echo "your-pihole-password" > secrets/pihole_password chmod 600 secrets/pihole_password
cp docker-compose.example.yml docker-compose.yml docker compose up -d
npm install
npm run build export PIHOLE_INSTANCES=pihole export PIHOLE_BASE_URL=http://pihole.example.com export PIHOLE_PASSWORD=your-password npm start
The MCP client starts the server as a child process when needed and talks to it over stdin/stdout. No port is opened and nothing keeps running in the background.
npm ci
npm run build cp .env.example .env chmod 600 .env
Register it with Claude Code (user scope):
claude mcp add --scope user pihole -- bash -c \
'set -a; . ~/path/to/pihole-mcp/.env; set +a; MCP_TRANSPORT=stdio exec node ~/path/to/pihole-mcp/dist/index.js'
Or add it manually to your MCP client config:
{
"mcpServers": { "pihole": { "type": "stdio", "command": "bash", "args": ["-c", "set -a; . ~/path/to/pihole-mcp/.env; set +a; MCP_TRANSPORT=stdio exec node ~/path/to/pihole-mcp/dist/index.js"] } } }
HOST and PORT from .env are ignored in stdio mode.
All configuration is via environment variables. See .env.example for the full reference.
PIHOLE_INSTANCES=pihole
PIHOLE_BASE_URL=http://192.0.2.100 PIHOLE_PASSWORD=your-password
PIHOLE_INSTANCES=primary,secondary
PRIMARY_BASE_URL=http://192.0.2.100 PRIMARY_PASSWORD=password1 SECONDARY_BASE_URL=https://198.51.100.101 SECONDARY_PASSWORD=password2 SECONDARY_INSECURE_TLS=true
For each instance name in PIHOLE_INSTANCES, provide:
| Variable | Required | Description |
|---|---|---|
_BASE_URL | Yes | Pi-hole base URL (e.g. http://pihole.local) |
_PASSWORD | Yes | Pi-hole API password (or use Docker secrets) |
_INSECURE_TLS | No | Set true for self-signed certs (default: false) |
Docker secrets are supported as a fallback: /run/secrets/ _password (lowercase).
| Tool | Description |
|---|---|
pihole_query_log | Fetch query log with filters (limit, time range, client IP or name, domain, status) |
pihole_allow_domain | Add to allowlist (auto-detects exact vs regex) |
pihole_deny_domain | Add to denylist (auto-detects exact vs regex) |
pihole_list_allowlist | List all allowlist entries (exact + regex merged) |
pihole_list_denylist | List all denylist entries (exact + regex merged) |
pihole_stats_summary | Get Pi-hole statistics summary |
pihole_reload_lists | Trigger gravity reload |
pihole_group_management | CRUD operations on Pi-hole groups |
pihole_client_management | CRUD operations on Pi-hole clients and their group assignments |
pihole_check_regex_types | Detect miscategorized regex in deny-exact list |
pihole_set_blocking | Enable/disable blocking, with optional auto-revert timer |
pihole_domain_management | Update or delete an allow/deny domain (completes CRUD) |
pihole_local_dns | List/add/delete local DNS A records |
pihole_local_cname | List/add/delete local CNAME records |
Every tool accepts an optional instance parameter to target a specific Pi-hole. Defaults to the first configured instance.
This section applies to the HTTP transport (Docker or npm start). For stdio, see Local on demand.
The server listens on http://HOST:PORT/mcp (default: http://localhost:3000/mcp). The HTTP endpoint has no authentication, so keep it bound to localhost or a trusted network.
Add to your MCP settings:
{
"mcpServers": { "pihole": { "url": "http://localhost:3031/mcp" } } }
curl http://localhost:3031/health
npm install
npm run dev # Watch mode — recompiles on save npm start # Run the server
MIT