.env.example•2.54 kB
# SearchAPI MCP Server Configuration
# Copy this file to .env and fill in your actual values
# ============================================================================
# Required Configuration
# ============================================================================
# Your SearchAPI.io API key (required)
# Get one at: https://www.searchapi.io/
SEARCHAPI_API_KEY=your_api_key_here
# ============================================================================
# Optional API Configuration
# ============================================================================
# SearchAPI base URL (default: https://www.searchapi.io/api/v1/search)
# SEARCHAPI_API_URL=https://www.searchapi.io/api/v1/search
# Request timeout in seconds (default: 30.0, range: 1.0-300.0)
# TIMEOUT=30.0
# Maximum number of retry attempts (default: 3, range: 0-10)
# MAX_RETRIES=3
# Retry backoff multiplier (default: 1.0, range: 0.1-10.0)
# RETRY_BACKOFF=1.0
# ============================================================================
# Cache Configuration
# ============================================================================
# Enable response caching (default: true)
# ENABLE_CACHE=true
# Cache time-to-live in seconds (default: 3600, range: 60-86400)
# 3600 = 1 hour
# CACHE_TTL=3600
# Maximum number of cached items (default: 1000, range: 10-10000)
# CACHE_MAX_SIZE=1000
# ============================================================================
# Connection Pool Configuration
# ============================================================================
# Number of connection pool instances (default: 10, range: 1-100)
# POOL_CONNECTIONS=10
# Maximum connections in pool (default: 10, range: 1-100)
# POOL_MAXSIZE=10
# ============================================================================
# Monitoring & Logging
# ============================================================================
# Enable metrics collection (default: true)
# ENABLE_METRICS=true
# Logging level: DEBUG, INFO, WARNING, ERROR, CRITICAL (default: INFO)
# LOG_LEVEL=INFO
# ============================================================================
# Performance Tuning Examples
# ============================================================================
# High-traffic scenario:
# POOL_CONNECTIONS=50
# POOL_MAXSIZE=50
# CACHE_MAX_SIZE=5000
# CACHE_TTL=7200
# Low-traffic / memory-constrained:
# POOL_CONNECTIONS=5
# POOL_MAXSIZE=5
# CACHE_MAX_SIZE=100
# CACHE_TTL=1800
# Debug mode:
# LOG_LEVEL=DEBUG
# ENABLE_METRICS=true