Skip to main content
Glama
.env.example1.56 kB
# ============================================================================= # Auth Gateway (REQUIRED) # ============================================================================= # # This MCP requires authentication via Auth Gateway. # Credentials are dynamically obtained from the Gateway when the user # provides their JWT via set_auth_token(). # # Authentication flow: # 1. User logs in to Auth Gateway → obtains JWT # 2. User calls set_auth_token(jwt) in the MCP # 3. MCP obtains API credentials from the Gateway # 4. User can now use other tools # AUTH_GATEWAY_URL=https://auth.example.com # API Key to authenticate with the Auth Gateway (REQUIRED) AUTH_GATEWAY_API_KEY=your-mcp-api-key-here # TTL for credential cache in seconds (optional, default: 3600 = 1 hour) # AUTH_CREDENTIALS_CACHE_TTL=3600 # ============================================================================= # API Configuration (optional - can be set in config/service.yaml) # ============================================================================= # API_BASE_URL=https://api.example.com/v1 # ============================================================================= # Server Configuration (optional - only for SSE/Docker mode) # ============================================================================= # Transport: "stdio" (local) or "sse" (remote/Docker) # MCP_TRANSPORT=sse # Host and port for SSE mode (only applies if MCP_TRANSPORT=sse) # MCP_HOST=0.0.0.0 # MCP_PORT=8000 # Log format: "json" or "console" (default: console) # LOG_FORMAT=json

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/jesusperezdeveloper/mcp_openapi_template'

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