# ==============================================================================
# Paper Search MCP Server - Environment Variables
# ==============================================================================
# Supports 13 academic platforms with unified search interface
# Platforms: arXiv, Web of Science, PubMed, Google Scholar, bioRxiv, medRxiv,
# Semantic Scholar, IACR ePrint, Sci-Hub, ScienceDirect, Springer, Wiley, Scopus
# ==============================================================================
# API KEYS CONFIGURATION
# ==============================================================================
# ------------------------------------------------------------------------------
# Web of Science (Clarivate) - REQUIRED
# ------------------------------------------------------------------------------
# Premium citation database with high-quality journal indexing
# Get API key: https://developer.clarivate.com/apis
# Pricing: Paid subscription required
# Rate limit: Depends on subscription level
WOS_API_KEY=your_web_of_science_api_key_here
WOS_API_VERSION=v1
# ------------------------------------------------------------------------------
# PubMed/NCBI E-utilities - OPTIONAL (but recommended)
# ------------------------------------------------------------------------------
# Biomedical literature database
# Without API key: 3 requests/second limit
# With API key: 10 requests/second limit
# Get API key: https://ncbiinsights.ncbi.nlm.nih.gov/2017/11/02/new-api-keys-for-the-e-utilities/
# Pricing: Free
PUBMED_API_KEY=your_ncbi_api_key_here
# ------------------------------------------------------------------------------
# Semantic Scholar - OPTIONAL (increases rate limits)
# ------------------------------------------------------------------------------
# AI-powered academic search with semantic understanding
# Without API key: ~20 requests/minute (free tier)
# With API key: ~180 requests/minute (partner tier)
# Get API key: https://www.semanticscholar.org/product/api
# Pricing: Free for academic use
SEMANTIC_SCHOLAR_API_KEY=your_semantic_scholar_api_key_here
# ------------------------------------------------------------------------------
# Elsevier API - REQUIRED for ScienceDirect and Scopus
# ------------------------------------------------------------------------------
# Single API key works for both platforms:
# - ScienceDirect: Full-text scientific database
# - Scopus: Largest abstract and citation database
# Get API key: https://dev.elsevier.com/apikey/manage
# Pricing: Free tier available with usage limits
# Rate limit: 10 requests/second with key, 20 requests/minute without
ELSEVIER_API_KEY=your_elsevier_api_key_here
# ------------------------------------------------------------------------------
# Springer Nature API - REQUIRED for Springer
# ------------------------------------------------------------------------------
# Dual API system:
# - Metadata API v2: Search all Springer content (subscription + open access)
# Endpoint: https://api.springernature.com/meta/v2/json
# - OpenAccess API: Search and download open access papers only
# Endpoint: https://api.springernature.com/openaccess/json
# Note: OpenAccess API may require special permissions on your API key
#
# Get API key: https://dev.springernature.com/signup
# Documentation: https://dev.springernature.com/
# Pricing: Free with 5000 requests/day limit (shared between both APIs)
# Rate limit: ~200 requests/hour (conservative)
#
# Primary API key (required - works for Metadata API v2)
SPRINGER_API_KEY=your_springer_api_key_here
#
# Optional: Separate OpenAccess API key (if different from main key)
# Only set this if you have a separate key specifically for OpenAccess API
# SPRINGER_OPENACCESS_API_KEY=your_openaccess_api_key_here
# ------------------------------------------------------------------------------
# Wiley Text and Data Mining (TDM) - REQUIRED for Wiley
# ------------------------------------------------------------------------------
# Access to Wiley Online Library for text and data mining
# Get TDM token: https://onlinelibrary.wiley.com/library-info/resources/text-and-datamining
# Pricing: Requires institutional affiliation or subscription
# Rate limit: ~100 requests/hour (conservative estimate)
WILEY_TDM_TOKEN=your_wiley_tdm_token_here
# ==============================================================================
# PLATFORM STATUS SUMMARY
# ==============================================================================
#
# Platform | API Key | Features | Best For
# ------------------|------------|-------------------------------|------------------
# arXiv | ✅ Free | Preprints, PDF download | Physics, CS, Math
# Web of Science | 🔴 Required| Citation analysis, metrics | Impact research
# PubMed | 🟡 Optional| Medical literature | Biomedical
# Google Scholar | ✅ Free | Comprehensive coverage | General search
# bioRxiv | ✅ Free | Biology preprints, PDF | Biology research
# medRxiv | ✅ Free | Medical preprints, PDF | Medical research
# Semantic Scholar | 🟡 Optional| AI-powered search, citations | CS, AI research
# IACR ePrint | ✅ Free | Cryptography papers, PDF | Cryptography
# Sci-Hub | ✅ Free | Universal DOI access | Any paper by DOI
# ScienceDirect | 🔴 Required| Elsevier journals | Full-text search
# Springer | 🔴 Required| Dual API (Meta+OpenAccess) | Books & journals
# Wiley | 🔴 Required| TDM API, full text mining | Data mining
# Scopus | 🔴 Required| Citation database | Bibliometrics
#
# Legend: ✅ No key needed | 🟡 Optional key | 🔴 Key required
# ==============================================================================
# SERVER CONFIGURATION
# ==============================================================================
NODE_ENV=production
LOG_LEVEL=info
# Download Configuration
DEFAULT_DOWNLOAD_PATH=./downloads
MAX_FILE_SIZE_MB=100
# Rate Limiting
RATE_LIMIT_REQUESTS_PER_MINUTE=60
RATE_LIMIT_BURST=10