.env.example•2.8 kB
# =============================================================================
# MCP CCXT Server - Environment Variables
# =============================================================================
# Copy this file to .env and configure your variables
# -----------------------------------------------------------------------------
# Server Configuration
# -----------------------------------------------------------------------------
# Host to bind the server to (default: 0.0.0.0)
HOST=0.0.0.0
# Port the server will listen on (default: 3000)
PORT=3000
# Log level (debug, info, warn, error)
LOG_LEVEL=info
# -----------------------------------------------------------------------------
# Session Management (MCP Protocol)
# -----------------------------------------------------------------------------
# Session inactivity timeout in milliseconds (default: 300000 = 5 minutes)
SESSION_TIMEOUT_MS=300000
# How often to check for expired sessions in milliseconds (default: 30000 = 30 seconds)
SESSION_CLEANUP_INTERVAL_MS=30000
# Allow auto-recreation of unknown sessions (default: true for compatibility)
# Set to 'false' for strict MCP standard compliance
ALLOW_AUTO_SESSION_RECREATE=true
# Maximum errors per session before cleanup (default: 10, set to 0 to disable)
MAX_SESSION_ERRORS=10
# -----------------------------------------------------------------------------
# Exchange Configuration
# -----------------------------------------------------------------------------
# Default exchange to use when none is specified
DEFAULT_EXCHANGE=coinbase
# Default market type (spot, future, swap, option, margin)
DEFAULT_MARKET_TYPE=spot
# -----------------------------------------------------------------------------
# API Limits
# -----------------------------------------------------------------------------
# Default limits for requests
ORDERBOOK_LIMIT=10
OHLCV_LIMIT=100
MARKETS_LIMIT=50
# -----------------------------------------------------------------------------
# Exchange API Credentials
# -----------------------------------------------------------------------------
# IMPORTANT: NEVER commit the .env file with your real keys!
# Uncomment and fill in the ones you want to use
# Binance
# BINANCE_API_KEY=your_api_key
# BINANCE_SECRET=your_secret
# Coinbase
# COINBASE_API_KEY=your_api_key
# COINBASE_SECRET=your_secret
# Kraken
# KRAKEN_API_KEY=your_api_key
# KRAKEN_SECRET=your_secret
# KuCoin
# KUCOIN_API_KEY=your_api_key
# KUCOIN_SECRET=your_secret
# OKX
# OKX_API_KEY=your_api_key
# OKX_SECRET=your_secret
# Gate.io
# GATE_API_KEY=your_api_key
# GATE_SECRET=your_secret
# Bybit
# BYBIT_API_KEY=your_api_key
# BYBIT_SECRET=your_secret
# MEXC
# MEXC_API_KEY=your_api_key
# MEXC_SECRET=your_secret
# Huobi
# HUOBI_API_KEY=your_api_key
# HUOBI_SECRET=your_secret