.env.example•2.95 kB
# Medical MCP Server Environment Configuration
# Copy this file to .env and modify the values as needed
# =============================================================================
# CORE SERVER CONFIGURATION
# =============================================================================
# Server host and port
PORT=3000
HOST=127.0.0.1
NODE_ENV=production
# =============================================================================
# MCP LIFECYCLE CONFIGURATION
# =============================================================================
# Request timeout in milliseconds (default: 30000, max: 300000)
MCP_REQUEST_TIMEOUT=30000
# =============================================================================
# SECURITY CONFIGURATION
# =============================================================================
# Enable DNS rebinding protection (automatically enabled in production)
ENABLE_DNS_REBINDING_PROTECTION=false
# Comma-separated list of allowed origins for CORS (when DNS rebinding protection is enabled)
# ALLOWED_ORIGINS=http://localhost:3000,https://yourdomain.com
# =============================================================================
# API CONFIGURATION
# =============================================================================
# Optional: Use SerpAPI for Google Scholar with fallback to scraping
# SERPAPI_KEY=your_serpapi_key_here
# Default country for WHO queries (e.g., AUS, USA, GBR)
DEFAULT_COUNTRY_ISO3=AUS
# =============================================================================
# PBS (PHARMACEUTICAL BENEFITS SCHEME) CONFIGURATION
# =============================================================================
# PBS API base URL
PBS_API_BASE=https://data-api.health.gov.au/pbs/api/v3
# PBS API subscription key (required by API gateway)
# The public docs mention an unregistered key, but you should obtain your own
PBS_SUBSCRIPTION_KEY=2384af7c667342ceb5a736fe29f1dc6b
# Minimum delay between PBS requests in milliseconds (global throttle)
PBS_MIN_INTERVAL_MS=20000
# PBS GET cache TTL in milliseconds
PBS_CACHE_TTL_MS=300000
# =============================================================================
# API BASE URL OVERRIDES (Optional)
# =============================================================================
# Override default API base URLs if needed
# FDA_API_BASE=https://api.fda.gov
# WHO_API_BASE=https://ghoapi.azureedge.net/api
# RXNAV_API_BASE=https://rxnav.nlm.nih.gov/REST
# PUBMED_API_BASE=https://eutils.ncbi.nlm.nih.gov/entrez/eutils
# GOOGLE_SCHOLAR_API_BASE=https://scholar.google.com/scholar
# User agent for API requests
USER_AGENT=medical-mcp/1.0
# =============================================================================
# DEVELOPMENT/DEBUGGING
# =============================================================================
# Enable debug logging
# DEBUG=medical-mcp:*
# Log level (error, warn, info, debug)
# LOG_LEVEL=info