Skip to main content
Glama
.env.example•5.25 kB
# Homelab MCP Configuration Template # Copy this file to .env and fill in your values # ============================================================================= # MCP Registry Inspector Configuration # ============================================================================= # Path to your MCP development directory (defaults to script directory) MCP_DIRECTORY=C:\Users\YourUsername\Path\To\Homelab-MCP # Path to Claude Desktop config (defaults to standard Windows location) # CLAUDE_CONFIG_PATH=C:\Users\YourUsername\AppData\Roaming\Claude\claude_desktop_config.json # ============================================================================= # Unifi Network Configuration # ============================================================================= UNIFI_API_KEY=your-unifi-api-key-here UNIFI_HOST=192.168.1.1 # ============================================================================= # Pi-hole DNS Configuration # ============================================================================= # Ansible inventory group name for Pi-hole servers (default: PiHole) # Change this if you use a different group name in your ansible_hosts.yml # PIHOLE_ANSIBLE_GROUP=PiHole # Pi-hole API Keys (Application Passwords from Settings > API) # Format: PIHOLE_API_KEY_{NAME} where {NAME} is your identifier PIHOLE_API_KEY_SERVER1=your-first-pihole-api-key PIHOLE_API_KEY_SERVER2=your-second-pihole-api-key PIHOLE_API_KEY_SERVER3=your-third-pihole-api-key # Pi-hole Hosts and Ports # Format: PIHOLE_{NAME}_HOST and PIHOLE_{NAME}_PORT PIHOLE_SERVER1_HOST=pihole1.local PIHOLE_SERVER1_PORT=80 PIHOLE_SERVER2_HOST=pihole2.local PIHOLE_SERVER2_PORT=80 PIHOLE_SERVER3_HOST=192.168.1.10 PIHOLE_SERVER3_PORT=8080 # ============================================================================= # Ollama AI Model Configuration # ============================================================================= # Ollama endpoints are automatically loaded from Ansible inventory # Only set these if you want to override or not using Ansible inventory OLLAMA_PORT=11434 # Ansible inventory group name for Ollama servers (default: ollama_servers) # Change this if you use a different group name in your ansible_hosts.yml # OLLAMA_INVENTORY_GROUP=ollama_servers # Manual Ollama endpoints (if not using Ansible inventory) # OLLAMA_SERVER1=192.168.1.100 # OLLAMA_SERVER2=192.168.1.101 # OLLAMA_WORKSTATION=192.168.1.102 # ============================================================================= # LiteLLM Proxy Configuration (Optional but Recommended) # ============================================================================= # LiteLLM provides unified OpenAI-compatible API access to all your Ollama instances # Benefits: # - Load balancing across multiple Ollama servers # - Automatic failover if a server goes down # - OpenAI SDK compatibility with local models # - Single endpoint for all models # - Usage tracking and monitoring # # Setup: Install with 'pip install litellm[proxy]' # Run: litellm --config litellm_config.yaml --port 4000 # More info: https://docs.litellm.ai/docs/proxy/quick_start LITELLM_HOST=localhost LITELLM_PORT=4000 # If LiteLLM is running on a different host: # LITELLM_HOST=192.168.1.100 # LITELLM_PORT=4000 # ============================================================================= # Docker/Podman Container Management # ============================================================================= # Ansible inventory group names (used when loading from Ansible inventory) # Change these if you use different group names in your ansible_hosts.yml # DOCKER_ANSIBLE_GROUP=docker_hosts # PODMAN_ANSIBLE_GROUP=podman_hosts # Docker endpoints (format: host:port) # Format: DOCKER_{NAME}_ENDPOINT where {NAME} is your identifier DOCKER_SERVER1_ENDPOINT=192.168.1.100:2375 DOCKER_SERVER2_ENDPOINT=192.168.1.101:2375 DOCKER_SERVER3_ENDPOINT=192.168.1.102:2375 # Podman endpoints (format: host:port) # Format: PODMAN_{NAME}_ENDPOINT where {NAME} is your identifier PODMAN_SERVER1_ENDPOINT=192.168.1.200:8080 # ============================================================================= # UPS Monitoring (Network UPS Tools) # ============================================================================= # NUT servers are automatically loaded from Ansible inventory # Only set these if you want to override defaults or not using Ansible inventory # Default NUT daemon port (usually 3493) NUT_PORT=3493 # NUT authentication (if required by your NUT configuration) # Leave empty if your NUT server allows unauthenticated monitoring NUT_USERNAME=monuser NUT_PASSWORD=secret # Manual NUT configuration (if not using Ansible inventory) # Format: NUT_{NAME}_HOST, NUT_{NAME}_PORT, NUT_{NAME}_UPS # NUT_DELL_HOST=192.168.1.100 # NUT_DELL_PORT=3493 # NUT_DELL_UPS=tripplite # ============================================================================= # Ansible Inventory Configuration (Recommended) # ============================================================================= # Using Ansible inventory as primary configuration source is recommended # It provides a single source of truth for all infrastructure details ANSIBLE_INVENTORY_PATH=C:\Users\YourUsername\Path\To\Ansible\ansible_hosts.yml

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bjeans/homelab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server