Back to Guides
How to Connect Odoo to MCP for AI Agents
Integrate Odoo ERP with AI agents via MCP. Access CRM, inventory, accounting, and HR modules through the AnythingMCP dashboard.
Odoo ERP with AI Agents
Odoo is a comprehensive open-source ERP platform with modules for CRM, sales, inventory, accounting, HR, and more. Connecting Odoo to MCP enables AI agents to access and manage business data across all Odoo modules.
Step-by-Step Guide
Step 1: Deploy AnythingMCP
git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d
Step 2: Create a REST Connector
Open the AnythingMCP dashboard at http://localhost:3000 and create a new REST connector. Set the base URL to your Odoo JSON-RPC or REST API endpoint (e.g., https://your-odoo.com/api).
Step 3: Configure Authentication
In the connector settings, configure authentication with your Odoo API key or session credentials.
Step 4: Import and Customize Tools
Configure endpoints for sales orders, contacts, invoices, inventory, and HR records in the dashboard.
Step 5: Test and Connect
{
"mcpServers": {
"odoo": {
"url": "http://localhost:4000/mcp"
}
}
}
AI Agent Use Cases
- "Show me all open quotations for this month"
- "What's the inventory level for product X?"
- "List all unpaid invoices over 1,000 EUR"
- "Create a new lead for company ABC GmbH"
- "How many support tickets are open?"
Best Practices
- Use API keys for authentication instead of session tokens
- Module access — Configure Odoo access rights for the API user
- Rate limiting — Configure request limits to avoid overloading the Odoo server
- Test on staging — Always test on a staging Odoo instance first
Next Steps
- SAP HANA to MCP Guide — Enterprise ERP
- REST to MCP Guide — General REST patterns