Installation
Odoo AI MCP Server

Installation

Install and enable the Odoo AI MCP Server module in Odoo 19

Installation

Requirements

RequirementDetails
Odoo Version19.0 (Community or Enterprise)
HTTPSRecommended for production; required for OAuth 2.1 web clients
Odoo UserA user to authorise AI connections (must be in MCP Server User group)

Core Dependencies

The module declares the following Odoo module dependencies in __manifest__.py. All are bundled with standard Odoo 19:

base  ·  base_setup  ·  mail  ·  rpc  ·  web  ·  http_routing  ·  bus  ·  spreadsheet_dashboard

No third-party Python packages are required.

Install the Module

  1. Copy the odoo_ai_mcp_server folder into your Odoo addons path (e.g. /opt/odoo/extra-addons/).
  2. Restart the Odoo service.
  3. Navigate to Apps in the Odoo top bar.
  4. Click Update Apps List.
  5. Search for Odoo AI MCP Server and click Install.

After installation a top-level MCP Server application appears in the main menu.

Enable the Gateway

[!IMPORTANT] The gateway must be enabled before any MCP client can connect. Requests to /mcp return HTTP 503 when the gateway is off.

  1. Go to Settings → General Settings.
  2. Scroll to the MCP Server section.
  3. Toggle Active AI Assistant Gateway to enabled.
  4. Click Save.

[!NOTE] Screenshot — Settings → MCP Server block

Place a screenshot of the Settings page with the MCP Server section visible here. Suggested filename: settings-enable-gateway.png

Optional settings to configure at this stage:

  • Enable MCP Audit Logging — records every tool call (recommended)
  • Enable MCP Rate Limiting — throttle requests per user per minute
  • Enable OAuth 2.1 — required for Claude.ai and ChatGPT.com

Security Groups

Two security groups are created on install:

GroupXML IDPurpose
MCP Server Usergroup_ai_integration_userUsers whose Odoo session/credentials are used by AI clients. Required before creating API keys or OAuth connections.
MCP Server Administratorgroup_ai_integration_adminFull access to Settings, Model Access Rules, Activity Log, and Dashboard. base.group_system (Technical Admin) inherits this group automatically.

To assign a group:

  1. Go to Settings → Users & Companies → Users.
  2. Open the user record.
  3. In the Access Rights tab, set the appropriate MCP Server group.

Configure Model Access

Before connecting AI clients, whitelist the Odoo models they may access:

  1. Go to MCP Server → Model Access Rules.
  2. Click Create (or use Batch Configure Models for multiple models at once).
  3. Select the model, enable the desired CRUD flags, and save.

See Model Access Rules for a full reference.

Verify the Installation

Run a quick smoke test with curl:

curl -s -X POST https://your-odoo.com/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_MCP_KEY" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","clientInfo":{"name":"test"},"capabilities":{}}}' \
  | python3 -m json.tool

A successful response contains "protocolVersion": "2024-11-05" and "serverInfo".