SuperAPI AI Directory

odoo19-mcp-server

Odoo 19 ERP via JSON-RPC: CRUD operations, model inspection and user/company context, with a read-only mode and delete confirmation.

Open website

About this tool

odoo19-mcp-server is an Odoo 19 MCP server built with FastMCP, connecting through Odoo 19's JSON-2 API. Its goal is to enable MCP-compatible clients (such as various AI programming assistants) to access and operate Odoo data via tool calls.

Purpose and Positioning The server is developed based on the Odoo 19 JSON-2 API and depends on odoo-client-lib 2.0.1 and FastMCP (version requirement >=4.1.0,<5.0.0). It encapsulates Odoo's model operations, context information, and more as MCP tools and resources, for the LLM to call when needed.

Main Capabilities

  • Resources provide dynamic context, allowing the LLM to obtain background information at the start of a session.
  • Tools provide operations called on demand, including CRUD operations, model inspection, and user/company context, etc.
  • Supports multi-user (MCP_MULTIUSER): each client authenticates with its own Odoo API key, and permissions, operation attribution, and audit records all correspond to the real user, rather than all being tied to a single service account.
  • Supports read-only mode (READONLY_MODE); when enabled, write tools are disabled at registration time.
  • Delete operations have built-in secondary confirmation (confirm mechanism).
  • Attachment-related capabilities: add_attachment supports file_path mode and base64_data mode; cross-machine uploads can be done through prepare_upload and the /upload endpoint.
  • The model blacklist blocks read and write access to the two sensitive models ir.config_parameter and res.users.apikeys by default, and can be lifted via MCP_ALLOW_SENSITIVE_MODELS.

Usage The server supports three MCP transport modes: stdio and HTTP/SSE. In stdio mode, the client (such as Claude Desktop) starts the MCP Server as a subprocess, using the local CPU/RAM; in HTTP/SSE mode, the server runs independently in the cloud or on a remote host, and multiple clients can connect to the same Server simultaneously. The project provides a docker-compose.example.yml template. In multi-user mode, each user generates their own API key in Odoo "Preferences → Account Security" and uses it directly as the Bearer token for the HTTP/SSE connection; after verification, the server establishes a dedicated connection bound to that API key, and permissions and auditing are handled by Odoo's native mechanisms. A pure multi-user deployment may even omit setting ODOO_API_KEY. Regarding security mechanisms, MCP_AUTH_TOKEN can be set to enable Bearer Token authentication; HTTP mode has no authentication by default, and the documentation explicitly reminds users to configure MCP_AUTH_TOKEN or multi-user mode together with TLS. File reading is restricted to UPLOAD_DIR (default /shared/uploads); cross-machine uploads go through the /upload endpoint and use a short-lived token derived via HMAC. delete_record requires the LLM to first call with confirm=False to obtain a confirmation prompt, and after the user agrees, execute with confirm=True. execute_method is a universal entry point; ORM unlink will be intercepted and directed to the confirmation flow of delete_record, but some business methods are not guarded, so it is recommended to use the API key of a low-privilege Odoo user. HTTP/SSE mode provides a /health endpoint for liveness checks.

Applicable Scenarios Suitable for scenarios that require AI clients to access Odoo 19 ERP data, such as querying records, updating records, executing model operations, uploading attachments, and deployments where a team shares the same MCP Server.

Limitations

  • Depends on Odoo 19's JSON-2 API.
  • HTTP mode has no authentication by default; authentication and TLS must be configured yourself.
  • execute_method cannot enumerate all business methods that write data, and the security boundary ultimately depends on a low-privilege API key.
  • The model blacklist is only an extra layer of insurance, not access control.
  • UPLOAD_DIR is not automatically cleaned up and needs to be used with regular cleanup or a temporary volume.
  • Single file size is limited by UPLOAD_MAX_BYTES (default 25 MiB). Information such as specific pricing and billing models is not provided in the materials.