Odoo Community Association

Ai Oca Mcp

Beta License: AGPL-3 OCA/ai Translate me on Weblate Try me on Runboat

This module exposes Odoo AI tools as an MCP (Model Context Protocol) server, allowing external AI clients such as n8n or custom agents to call Odoo functions via the standardized MCP protocol. Authentication is handled via per-client API keys.

Note: Claude Desktop requires OAuth 2.0, which is not supported directly by this module. An extension could be required.

Table of contents

Usage

  • Access in Developer mode
  • Go to AI > MCP Server
  • Create a new MCP Server and add the generic tools you want to expose
  • Click Add Key to generate a new API key for a client — the key is only shown once
  • Use the provided URL and the generated key to configure your AI client

Connecting from n8n

Use the MCP node with:

  • URL: the value shown in the URL field
  • Authentication: Bearer Token
  • Token: the generated API key

Tool limitations

Only tools of kind generic are supported. Tools requiring a record context (generic_model, record) cannot be used via MCP.

Security

Each client should have its own API key. Keys can be expired individually from the server form or from AI > MCP Server Log to audit all calls.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Dixmit

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/ai project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.