Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BASE_URLNoPublic-facing URL (used in OAuth callbacks)http://localhost:8000
LLM_MODELNoAnthropic model for SQL generationclaude-sonnet-4-6
SECRET_KEYYesJWT signing secret — use a random 64-char string
CORS_ORIGINSNoComma-separated allowed origins for CORS. Must be absolute URLs — wildcards (*) are rejectedBASE_URL
DATABASE_URLYesPostgreSQL DSN — set automatically by docker-compose; only needed for local (non-Docker) dev
ENCRYPTION_KEYYesFernet AES key for DB credentials — minimum 32 characters; full key consumed via BLAKE2b
ENTRA_GRAPH_URLNoMicrosoft Graph API base URLhttps://graph.microsoft.com/v1.0
ANTHROPIC_API_KEYNoRequired for /query/ NL query endpoint
POSTGRES_PASSWORDYesPostgreSQL password — used by docker-compose for both the db service and DATABASE_URL
LLM_MAX_TOKENS_SQLNoMax tokens for SQL generation1024
ENTRA_AUTHORITY_URLNoMicrosoft identity platform base URLhttps://login.microsoftonline.com
LLM_MAX_TOKENS_SUMMARYNoMax tokens for result summarization500
OAUTH_CODE_TTL_MINUTESNoOAuth authorization code validity window5
FILESYSTEM_ALLOWED_DIRSNoComma-separated directories the MCP filesystem tools may access. When empty, no filesystem tools are exposed
OAUTH_STATE_TTL_MINUTESNoOAuth PKCE state validity window — increase for high-latency SSO providers10
REFRESH_TOKEN_EXPIRE_DAYSNoOAuth refresh token lifetime30
ACCESS_TOKEN_EXPIRE_MINUTESNoJWT access token lifetime15

Capabilities

Server capabilities have not been inspected yet.

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/PanosSalt/MCP-Gateway'

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