mcp-server-odoo

by @ivnvxd

Odoo MCP Server

Search, aggregate, create, update, and manage Odoo ERP records, attachments, and chatter messages from Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, or Zed. Built in Python 3.10+ under MPL-2.0, ivnvxd/mcp-server-odoo runs via uvx or Docker over stdio or Streamable HTTP with API key auth.

Search & Web Data423pythonMPL-2.0

Server facts

mcp-server-odoo

GitHub stars

423

Last commit

Nov 29, 2026

Runtime

python

License

MPL-2.0

Project

Author
ivnvxd
License
MPL-2.0

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)
Documented launch / install command
uvx mcp-server-odoo

Configure `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`.

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.

Claude Desktop configuration
{
  "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"
      }
    }
  }
}

Read the Claude Desktop setup guide

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.

Cursor configuration
{
  "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"
      }
    }
  }
}

Read the Cursor setup guide

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.

VS Code configuration
{
  "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"
      }
    }
  }
}

Read the VS Code setup guide

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.

Windsurf configuration
{
  "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"
      }
    }
  }
}

Read the Windsurf setup guide

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.

Claude Code configuration
{
  "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"
      }
    }
  }
}

Read the Claude Code setup guide

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.

ToolWhat it does
search_recordsQuery any enabled Odoo model with domain filters, pagination, per-call context, and smart default field selection.
get_recordRetrieve a single Odoo record by ID with smart field selection and summarized small x2many relations.
get_fieldsInspect a model's field types, labels, readonly flags, relations, and selection options before reading or writing.
get_current_contextReturn the active Odoo user, timezone, active company, allowed companies, and UTC datetime handling guidance.
list_modelsList Odoo models currently enabled for MCP access.
list_resource_templatesReturn available `odoo://` resource URI templates for records, searches, counts, fields, binaries, and attachments.
create_recordCreate a single new record in an allowed Odoo model with validation.
create_recordsAtomically create up to 100 records of a single Odoo model in a single transaction.
update_recordUpdate field values on an existing Odoo record by ID.
update_recordsBatch-update up to 100 distinct records (uniform values on any version, or per-record payloads on Odoo 19+).
delete_recordDelete a record from an Odoo model respecting model-level permissions.
aggregate_recordsRun server-side PostgreSQL groupings, counts, and sums via `formatted_read_group` (Odoo 19+) or `read_group` without pulling raw rows.
read_attachmentRead 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_attachmentsList files attached to an Odoo record newest-first with mimetype, size, date, and `odoo://attachment/{id}` URIs.
upload_attachmentAttach a base64-encoded file (up to about 2.9 MB decoded) to a record for reuse in chatter messages.
post_messagePost an internal note or follower-notifying comment (plain text or HTML, with optional attachments) to a record's chatter.
call_model_methodOpt-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.

Frequently asked questions

Install `uv` locally and add `uvx mcp-server-odoo` under `mcpServers` with `ODOO_URL`, `ODOO_API_KEY`, and `ODOO_DB` (required if your Odoo server restricts database listing). For Claude Code, you can run `claude mcp add odoo --env ODOO_URL=... --env ODOO_API_KEY=... --env ODOO_DB=... -- uvx mcp-server-odoo`; Docker users can run `ivnvxd/mcp-server-odoo` without installing Python.

Related MCP servers