mcp-pihole
Verified Safeby aplaceforallmystuff
Overview
Connects AI assistants to Pi-hole to manage DNS blocking, view statistics, and control ad-blocking features via natural language.
Installation
npx mcp-pihole-serverEnvironment 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
ha-mcp
Provides AI agents with complete control over Home Assistant via REST and WebSocket APIs, offering a comprehensive suite of tools for smart home management, automation, and debugging.
mcp-discord
Enables AI assistants to interact with the Discord platform by providing a set of Discord-related functionalities via the Model Context Protocol (MCP).
advanced-homeassistant-mcp
A powerful, secure, and extensible Model Context Protocol (MCP) server that enables AI assistants like Claude, GPT, and Cursor to seamlessly interact with Home Assistant. Control your lights, climate, automations, and more through natural language commands.
whistle-mcp
Manages a local Whistle proxy server through Model Context Protocol, allowing AI assistants to control network rules, groups, values, and replay requests.