Server facts
mcp-server-odoo
GitHub stars
423
Last commit
Nov 29, 2026
Runtime
python
License
MPL-2.0
Project
- Author
- ivnvxd
- Repository
- github.com/ivnvxd/mcp-server-odoo
- License
- MPL-2.0
- Category
- Search & Web Data
Tech
- Runtime
- python
- Transports
- stdiostreamable-http
- Remote access
- No
- Authentication
- Odoo API key (ODOO_API_KEY) or username/password (ODOO_USER, ODOO_PASSWORD)
Activity
- GitHub stars
- 423
- Last commit
- Data as of
Tags
- mcp
- mcp server
- modelcontextprotocol
- odoo
Overview
Operations engineers and ERP consultants deploying an `odoo mcp` bridge can connect Claude Desktop, Claude Code, Cursor, VS Code Copilot, Windsurf, or Zed to Odoo instances with `ivnvxd/mcp-server-odoo` (Python 3.10+, MPL-2.0). Distributed via `uvx mcp-server-odoo`, `pip`, or Docker (`ivnvxd/mcp-server-odoo`), it defaults to local `stdio` and also supports `--transport streamable-http` on port 8000 (with DNS-rebinding host checks, 4 MiB body limits, and optional `ODOO_MCP_SESSION_IDLE_TIMEOUT`). Production setups pair Odoo 16.0+ with the companion Odoo MCP module, an `ODOO_API_KEY` (needing the `rpc` scope on Odoo 20), and MCP User group membership; local demos can bypass the module using `ODOO_YOLO=read` or `true` over XML-RPC or Odoo 19+ JSON-2.
Its 17 tools cover far more than raw record lookups: smart field selection caps default responses at 15 business-relevant fields while withholding credential-like columns, `aggregate_records` pushes groupings and sums into PostgreSQL via `formatted_read_group` or `read_group`, and `create_records` or `update_records` execute atomic batches up to 100 rows. Agents can inspect schemas (`get_fields`), read or upload attachments (`read_attachment`, `upload_attachment`), post chatter notes (`post_message`), scope multi-company contexts via `ODOO_ALLOWED_COMPANIES`, and—only when both `ODOO_YOLO=true` and `ODOO_MCP_ENABLE_METHOD_CALLS=true` are enabled—trigger workflow actions through `call_model_method`.
Install & configure
Requirements
- Python 3.10+ with `uv` (`uvx mcp-server-odoo`) or Docker (`ivnvxd/mcp-server-odoo`)
- Odoo 16.0+ with the companion Odoo MCP module for production, OR any XML-RPC/JSON-2 Odoo instance for dev-only YOLO mode
- `ODOO_URL` plus either `ODOO_API_KEY` (with `rpc` scope on Odoo 20) or `ODOO_USER` and `ODOO_PASSWORD` (plus `ODOO_DB` when DB listing is restricted)
uvx mcp-server-odooConfigure `uvx mcp-server-odoo` over `stdio` in Claude Desktop, Claude Code (`claude mcp add odoo`), Cursor, VS Code (`servers` root key), Windsurf, or Zed. For HTTP access, run with `--transport streamable-http` behind an authenticating reverse proxy and configure `ODOO_MCP_ALLOWED_HOSTS`.
Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"odoo": {
"command": "uvx",
"args": [
"mcp-server-odoo"
],
"env": {
"ODOO_URL": "https://your-odoo-instance.com",
"ODOO_API_KEY": "your-api-key-here",
"ODOO_DB": "your-database-name"
}
}
}
}Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"odoo": {
"command": "uvx",
"args": [
"mcp-server-odoo"
],
"env": {
"ODOO_URL": "https://your-odoo-instance.com",
"ODOO_API_KEY": "your-api-key-here",
"ODOO_DB": "your-database-name"
}
}
}
}Config file · Workspace: .vscode/mcp.json
For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.
{
"servers": {
"odoo": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-odoo"
],
"env": {
"ODOO_URL": "https://your-odoo-instance.com",
"ODOO_API_KEY": "your-api-key-here",
"ODOO_DB": "your-database-name"
}
}
}
}Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"odoo": {
"command": "uvx",
"args": [
"mcp-server-odoo"
],
"env": {
"ODOO_URL": "https://your-odoo-instance.com",
"ODOO_API_KEY": "your-api-key-here",
"ODOO_DB": "your-database-name"
}
}
}
}Config file · Project scope: .mcp.json at the repository root
The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"odoo": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-odoo"
],
"env": {
"ODOO_URL": "https://your-odoo-instance.com",
"ODOO_API_KEY": "your-api-key-here",
"ODOO_DB": "your-database-name"
}
}
}
}Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Tools
Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.
| Tool | What it does |
|---|---|
| search_records | Query any enabled Odoo model with domain filters, pagination, per-call context, and smart default field selection. |
| get_record | Retrieve a single Odoo record by ID with smart field selection and summarized small x2many relations. |
| get_fields | Inspect a model's field types, labels, readonly flags, relations, and selection options before reading or writing. |
| get_current_context | Return the active Odoo user, timezone, active company, allowed companies, and UTC datetime handling guidance. |
| list_models | List Odoo models currently enabled for MCP access. |
| list_resource_templates | Return available `odoo://` resource URI templates for records, searches, counts, fields, binaries, and attachments. |
| create_record | Create a single new record in an allowed Odoo model with validation. |
| create_records | Atomically create up to 100 records of a single Odoo model in a single transaction. |
| update_record | Update field values on an existing Odoo record by ID. |
| update_records | Batch-update up to 100 distinct records (uniform values on any version, or per-record payloads on Odoo 19+). |
| delete_record | Delete a record from an Odoo model respecting model-level permissions. |
| aggregate_records | Run server-side PostgreSQL groupings, counts, and sums via `formatted_read_group` (Odoo 19+) or `read_group` without pulling raw rows. |
| read_attachment | Read text files (up to 100,000 chars), extracted PDF/Office text, inline images up to 256 KB, or download links from an attachment or binary URI. |
| list_record_attachments | List files attached to an Odoo record newest-first with mimetype, size, date, and `odoo://attachment/{id}` URIs. |
| upload_attachment | Attach a base64-encoded file (up to about 2.9 MB decoded) to a record for reuse in chatter messages. |
| post_message | Post an internal note or follower-notifying comment (plain text or HTML, with optional attachments) to a record's chatter. |
| call_model_method | Opt-in workflow escape hatch (requires `ODOO_YOLO=true` and `ODOO_MCP_ENABLE_METHOD_CALLS=true`) to invoke public business methods like posting invoices. |
Use cases
- Answer sales, inventory, and invoice KPI questions accurately by pushing totals and monthly groupings to PostgreSQL via `aggregate_records`.
- Search partners, inspect model schemas with `get_fields`, and batch-create or update up to 100 ERP records atomically.
- Read attached contracts or product images via `read_attachment`, upload new documents, and log customer follow-ups in record chatter with `post_message`.
- Run isolated per-company MCP server entries against a multi-company Odoo database using `ODOO_ALLOWED_COMPANIES`.
Strengths
- Smart field selection limits default responses to 15 relevant business fields and automatically withholds credential-like fields.
- Separates production security (Odoo MCP module allowlists, MCP User group, 5-minute permission cache) from dev-only `ODOO_YOLO=read` / `true` modes.
- Supports both `stdio` and `streamable-http` across `uvx`, `pip`, and Docker, plus Odoo 19+ JSON-2 transport and Odoo 20 `rpc` scoped keys.
- Documented configs cover Claude Desktop, Claude Code, Cursor, VS Code Copilot, Windsurf, and Zed.
Limitations
- Streamable HTTP mode has no built-in client authentication and must be fronted by an authenticating reverse proxy when bound beyond localhost.
- Production model-level access control requires installing the separate Odoo MCP module on Odoo 16.0+, whereas YOLO mode bypasses MCP allowlists.
- `ODOO_ALLOWED_COMPANIES` provides context scoping rather than hard security isolation, and `call_model_method` is disabled outside full YOLO mode.
mcp-server-odoo setup notes
- Check ODOO_API_KEY, ODOO_DB, ODOO_URL in the mcp-server-odoo configuration if startup or authentication fails.
- mcp-server-odoo's example uses stdio, while its catalog transports are stdio / streamable-http; use the example's connection type.