Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NUT_PORTNoNetwork UPS Tools (NUT) port for UPS monitoring.3493
UNIFI_HOSTNoUnifi Controller hostname or IP (e.g., 192.168.1.1).
OLLAMA_PORTNoDefault Ollama port used when querying Ollama instances.11434
LITELLM_HOSTNoHost running LiteLLM proxy (e.g., 192.168.1.100).
LITELLM_PORTNoLiteLLM proxy port.4000
NUT_PASSWORDNoNUT authentication password. Optional - only required if your NUT server requires authentication.
NUT_USERNAMENoNUT authentication username. Optional - only required if your NUT server requires authentication.
UNIFI_API_KEYNoUnifi Controller API key. Generate from Unifi Controller: Settings → Admins → API.
OLLAMA_SERVER1NoOllama server hostname or IP (e.g., 192.168.1.100). Alternative to Ansible inventory configuration.
OLLAMA_SERVER2NoAdditional Ollama server hostname or IP. Alternative to Ansible inventory configuration.
OLLAMA_WORKSTATIONNoOllama workstation hostname or IP. Alternative to Ansible inventory configuration.
PIHOLE_SERVER1_HOSTNoPi-hole server 1 hostname (e.g., pihole1.local). Alternative to Ansible inventory configuration.
PIHOLE_SERVER1_PORTNoPi-hole server 1 port. Alternative to Ansible inventory configuration.80
PIHOLE_SERVER2_HOSTNoPi-hole server 2 hostname (e.g., pihole2.local). Alternative to Ansible inventory configuration.
PIHOLE_SERVER2_PORTNoPi-hole server 2 port. Alternative to Ansible inventory configuration.8053
DOCKER_ANSIBLE_GROUPNoAnsible inventory group name for Docker hosts. Change if you use a different group name in your ansible_hosts.yml.docker_hosts
PIHOLE_ANSIBLE_GROUPNoAnsible inventory group name for Pi-hole servers. Change if you use a different group name in your ansible_hosts.yml.PiHole
PODMAN_ANSIBLE_GROUPNoAnsible inventory group name for Podman hosts. Change if you use a different group name in your ansible_hosts.yml.podman_hosts
ANSIBLE_INVENTORY_PATHNoPath to your Ansible inventory file (e.g., /path/to/ansible_hosts.yml). Used by multiple MCP servers for infrastructure discovery.
OLLAMA_INVENTORY_GROUPNoAnsible inventory group name for Ollama servers. Change if you use a different group name in your ansible_hosts.yml.ollama_servers
PIHOLE_API_KEY_SERVER1NoPi-hole API key for first server. Generate from Pi-hole Web UI: Settings → API → Show API Token.
PIHOLE_API_KEY_SERVER2NoPi-hole API key for second server. Generate from Pi-hole Web UI: Settings → API → Show API Token.
DOCKER_SERVER1_ENDPOINTNoDocker API endpoint (e.g., 192.168.1.100:2375). Alternative to Ansible inventory configuration.
DOCKER_SERVER2_ENDPOINTNoAdditional Docker API endpoint. Alternative to Ansible inventory configuration.
PODMAN_SERVER1_ENDPOINTNoPodman API endpoint (e.g., 192.168.1.102:8080). Alternative to Ansible inventory configuration.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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