Skip to main content
Glama
.env.example2.23 kB
# =========================================== # Homelab MCP Server Configuration # =========================================== # Server port (setting this enables HTTP mode) PORT=3005 # Server domain (used for OAuth redirects and metadata) SERVER_DOMAIN=mcp.example.com # Capability level (1-4) # 1 = Monitor (read-only) # 2 = Operate (start/stop/restart) # 3 = Configure (read configs) # 4 = Manage (write configs, exec) CAPABILITY_LEVEL=1 # =========================================== # Authentication (choose one or both) # =========================================== # Option 1: Simple API Key (for direct Bearer token auth) # Generate with: openssl rand -hex 32 API_KEY= # Option 2: OAuth 2.0 Client Credentials (for Claude Chat) # Generate both with: openssl rand -hex 32 OAUTH_CLIENT_ID= OAUTH_CLIENT_SECRET= # =========================================== # Docker Configuration # =========================================== # Docker socket path DOCKER_SOCKET=/var/run/docker.sock # Dockge stacks path DOCKGE_STACKS_PATH=/opt/stacks # =========================================== # OPNsense API (optional) # =========================================== # Get from: OPNsense UI → System → Access → Users → API keys OPNSENSE_HOST=10.0.0.1 OPNSENSE_API_KEY= OPNSENSE_API_SECRET= # =========================================== # TrueNAS API (optional) # =========================================== # Get from: TrueNAS UI → Top-right menu → API Keys TRUENAS_HOST=10.0.0.105 TRUENAS_API_KEY= # =========================================== # Proxmox API (optional) # =========================================== # Get from: Proxmox UI → Datacenter → Permissions → API Tokens # Token ID format: user@realm!tokenid (e.g., root@pam!mytoken) # Token Secret: The secret generated when creating the token PROXMOX_HOST=10.0.0.2 PROXMOX_TOKEN_ID= PROXMOX_TOKEN_SECRET= # =========================================== # Home Assistant API (optional) # =========================================== # Get from: Home Assistant UI → Profile → Long-Lived Access Tokens HOME_ASSISTANT_HOST=10.0.0.103 HOME_ASSISTANT_PORT=8123 HOME_ASSISTANT_TOKEN= # Use HTTPS (true) or HTTP (false) HOME_ASSISTANT_USE_HTTPS=false

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/bshandley/homelab-mcp'

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