Skip to main content
Glama
docker-compose.yml2.85 kB
services: # Unified Homelab MCP Server (RECOMMENDED - All services in one) homelab-mcp: # Option 1: Use pre-built image from Docker Hub (recommended) image: bjeans/homelab-mcp:latest # Option 2: Build from source (uncomment below and comment out 'image' above) # build: . container_name: homelab-mcp environment: # Leave ENABLED_SERVERS unset to use unified mode (default) # Set ANSIBLE_INVENTORY_PATH to your Ansible inventory file - ANSIBLE_INVENTORY_PATH=/config/ansible_hosts.yml # Add any service-specific environment variables here # Docker/Podman (optional - can use Ansible inventory instead) # - DOCKER_SERVER1_ENDPOINT=192.168.1.100:2375 # - PODMAN_SERVER1_ENDPOINT=192.168.1.102:8080 # Ping targets (optional - can use Ansible inventory instead) # - PING_TARGET1=192.168.1.1 # - PING_TARGET1_NAME=Gateway # Ollama (optional - can use Ansible inventory instead) # - OLLAMA_PORT=11434 # - OLLAMA_SERVER1=192.168.1.105 # Pi-hole # - PIHOLE_DELL_HOST=192.168.1.110 # - PIHOLE_DELL_PORT=80 # - PIHOLE_API_KEY_DELL=your-api-key-here # Unifi # - UNIFI_HOST=192.168.1.1 # - UNIFI_API_KEY=your-api-key-here volumes: # Mount your Ansible inventory (recommended) - ./ansible_hosts.yml:/config/ansible_hosts.yml:ro network_mode: host # Required to access homelab services restart: unless-stopped stdin_open: true # Required for MCP stdio communication tty: true # Required for MCP stdio communication cap_add: - NET_RAW # Required for ICMP ping operations # Legacy mode: Individual servers (uncomment if needed) # homelab-mcp-docker: # image: bjeans/homelab-mcp:latest # # Uncomment to build from source instead of using Docker Hub image: # # build: . # container_name: homelab-mcp-docker # environment: # - ENABLED_SERVERS=docker # - ANSIBLE_INVENTORY_PATH=/config/ansible_hosts.yml # volumes: # - ./ansible_hosts.yml:/config/ansible_hosts.yml:ro # network_mode: host # restart: unless-stopped # stdin_open: true # tty: true # homelab-mcp-ping: # image: bjeans/homelab-mcp:latest # # Uncomment to build from source instead of using Docker Hub image: # # build: . # container_name: homelab-mcp-ping # environment: # - ENABLED_SERVERS=ping # - ANSIBLE_INVENTORY_PATH=/config/ansible_hosts.yml # volumes: # - ./ansible_hosts.yml:/config/ansible_hosts.yml:ro # network_mode: host # restart: unless-stopped # stdin_open: true # tty: true # cap_add: # - NET_RAW # Note: The unified server exposes all tools from all sub-servers with namespaced names # (docker_*, ping_*, ollama_*, pihole_*, unifi_*)

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