Odoo-MCP
Odoo-MCP
Documentation
Odoo-MCP
A modern bridge system for interacting with Odoo ERP systems through MCP (Model Context Protocol).
Features
- Comprehensive Odoo Integration: Full access to Odoo models, records, and methods
- XML-RPC Communication: Secure connection to Odoo instances via XML-RPC
- Flexible Configuration: Support for config files and environment variables
- Resource Pattern System: URI-based access to Odoo data structures
- Error Handling: Clear error messages for common Odoo API issues
- Stateless Operations: Clean request/response cycle for reliable integration
Tools
- execute_method
- search_employee
- search_holidays
- Searches for holidays within a specified date range
- Inputs:
- `start_date` (string): Start date in YYYY-MM-DD format
- `end_date` (string): End date in YYYY-MM-DD format
- `employee_id` (optional number): Optional employee ID to filter holidays
- Returns: Object containing success indicator, list of holidays found, and any error message
Resources
- odoo://models
- odoo://model/{model_name}
- odoo://record/{model_name}/{record_id}
- odoo://search/{model_name}/{domain}
- Search for records that match a domain
- Example: `odoo://search/res.partner/[["is_company","=",true]]`
- Returns: JSON array of matching records (limited to 10 by default)
Configuration
Odoo Connection Setup
1. Create a configuration file named `odoo_config.json`:
{
"url": "https://your-odoo-instance.com",
"db": "your-database-name",
"username": "your-username",
"password": "your-password-or-api-key"
}2. Alternatively, use environment variables:
Usage with Claude Desktop
Add this to your `claude_desktop_config.json`:
{
"mcpServers": {
"odoo": {
"command": "python",
"args": ["-m", "odoo_mcp"],
"env": {
"ODOO_URL": "https://your-odoo-instance.com",
"ODOO_DB": "your-database-name",
"ODOO_USERNAME": "your-username",
"ODOO_PASSWORD": "your-password-or-api-key"
}
}
}
}Docker
{
"mcpServers": {
"odoo": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"ODOO_URL",
"-e",
"ODOO_DB",
"-e",
"ODOO_USERNAME",
"-e",
"ODOO_PASSWORD",
"mcp/odoo"
],
"env": {
"ODOO_URL": "https://your-odoo-instance.com",
"ODOO_DB": "your-database-name",
"ODOO_USERNAME": "your-username",
"ODOO_PASSWORD": "your-password-or-api-key"
}
}
}
}Installation
Python Package
pip install odoo-mcpRunning the Server
# Using the installed package
odoo-mcp
# Using the MCP development tools
mcp dev odoo_mcp/server.py
# With additional dependencies
mcp dev odoo_mcp/server.py --with pandas --with numpy
# Mount local code for development
mcp dev odoo_mcp/server.py --with-editable .Build
Docker build:
docker build -t mcp/odoo:latest -f Dockerfile .Parameter Formatting Guidelines
When using the MCP tools for Odoo, pay attention to these parameter formatting guidelines:
1. Domain Parameter:
2. Fields Parameter:
License
This MCP server is licensed under the MIT License.
Frequently asked questions
What is Odoo-MCP?
Odoo-MCP is Odoo-MCP
How do I install Odoo-MCP?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is Odoo-MCP open source?
Yes — it is hosted on GitHub at https://github.com/ridrisa/Odoo-MCP and has 1 stars.
Related MCP tools
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.
Automate browser based workflows with AI
Hindsight: Agent Memory That Learns
A privacy-first app that strips AI watermarks from content you own.
Agent framework and applications built upon Qwen>=3.0, featuring Function Calling, MCP, Code Interpreter, RAG, Chrome extension, etc.
The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP