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=8000
MCP HUB_HOST=0.0.0.0
MCP HUB_LOG_LEVEL=info
MCP HUB_DB_PATH=./data/mcphub.db
MCP_HOME=./mcp-config

Operational 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.