Odoo Integration
STDIOModel Context Protocol server for Odoo integration, enabling AI agents to access Odoo data.
Model Context Protocol server for Odoo integration, enabling AI agents to access Odoo data.
Model Context Protocol server for Odoo integration, allowing AI agents to access and manipulate Odoo data through a standardized interface.
MCP-Odoo provides a bridge between Odoo ERP systems and AI agents using the Model Context Protocol (MCP). This enables AI systems to:
# Clone the repository git clone https://github.com/yourtechtribe/model-context-protocol-mcp-odoo.git cd model-context-protocol-mcp-odoo # Install dependencies pip install -r requirements.txt
Create a .env
file in the project root with the following variables:
ODOO_URL=https://your-odoo-instance.com
ODOO_DB=your_database
ODOO_USERNAME=your_username
ODOO_PASSWORD=your_password
HOST=0.0.0.0
PORT=8080
Start the MCP server:
# Using the SSE transport (default) python -m mcp_odoo_public # Using stdio for local agent integration python -m mcp_odoo_public --transport stdio
Comprehensive documentation is available in the docs/
directory:
mcp_odoo_public/
: Main package
odoo/
: Odoo client and related modulesresources/
: MCP resources definitions (tools and schemas)server.py
: MCP server implementationconfig.py
: Configuration managementmcp_instance.py
: FastMCP instance definitionResources define the capabilities exposed to AI agents through MCP. To add a new resource:
resources/
directory@mcp.tool()
decoratorresources/__init__.py
For detailed instructions, see the Implementation Guide.
This project is licensed under the MIT License - see the LICENSE file for details.
Albert Gil López
Contributions are welcome! Please feel free to submit a Pull Request.