.env.example•1.59 kB
# Analytical MCP Server Environment Configuration
# Copy this file to .env and modify as needed
# Node environment: development, test, or production
NODE_ENV=development
# Server configuration
PORT=3000
HOST=localhost
LOG_LEVEL=DEBUG # DEBUG, INFO, WARN, ERROR
# API Keys (never commit actual keys to source control)
EXA_API_KEY=your_exa_api_key_here
# Feature flags
ENABLE_RESEARCH_INTEGRATION=true
ENABLE_ADVANCED_STATISTICS=true
ENABLE_PERSPECTIVE_GENERATION=true
ENABLE_RESEARCH_CACHE=true
ENABLE_ADVANCED_NLP=true
# Cache configuration
CACHE_PERSISTENT=true # Enable persistent caching to disk
CACHE_DIR=./cache # Directory for persistent cache files
CACHE_DEFAULT_TTL=86400000 # Default cache TTL in milliseconds (24 hours)
CACHE_CLEANUP_INTERVAL=3600000 # Cleanup interval in milliseconds (1 hour)
# Cache TTLs for specific operations (in milliseconds)
CACHE_TTL_SEARCH=3600000 # Search results TTL (1 hour)
CACHE_TTL_FACTS=86400000 # Extracted facts TTL (24 hours)
CACHE_TTL_VALIDATION=43200000 # Validation results TTL (12 hours)
CACHE_TTL_CROSS_DOMAIN=604800000 # Cross-domain research TTL (7 days)
# NLP Configuration
NLP_USE_EXA=true # Use Exa for named entity recognition
NLP_EXA_NUM_RESULTS=3 # Number of search results to use for NER
NLP_EXA_USE_WEB=true # Use web results for entity recognition
NLP_EXA_USE_NEWS=false # Use news results for entity recognition
NLP_COREFERENCE_ENABLED=true # Enable coreference resolution
NLP_RELATIONSHIP_ENABLED=true # Enable relationship extraction