TokenToSeaMCP Hub
中文 Console

Pi-hole MCP Server

ranklancer

MCP server for Pi-hole v6 API — supports multiple instances

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add pi-hole-server-ranklancer --env PIHOLE_INSTANCES='<PIHOLE_INSTANCES>' --env PIHOLE_BASE_URL='<PIHOLE_BASE_URL>' --env PIHOLE_PASSWORD='<PIHOLE_PASSWORD>' -- npx -y @ranklancer/pihole-mcp

Environment variables

  • PIHOLE_INSTANCES
  • PIHOLE_BASE_URL
  • PIHOLE_PASSWORD

Replace the placeholders with your own credentials and keep them out of version control.