# HN-MCP Server Configuration
# Copy this file to .env and customize as needed
# ============================================
# Server Mode
# ============================================
# Run as HTTP server instead of stdio (default: false)
# Set to true for web clients, API testing, or development
HN_MCP_HTTP=false
# HTTP server port (default: 3000)
# Only used when HN_MCP_HTTP=true
HN_MCP_PORT=3000
# ============================================
# Caching Configuration
# ============================================
# Disable caching for real-time data (default: false)
# Set to true to always fetch fresh data from HN APIs
HN_MCP_NO_CACHE=false
# ============================================
# Rate Limiting (Advanced)
# ============================================
# Override default rate limit (default: 300 requests/minute)
# HN API has no official limits, but we self-impose for courtesy
# Increase if needed, but be respectful to HN servers
# HN_MCP_RATE_LIMIT=300
# ============================================
# Notes
# ============================================
# Hacker News API:
# - Firebase API: https://hacker-news.firebaseio.com/v0/
# - Algolia Search: https://hn.algolia.com/api/v1/
# - No authentication required - completely open!
# - No official rate limits (we self-impose 300/min)
# For Claude Desktop:
# Add to claude_desktop_config.json:
# {
# "mcpServers": {
# "hn": {
# "command": "npx",
# "args": ["hn-mcp"]
# }
# }
# }