Skip to main content
Glama
.env.example1.47 kB
# ============================================ # Code-MCP Environment Variables # ============================================ # Copy this file to .env and fill in your values # NEVER commit .env to git - only .env.example # ============================================ # Server Configuration # ============================================ # Port for HTTP server (Railway sets automatically) PORT=3000 # Environment (development | production) NODE_ENV=production # ============================================ # Authentication # ============================================ # API Key for securing endpoints # Generate a secure key: openssl rand -base64 32 # Or use: node -e "console.log(require('crypto').randomBytes(32).toString('base64'))" CODE_MCP_API_KEY=your-secure-api-key-here # ============================================ # Logging (Optional) # ============================================ # Log level: debug | info | warn | error LOG_LEVEL=info # ============================================ # Railway-Specific Variables # ============================================ # These are set automatically by Railway: # - RAILWAY_ENVIRONMENT # - RAILWAY_GIT_COMMIT_SHA # - RAILWAY_GIT_BRANCH # - RAILWAY_PROJECT_ID # - RAILWAY_SERVICE_ID # ============================================ # Example Production Values # ============================================ # PORT=3000 # NODE_ENV=production # CODE_MCP_API_KEY=mcp-prod-a3f8kL9mPq2xR7wY # LOG_LEVEL=info

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/millsydotdev/Code-MCP'

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