# CompanyIQ MCP Server - Environment Variables
# Copy this file to .env and fill in your values
# ===========================================
# REQUIRED FOR RAILWAY DEPLOYMENT
# ===========================================
# API Key for authenticating requests to the server
# Generate a secure random string (e.g., using: openssl rand -hex 32)
COMPANYIQ_API_KEY=your-secret-api-key-here
# Port (automatically set by Railway, but can be overridden locally)
PORT=3000
# ===========================================
# DATABASE (PostgreSQL)
# ===========================================
# PostgreSQL connection URL (provided by Railway Postgres addon)
DATABASE_URL=postgresql://user:password@host:5432/database
# ===========================================
# NORWEGIAN DATA SOURCES
# ===========================================
# Brønnøysund Register Centre API
BRREG_API_BASE_URL=https://data.brreg.no/enhetsregisteret/api
# Statistics Norway (SSB) API
SSB_API_BASE_URL=https://data.ssb.no/api/pxwebapi/v2
# ===========================================
# OPTIONAL - FOR PDF PARSING FEATURES
# ===========================================
# OpenAI API Key (required for PDF parsing with Vision)
# Get yours at: https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-your-openai-api-key-here
# ===========================================
# CACHING CONFIGURATION
# ===========================================
# Cache TTL in hours (default: 24)
CACHE_TTL_HOURS=24
# ===========================================
# API USER IDENTIFICATION
# ===========================================
# Username for API requests (for rate limiting identification)
API_USERNAME=companyiq-user