# ═══════════════════════════════════════════════════════════════════════════
# Domain Search MCP - Environment Configuration
# ═══════════════════════════════════════════════════════════════════════════
# Copy this file to .env and fill in your API keys.
# All API keys are OPTIONAL - the server works without them using RDAP/WHOIS.
# ═══════════════════════════════════════════════════════════════════════════
# ─────────────────────────────────────────────────────────────────────────────
# PORKBUN API (Recommended - fast & accurate)
# Get your free API key at: https://porkbun.com/account/api
# ─────────────────────────────────────────────────────────────────────────────
PORKBUN_API_KEY=your_api_key_here
PORKBUN_API_SECRET=your_api_secret_here
# ─────────────────────────────────────────────────────────────────────────────
# NAMECHEAP API (Optional - requires IP whitelist)
# Get API access at: https://www.namecheap.com/support/api/intro/
# Note: You must whitelist your IP in Namecheap dashboard
# ─────────────────────────────────────────────────────────────────────────────
NAMECHEAP_API_KEY=your_api_key_here
NAMECHEAP_API_USER=your_username_here
# REQUIRED for Namecheap: Your whitelisted IP address
# Find your IP at: https://whatismyipaddress.com/
# SECURITY: This prevents IP disclosure to third-party services
NAMECHEAP_CLIENT_IP=your_whitelisted_ip_here
# ─────────────────────────────────────────────────────────────────────────────
# LOGGING & DEBUG
# ─────────────────────────────────────────────────────────────────────────────
LOG_LEVEL=info # debug | info | warn | error
# ─────────────────────────────────────────────────────────────────────────────
# CACHE SETTINGS (in seconds)
# ─────────────────────────────────────────────────────────────────────────────
CACHE_TTL_AVAILABILITY=300 # 5 minutes - availability can change
CACHE_TTL_PRICING=3600 # 1 hour - pricing rarely changes
# ─────────────────────────────────────────────────────────────────────────────
# RATE LIMITING
# ─────────────────────────────────────────────────────────────────────────────
RATE_LIMIT_PER_MINUTE=60 # Max requests per minute
# ─────────────────────────────────────────────────────────────────────────────
# TLD RESTRICTIONS (comma-separated, no spaces)
# ─────────────────────────────────────────────────────────────────────────────
ALLOWED_TLDS=com,io,dev,app,co,net,org,xyz,ai,sh,me,cc
DENY_TLDS=localhost,internal,test,local
# ─────────────────────────────────────────────────────────────────────────────
# DEVELOPMENT ONLY
# ─────────────────────────────────────────────────────────────────────────────
DRY_RUN=false # If true, no actual API calls made