MCP Server for Claude, ChatGPT and Cursor: secure AI access to Odoo
by Aerya IT Solutions https://aerya.net$ 86.56
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Claude, ChatGPT and Cursor in your Odoo, with the rights you already set
An MCP server inside Odoo. AI assistants search, read and, where you allow it, change records. Each one signs in as a user and acts with that user's access rights, on the models you chose. Every call is logged.
Runs as the user: access rights and record rules apply
Allow list per model, changes off by default and behind a group
Audit log, rate limit and kill switch
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 17 Enterprise with the data of a fictitious company. The module works on Community and Enterprise.
protocol, OAuth flow, refused tokens, record rules, allow list, limits, browser tour
the official MCP Python SDK (OAuth and API key) and MCP Inspector
code review against Odoo's security rules, findings fixed
no warnings; Odoo core only, Community and Enterprise
What an assistant can do
Eleven tools, described to the assistant with their parameters. There is no tool that runs code, SQL, buttons or arbitrary methods.
whoamiwho the assistant acts as, which company, whether changes are allowed
list_models / describe_modelthe models you allowed and their fields, with labels
search_records / read_recordsOdoo domains, chosen fields, sorting, paging
count_records / aggregate_recordstotals and averages grouped by up to 3 fields or by month
create_record / update_recordsonly where the allow list, the settings and the user permit; many records need a confirmation
delete_recordsoff unless you switch it on for a model; always confirmed first
post_notean internal note in the chatter, marked as written by an assistant
Sign in as the user, with OAuth
Claude, ChatGPT and other assistants find the sign-in on their own (MCP authorization, OAuth 2.1 with PKCE). The user logs into Odoo and sees which application asks, where it returns and who it will act as. Allow changes is unticked: without it the connection only reads, whatever else is allowed.
Tokens are bound to your server, refresh tokens rotate on every use and a stolen one that is reused ends the sign-in.

Personal API keys for Claude Code, Cursor and scripts
Clients configured with a header get a key from My connections › New API key: read only unless the user ticks the box, with an expiry date. Creating one asks for the password again. The key is shown once; Odoo keeps only a fingerprint.

You choose the models, field by field
Nothing is available after installation. Add the models assistants may use, with separate switches for read, create, edit and delete, and, if you like, the only fields they may see. Every call still runs with the user's own access rights, record rules and multi-company rules. Status, stage, owner, company and archive fields stay read only for assistants unless you list the fields they may write; a model that holds code or templates needs your explicit confirmation before it can be changed.
System models, access rights, settings, mail internals and payment providers cannot be added; passwords, tokens, keys and files are never shown; users and companies are read only.

Every call in the audit log
Each tool call and each refused sign-in is recorded with the user, the connection, the application, the tool, the model, the records, the arguments (secrets hidden), the outcome, the time it took and the IP address. Consents, tokens, new keys, revocations and changes of the settings are recorded too. Users read their own entries, administrators those of their companies; nobody can edit or delete them.

Limits and a kill switch
Settings › MCP Server: switch the server on (it is off after installation, like self-registration and metadata documents) or off for everybody at once, allow or forbid changes, approve the applications that registered themselves, choose the sign-in methods, the token lifetimes, the calls per minute per connection, user and server, the records per call, the longest query and answer, and how long to keep the log. Only users of the group May change data can allow changes; deletions and mass updates are shown to the user first and run only on confirmation, up to 20 records per call and 100 changes an hour per user. Any connection can be revoked by its user or an administrator.

Each user sees their connections
OAuth sign-ins and API keys side by side, with the application, whether changes are allowed, the last use and the expiry date. Revoke cuts the assistant off at the next call.

A real call
The current MCP revision (2026-07-28, Streamable HTTP) and the earlier ones (2025-03-26 to 2025-11-25), so older clients connect too. The answer carries the records as structured data and as text.
Captured from the demo server; the same call by a read-only connection that tried to change a record would get HTTP 403 and a line in the audit log.
=> POST /aerya_mcp tools/call search_records
Authorization: Bearer amcp_CSuT...
MCP-Protocol-Version: 2026-07-28
{"name": "search_records",
"arguments": {"model": "crm.lead",
"domain": [["probability", ">=", 70]],
"fields": ["name", "expected_revenue"],
"order": "expected_revenue desc", "limit": 3}}
<= 200 OK
{"model": "crm.lead", "returned": 3, "total": 8,
"records": [
{"id": 24, "name": "Need 20 Desks", "expected_revenue": 60000.0},
{"id": 37, "name": "Design New Shelves", "expected_revenue": 54587.0},
{"id": 34, "name": "Need info about pricing", "expected_revenue": 28443.0}]}More screenshots

A personal API key: name and expiry date

Leads: the fields assistants may write are listed, the stage on purpose

Every connection of every user, for the administrator

Applications that registered themselves
How it works
Install the module and give the group MCP Server / User to the people who may connect an assistant.
In MCP Server › Configuration › Allowed models, add the models assistants may read, and switch on create, edit or delete where you want them.
Copy the server URL from Settings › MCP Server into Claude, ChatGPT or Cursor as a custom connector; users sign in with their Odoo login.
For Claude Code and scripts, users create a personal API key in My connections. Every call lands in the audit log.
Compatibility
| Versions | Odoo 17, 18, 19, 20 |
| Editions | Community and Enterprise; on Odoo 20 Enterprise it works beside Odoo's own MCP server (own address and models) |
| Clients | Claude (web, desktop, Claude Code), ChatGPT connectors, Cursor, MCP Inspector, the official MCP SDKs |
| Protocol | MCP 2026-07-28 and 2025-03-26 to 2025-11-25, Streamable HTTP, OAuth 2.1 (RFC 9728, 8414, 8707, 7591, 7009, PKCE) |
| Hosting | On-premise and Odoo.sh, behind https; one database per host name |
| Requires | Nothing beyond Odoo (base, web) |
| Languages | English, Spanish, Romanian, German, French |
What it does not do
No tool for code, SQL, buttons, reports or arbitrary methods. No one2many lines or nested creates (they would reach models outside the allow list); many2many fields take a list of ids.
Not included: streamed answers (SSE), resources and prompts, in-protocol confirmation (write tools are marked so the assistant asks the user first), the old HTTP+SSE transport of 2024-11-05. Domains with any/not any or paths through a model outside the allow list are refused with a message naming the case.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 17, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 4117 |
| Technical Name |
aerya_mcp_server |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module