Back to Home
JafarKhQ icon

pihole-mcp-server

Verified Safe

by JafarKhQ

Overview

Manage Pi-hole instances and DNS settings programmatically via AI applications using predefined commands.

Installation

Run Command
java -jar /absolute/path/to/pihole-mcp.jar

Environment Variables

  • PIHOLE_PORT
  • PIHOLE_HOST
  • PIHOLE_APP_PASSWORD

Security Notes

The Pi-hole application password (`PIHOLE_APP_PASSWORD`) is correctly managed as an environment variable and used for authentication with proper token caching, invalidation, and retry mechanisms. Input validation for domain and list management helps prevent malformed requests to the Pi-hole API. No 'eval' or other direct code injection vulnerabilities were found. The 'GroupsService' has a placeholder implementation for `getGroupId` returning a default of '0', which is a functional limitation rather than a security vulnerability for the server itself, but could lead to unintended group assignments if the Pi-hole API uses non-zero default groups.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens1
Stars0
Forks0
Last Update2025-12-05

Tags

Pi-holeAIServerJavaDNSManagement