# Tavily MCP Server Configuration Example # Option 1: Multiple API Keys (Recommended for load balancing and failover) # Separate multiple keys with commas TAVILY_API_KEYS=tvly-your-first-key-here,tvly-your-second-key-here,tvly-your-third-key-here # Option 2: Single API Key (Backward compatible) # TAVILY_API_KEY=tvly-your-api-key-here # Note: If both TAVILY_API_KEYS and TAVILY_API_KEY are set, # TAVILY_API_KEYS will take precedence. # Optional: Default parameters for all requests (JSON format) # Example: DEFAULT_PARAMETERS={"search_depth":"basic","topic":"news","max_results":10} # DEFAULT_PARAMETERS={} # === Usage Tracking and Statistics === # Enable usage tracking (default: false) USAGE_TRACKING_ENABLED=true # Path to store usage statistics (default: ./usage-stats.json) USAGE_STATS_FILE=./usage-stats.json # Webhook URL for usage callbacks (optional) # If set, the server will send periodic reports and alerts to this URL # USAGE_CALLBACK_URL=https://your-webhook-url.com/tavily-usage # Interval for periodic usage reports in seconds (optional) # Only used if USAGE_CALLBACK_URL is set # USAGE_REPORT_INTERVAL=3600 # Alert threshold for error rate percentage (default: 80) # Triggers alert when error rate exceeds this percentage USAGE_ALERT_THRESHOLD=80 # === Multi-Channel Notifications === # The system automatically detects notification type from URL # Supported: Slack, Discord, Telegram, Weixin, DingTalk, Feishu, Webhook # Slack example # USAGE_CALLBACK_URL=https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXX # Discord example # USAGE_CALLBACK_URL=https://discord.com/api/webhooks/1234567890/abcdefghijklmnopqrstuvwxyz # Telegram example (requires additional config) # USAGE_CALLBACK_URL=https://api.telegram.org/botYOUR_BOT_TOKEN/sendMessage # TELEGRAM_CHAT_ID=123456789 # TELEGRAM_BOT_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyz # Weixin (企业微信) example # USAGE_CALLBACK_URL=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx # DingTalk (钉钉) example # USAGE_CALLBACK_URL=https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # Feishu (飞书) example # USAGE_CALLBACK_URL=https://open.feishu.cn/open-apis/bot/v2/hook/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx # Force specific notification type (optional, auto-detected by default) # NOTIFICATION_TYPE=slack