Enables connection to Odoo databases to perform CRUD operations on various models, search for records using domain syntax, manage modules, and inspect field metadata.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Odoo ServerFind the 5 most recent sale orders and show their totals"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Odoo Server
A Model Context Protocol (MCP) server for connecting to Odoo databases via XML-RPC and JSON-RPC. This server enables AI assistants and other MCP clients to interact with Odoo databases, performing CRUD operations, managing modules, and executing administrative tasks.
Features
Database Connection: Connect to any Odoo instance using host, database name, username, and API key
CRUD Operations: Create, Read, Update, and Delete records in any Odoo model
Search & Query: Powerful search capabilities with domain filters
Module Management: Install, uninstall, and upgrade Odoo modules
Field Inspection: Get detailed field definitions and metadata
Access Control: Check user permissions for operations
Version Info: Get Odoo server version and capabilities
Installation
Navigate to the MCP server directory:
Install dependencies:
Build the TypeScript code:
Configuration
MCP Client Configuration
Add this server to your MCP client configuration (e.g., Claude Desktop):
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Odoo API Key
Log into your Odoo instance
Go to Settings → Users & Companies → Users
Open your user record
Go to the Preferences tab
Click New API Key button
Copy the generated API key (you'll use this as the password)
Usage
1. Connect to Odoo Database
First, establish a connection to your Odoo database:
2. Search Records
Search for records matching specific criteria:
3. Search and Read Records
Get full record data in one call:
4. Read Specific Records
Read records by their IDs:
5. Create Records
Create a new record:
6. Update Records
Update existing records:
7. Delete Records
Delete records:
8. Get Field Definitions
Inspect model fields:
9. Module Management
Install a module:
Uninstall a module:
Upgrade a module:
List installed modules:
Available Tools
Tool | Description |
| Connect to an Odoo database |
| Search for record IDs matching criteria |
| Search and read records in one call |
| Read specific records by ID |
| Create a new record |
| Update existing records |
| Delete records |
| Get field definitions for a model |
| Execute any method on a model (advanced) |
| Get Odoo server version info |
| Check user permissions |
| List installed modules |
| Install a module |
| Uninstall a module |
| Upgrade a module |
Odoo Domain Syntax
Domains use Polish notation (prefix notation) and consist of tuples:
Common Operators
=- equals!=- not equals>- greater than>=- greater than or equal<- less than<=- less than or equallike- SQL LIKEilike- case-insensitive LIKEin- in a listnot in- not in a listchild_of- child of (hierarchical)parent_of- parent of (hierarchical)
Common Odoo Models
Model | Description |
| Contacts and Companies |
| Users |
| Sales Orders |
| Purchase Orders |
| Journal Entries (Invoices) |
| Transfers/Deliveries |
| Products (variants) |
| Product Templates |
| Installed Modules |
| Companies |
| Employees |
Development
Watch Mode
For development with auto-rebuild:
Run in Development
Troubleshooting
Connection Issues
Check Odoo is running: Ensure your Odoo server is accessible
Verify credentials: Make sure the API key is valid
Check firewall: Ensure port 8069 (or your custom port) is accessible
Protocol: Use
httpfor local development,httpsfor production
Authentication Errors
Verify your API key is correct
Ensure the user has sufficient permissions
Check that the database name is correct
Module Installation Issues
Only users with admin rights can install modules
Some modules have dependencies that must be installed first
Check the Odoo logs for detailed error messages
Integration with odoo.conf
While this MCP server uses XML-RPC for remote connections, your local odoo.conf file is used to configure the Odoo server itself. Here's how they work together:
odoo.conf (for Odoo Server)
MCP Server (for Remote Access)
The MCP server connects to a running Odoo instance (which may be local or remote) using the XML-RPC API, similar to how the Odoo web interface or mobile apps connect.
Security Notes
API Keys: Never commit API keys to version control
Access Control: The MCP server respects Odoo's security rules and access rights
HTTPS: Always use HTTPS in production environments
Permissions: Operations are limited by the authenticated user's permissions
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.