We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/freema/openclaw-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
.env.example•2.36 KiB
# OpenClaw MCP Server Configuration
# Copy this file to .env and customize as needed
# =============================================================================
# OpenClaw Connection
# =============================================================================
# URL of your OpenClaw gateway
# NOTE: Your gateway must have chatCompletions enabled in openclaw.json:
# { "gateway": { "http": { "endpoints": { "chatCompletions": { "enabled": true } } } } }
OPENCLAW_URL=http://127.0.0.1:18789
# Bearer token for OpenClaw gateway authentication (must match gateway.auth.token)
OPENCLAW_GATEWAY_TOKEN=
# =============================================================================
# Server Settings (SSE transport only)
# =============================================================================
# Port for SSE server
PORT=3000
# Host to bind to (0.0.0.0 for all interfaces)
HOST=0.0.0.0
# Enable debug logging
DEBUG=false
# =============================================================================
# CORS Configuration (SSE transport only)
# =============================================================================
# Allowed origins for CORS (comma-separated)
# Examples:
# CORS_ORIGINS=* # Allow all origins (not recommended for production)
# CORS_ORIGINS=none # Disable CORS entirely
# CORS_ORIGINS=https://claude.ai # Single origin
# CORS_ORIGINS=https://claude.ai,https://your-app.com # Multiple origins
# CORS_ORIGINS=*.example.com # Wildcard subdomain
CORS_ORIGINS=https://claude.ai
# =============================================================================
# MCP Authentication (SSE transport only)
# =============================================================================
# Enable OAuth 2.1 authentication (REQUIRED for production!)
AUTH_ENABLED=true
# MCP OAuth client credentials
# Generate a secure secret: openssl rand -hex 32
# These are used by Claude.ai or other MCP clients to authenticate
MCP_CLIENT_ID=openclaw
MCP_CLIENT_SECRET=
# OAuth issuer URL override (when running behind a reverse proxy with HTTPS)
# If not set, defaults to http://{HOST}:{PORT}
# MCP_ISSUER_URL=https://mcp.example.com
# Allowed OAuth redirect URIs (comma-separated)
# If not set, any redirect_uri is accepted (not recommended for production)
# MCP_REDIRECT_URIS=https://claude.ai/oauth/callback