Skip to main content
Glama
.env.example1.08 kB
# Example environment variables for Agent MCP Gateway # Brave Search API Key (required for brave-search MCP server) # Get your API key from: https://brave.com/search/api/ BRAVE_API_KEY=your_brave_api_key_here # PostgreSQL connection URL (required for postgres MCP server) # Format: postgresql://user:password@host:port/database POSTGRES_URL=postgresql://postgres:password@localhost:5432/mydb # Gateway Configuration Paths (optional - defaults shown) # GATEWAY_MCP_CONFIG=.mcp.json # Checks cwd first, then falls back to ./config/.mcp.json # GATEWAY_RULES=./.mcp-gateway-rules.json # Checks cwd first, then falls back to ./config/.mcp-gateway-rules.json # Security Note: For production deployments or when using rules for access control # (not just context optimization), store the rules file outside the project directory # to prevent coding agents from reading or modifying permission configurations: # GATEWAY_RULES=~/.claude/mcp-gateway-rules.json # Gateway Settings (optional) # GATEWAY_DEFAULT_AGENT=developer # GATEWAY_TRANSPORT=stdio # GATEWAY_INIT_STRATEGY=eager

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/roddutra/agent-mcp-gateway'

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