.env.exampleā¢1.55 kB
# Odoo MCP Server Configuration
# Copy this file to .env and update with your Odoo instance details
# Server Configuration
# ====================
# Odoo server URL (required)
# The URL where your Odoo instance is running
ODOO_URL=http://localhost:8069
# Database name (optional)
# If not specified, will be auto-detected from Odoo
# ODOO_DB=your-database-name
# Authentication Configuration
# ============================
# Authentication method 1: API key (preferred)
# Generate in Odoo: Settings > Users & Companies > Users > API Keys
ODOO_API_KEY=your-api-key-here
# Authentication method 2: Username/password (fallback)
# Only used if ODOO_API_KEY is not provided
# ODOO_USER=your-username
# ODOO_PASSWORD=your-password
# Logging Configuration
# =====================
# Log level (optional)
# Valid levels: DEBUG, INFO, WARNING, ERROR, CRITICAL
# ODOO_MCP_LOG_LEVEL=INFO
# Performance Configuration
# =========================
# Default pagination limit (optional)
# Number of records to return by default
# ODOO_MCP_DEFAULT_LIMIT=10
# Maximum pagination limit (optional)
# Maximum number of records that can be requested
# ODOO_MCP_MAX_LIMIT=100
# Transport Configuration
# =======================
# Transport type (optional)
# Valid values: stdio (default), streamable-http
# ODOO_MCP_TRANSPORT=stdio
# Server host for HTTP transport (optional)
# Only used when transport is streamable-http
# ODOO_MCP_HOST=localhost
# Server port for HTTP transport (optional)
# Only used when transport is streamable-http
# ODOO_MCP_PORT=8000