Claude Code
Query Odoo data, post invoices, and run diagnostics in natural language — directly from Claude.
MODEL CONTEXT PROTOCOL
Connect AI agents to your Odoo instance. Query, create, update, and execute from Claude, Cursor, Windsurf, or any MCP client.
OVERVIEW
A lightweight MCP server that bridges AI agents and Odoo ERP. It exposes 11 tools that let your AI query records, create contacts, confirm orders, post invoices, and run health checks — all through natural language.
One Python file. No framework. No build step.
One Python file with inline deps. Run with uv — no virtualenv, no build step.
Supports Odoo 17-18 (JSON-RPC) and 19+ (JSON-2 API). Auto-selects the right one.
Runs locally in your environment. Your credentials and data never leave your machine.
Set ODOO_READONLY=true for safe production access. Only query tools remain active.
Any client that speaks MCP can use these Odoo tools.
Query Odoo data, post invoices, and run diagnostics in natural language — directly from Claude.
Query Odoo models, inspect records, and trigger workflows without leaving your editor.
Build autonomous Odoo workflows with any MCP-compatible agent framework.
Your AI agent queries Odoo directly — no terminal needed.
User: Are there any draft invoices over $5,000? ┊ odoo_search_read account.move ┊ domain: [["state","=","draft"],["amount_total",">",5000]] ┊ fields: ["name","partner_id","amount_total"] ┊ Found 2 draft invoices: Invoice | Customer | Amount INV/2026/001 | Acme Corp | $8,200.00 INV/2026/002 | GlobalTech | $12,450.00 ┊ Want me to post them?
Query, write, discover, and diagnose — everything you need to work with Odoo from an AI agent. Full reference
odoo_search_read Search and read records from any model with domain filtersodoo_search_count Count records matching a filter without fetching dataodoo_export Bulk export up to 2,000 records per call with paginationodoo_create Create new records in any Odoo modelodoo_update Update existing records by IDodoo_delete Delete records from any modelodoo_execute Execute model methods — confirm orders, post invoices, trigger workflowsodoo_list_models Discover available models filtered by keywordodoo_get_fields Get field definitions and metadata for any modelodoo_doctor Full instance health diagnostic in a single callodoo_connection_info Show current connection details and versiongit clone https://github.com/oconsole/odoo-mcp-server.git
Add the server to your client's MCP config (e.g. .mcp.json for Claude Code):
{
"mcpServers": {
"odoo": {
"type": "stdio",
"command": "uv",
"args": ["run", "--python", "3.11", "--script",
"/path/to/odoo_mcp_server.py"],
"env": {
"ODOO_URL": "https://your-instance.odoo.com",
"ODOO_DB": "your-database",
"ODOO_USER": "admin",
"ODOO_PASSWORD": "your-password"
}
}
}
} Open your MCP client and ask about your Odoo data. All 11 tools are available immediately.
Odoo MCP Server runs entirely in your local environment. Your Odoo credentials, data, and context never
leave your machine. Set ODOO_READONLY=true for safe production access.