.env.template•5.99 kB
# Open-Search-MCP API Keys Configuration
# Copy this file to .env and fill in your API keys
# =============================================================================
# GOOGLE APIS (Required for web search)
# =============================================================================
# Get your API key from: https://console.developers.google.com/
GOOGLE_API_KEY=your_google_api_key_here
# Create a custom search engine at: https://cse.google.com/
GOOGLE_SEARCH_ENGINE_ID=your_search_engine_id_here
# =============================================================================
# FINANCIAL DATA APIS
# =============================================================================
# Alpha Vantage - Free tier: 5 API requests per minute, 500 per day
# Get your key from: https://www.alphavantage.co/support/#api-key
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key_here
# =============================================================================
# NEWS APIS
# =============================================================================
# NewsAPI - Free tier: 1000 requests per month
# Get your key from: https://newsapi.org/register
NEWSAPI_API_KEY=your_newsapi_key_here
# =============================================================================
# DEVELOPMENT APIS
# =============================================================================
# GitHub Personal Access Token
# Create at: https://github.com/settings/tokens
GITHUB_TOKEN=your_github_token_here
# =============================================================================
# SOCIAL MEDIA APIS
# =============================================================================
# Reddit API - Free with rate limits
# Create app at: https://www.reddit.com/prefs/apps
REDDIT_CLIENT_ID=your_reddit_client_id_here
REDDIT_CLIENT_SECRET=your_reddit_client_secret_here
# Twitter API v2 Bearer Token
# Get from: https://developer.twitter.com/
TWITTER_BEARER_TOKEN=your_twitter_bearer_token_here
# =============================================================================
# WEATHER APIS
# =============================================================================
# OpenWeatherMap - Free tier: 1000 calls per day
# Get your key from: https://openweathermap.org/api
OPENWEATHER_API_KEY=your_openweather_key_here
# =============================================================================
# AI/ML APIS
# =============================================================================
# Hugging Face API Token
# Get from: https://huggingface.co/settings/tokens
HUGGINGFACE_API_KEY=your_huggingface_key_here
# YouTube Data API v3
# Get from: https://console.developers.google.com/
YOUTUBE_API_KEY=your_youtube_key_here
# =============================================================================
# CRYPTOCURRENCY APIS
# =============================================================================
# CoinGecko API - Free tier with rate limits
# Get your key from: https://www.coingecko.com/en/api/pricing
COINGECKO_API_KEY=your_coingecko_key_here
# =============================================================================
# OPTIONAL APIS (These work without keys but have stricter rate limits)
# =============================================================================
# arXiv - No API key required
# PubMed - No API key required
# Wikipedia - No API key required
# Stack Exchange - No API key required (but recommended for higher limits)
# =============================================================================
# SECURITY CONFIGURATION (CRITICAL)
# =============================================================================
# Generate a strong secret key for session management
# Use: openssl rand -hex 32
SESSION_SECRET=your_very_long_random_session_secret_here
# JWT Secret for token signing
# Use: openssl rand -base64 64
JWT_SECRET=your_jwt_secret_key_here
# Encryption key for sensitive data
# Use: openssl rand -hex 32
ENCRYPTION_KEY=your_encryption_key_here
# =============================================================================
# DOCKER/DEPLOYMENT CONFIGURATION
# =============================================================================
# Searx cluster secret (for Docker deployment)
# Use: openssl rand -hex 32
SEARXNG_SECRET=your_very_long_searx_secret_key_here
# Grafana admin password
GRAFANA_PASSWORD=your_secure_grafana_password_here
# Redis password (optional but recommended)
REDIS_PASSWORD=your_redis_password_here
# =============================================================================
# DEVELOPMENT SETTINGS
# =============================================================================
# Set to 'development' for more verbose logging
NODE_ENV=production
# Cache settings
CACHE_TTL=3600
CACHE_MAX_SIZE=1000
# Rate limiting
RATE_LIMIT_WINDOW=3600000
RATE_LIMIT_MAX_REQUESTS=1000
# CORS origins (comma-separated)
CORS_ORIGINS=http://localhost:3000,https://yourdomain.com
# Security headers
CSP_ENABLED=true
# =============================================================================
# NOTES
# =============================================================================
# 1. Most APIs have free tiers that are sufficient for development and testing
# 2. Some APIs (arXiv, Wikipedia, PubMed) don't require keys
# 3. For production use, consider upgrading to paid plans for higher limits
# 4. Keep your API keys secure and never commit them to version control
# 5. Some APIs may require additional setup (OAuth, app registration, etc.)
#
# API Documentation Links:
# - Google Custom Search: https://developers.google.com/custom-search/v1/overview
# - Alpha Vantage: https://www.alphavantage.co/documentation/
# - NewsAPI: https://newsapi.org/docs
# - GitHub API: https://docs.github.com/en/rest
# - Reddit API: https://www.reddit.com/dev/api/
# - OpenWeatherMap: https://openweathermap.org/api
# - Hugging Face: https://huggingface.co/docs/api-inference/index
# - CoinGecko: https://www.coingecko.com/en/api/documentation