This is a proof-of-concept for integrating Odoo with Claude using MCP (Model Context Protocol).
This project uses environment variables to configure the Odoo server connection. Create a .env file in the root directory with the following variables:
# Odoo Server Configuration
ODOO_SERVER_URL=http://your-odoo-server-ip:8069
ODOO_API_ENDPOINT=/odoo
An example .env.example file is provided for reference.
- Clone this repository
- Install dependencies:
npm install - Configure your environment variables (see above)
- Start the MCP server:
node server.js
You can run the included test script to verify the MCP implementation:
python test_mcp.py
This will test all required MCP endpoints for Claude integration.
odoo_product_mcp/: Odoo module providing MCP endpoints for product operationsconfig/: Odoo configuration filesserver.js: Node.js MCP servertest_mcp.py: MCP implementation test scriptdeploy.sh,rebuild.sh,update_module.sh: Scripts for deployment and management
The project includes several scripts for deployment:
deploy.sh: Deploy the entire projectrebuild.sh: Rebuild the Docker containersupdate_module.sh: Update just the Odoo module