Back to Home
aplaceforallmystuff icon

mcp-pihole

Verified Safe

by aplaceforallmystuff

Overview

Connects AI assistants to Pi-hole to manage DNS blocking, view statistics, and control ad-blocking features via natural language.

Installation

Run Command
npx mcp-pihole-server

Environment Variables

  • PIHOLE_URL
  • PIHOLE_PASSWORD

Security Notes

The server primarily acts as a wrapper around the Pi-hole v6 API. It correctly handles the Pi-hole password by requiring it as an environment variable (PIHOLE_PASSWORD) rather than hardcoding it. No 'eval' or direct arbitrary command execution via 'child_process' is observed. Network requests are made using 'fetch' to the user-configured PIHOLE_URL. The primary security consideration relies on the user providing a trusted PIHOLE_URL, as a malicious configuration could redirect the Pi-hole password to an untrusted endpoint. However, this is a configuration risk, not a code vulnerability within the server itself. Input validation for tools relies on the MCP SDK's schema definitions (e.g., 'type: string') and the Pi-hole API's internal handling of domain names, which is standard practice.

Similar Servers

Stats

Interest Score30
Security Score9
Cost ClassMedium
Avg Tokens500
Stars1
Forks0
Last Update2026-01-16

Tags

Pi-holeDNSAd-blockingMCPAI AssistantNetwork Management