SETUP
Environment Variables
Centralize MCP HUB runtime configuration for local development and production deployment.
Recommended .env layout
.env
bash
OPENAI_API_KEY=sk-...ANTHROPIC_API_KEY=sk-ant-...MCP HUB_PORT=8000MCP HUB_HOST=0.0.0.0MCP HUB_LOG_LEVEL=infoMCP HUB_DB_PATH=./data/mcphub.dbMCP_HOME=./mcp-configOperational guidance
Store provider secrets outside version control, and keep environment-specific overrides in deployment tooling rather than hardcoding them in the repo.
If dashboard Config and environment variables disagree, environment variables should win in production.