What Claude & ChatGPT Connector (MCP) does
A remote MCP server inside Odoo with its own OAuth 2.1 sign-in. Users connect from Claude.ai, ChatGPT, Microsoft Copilot, Claude Code or Cursor with their Odoo login and ask about any model you allow, find cited passages in attached documents and prepare changes that are simulated, approved, journaled and undoable. Every call runs with the user's own access rights, passes a privacy gateway and is traced.
Connect Claude.ai, ChatGPT, Microsoft Copilot, Claude Code and Cursor to Odoo through one OAuth 2.1 MCP server: search and total any model you allow, cited document search, prompt templates, changes simulated before saving, manager approvals, one-click undo, privacy redaction and an audit trace.
- OAuth 2.1 sign-in
- Claude connector
- ChatGPT connector
- Copilot
- Cursor
- Any-model search
- Cited documents
- Simulated changes
- Approvals
- Undo
- Audit trace
Features
Any-model search, governed
list_models, describe_model, search_records and aggregate_records work on every model you whitelist, with domains, chosen fields, sorting, paging, grouping by day to year and sums or averages computed in Odoo.
Document search with citations
Ranked passages from PDF, Word, Excel and text attachments of allowed records, each with the document and the record it belongs to. Only files the user may open are searched.
Simulated changes, approvals, undo
Create (with lines), update, archive or run an allowed business action: simulated in a rolled-back transaction, approved by policy, executed once, written to a change journal and undoable while unchanged.
Prompts and company instructions
Ready-made prompt templates appear as commands in the chat app; your own instructions (vocabulary, rules, what to double-check) are sent to every assistant when it connects.
Write windows and tool groups
Keep a connection read-only and open writes for a few hours when needed; it closes by itself. Limit any tool to selected user groups.
OAuth 2.1 authorization server
Discovery metadata, dynamic client registration with allow-list, client-id metadata documents, PKCE S256, refresh token rotation with reuse detection, revocation, resource indicators, issuer identification. Tokens and codes are hashed at rest.
Guides for five chat apps
Exact steps for Claude (web, desktop, mobile), ChatGPT, Microsoft Copilot Studio and 365 Copilot, Claude Code and Cursor, with copyable URLs and a connection test that calls your public address.
Interactive cards
Record, table, chart and approval cards served as MCP Apps resources from the module itself, no CDN. Approve or reject from the chat where the host allows actions; plain text everywhere else.
Scopes mapped to tool groups
Read, write and approve scopes decide which tools a connection sees and may call. A token without the scope gets a standard step-up challenge, and the per-key allowed tools still apply on top.
API keys bound to a user
Hashed secret shown once, public prefix, expiry, allowed tools, privacy profile and a rate limit per key for clients without OAuth. A key never does more than its user can.
Focused business answers
Overdue invoices, customer credit, sales by month, sales order status, delivery delay, stock shortage, late purchases, pending approvals and context packets, each with a clear question and a structured answer.
Prepare, approve, execute once
A purchase order is built in a rolled-back savepoint and previewed with real totals. A deterministic risk table decides what needs a manager; approved plans run exactly as stored and expire.
Privacy gateway
Fields are classified as public, internal, confidential, personal, financial, security or credential. The profile of the connection decides what is returned; the rest is redacted and counted, cards included.
Audit, trace and dashboard
Every request and every sign-in event logged with redacted arguments and latency; traces of the records inspected per step; a dashboard with connected clients, users, active tokens and the last call.
How it works, step by step
01Run the setup wizard
The wizard checks that the public address uses HTTPS, counts the users allowed to connect and the enabled tools, sets the sign-in policy and opens the connect guide for Claude, ChatGPT, Copilot, Claude Code or Cursor.

02Choose which models the AI may use
Model Access is a whitelist: a model without a rule is invisible to the assistant. Common business models start read-only. Allow create, update, archive or business actions such as action_confirm per model, add a record filter, ask for approval on every change, or limit a rule to one connection.

03Add the server in the chat app
One command adds the server; /mcp offers Authenticate and the app discovers the sign-in flow by itself. Claude.ai, ChatGPT and Copilot do the same from their connector settings: paste the server URL, sign in.

04The user signs in to Odoo and approves the scopes
The browser opens the Odoo login, then a consent screen that names the app and lists the tools behind each scope. Every call then runs with that user's own access rights.
05The client sees tools, prompts and cards
Here in the MCP Inspector, the official MCP test client: 18 tools, 4 ready-made prompts and interactive cards. list_models tells the assistant which models it may use and what it may do on each.
06Ask about any allowed model
search_records takes an Odoo domain, the fields to return and a sort order. The answer comes back as text for the model and as a table card with links into Odoo. Fields hidden by the privacy profile can be neither read nor used in a filter.
07Totals computed by Odoo, drawn as a chart
aggregate_records groups and sums in the database (by customer, by month, by salesperson) instead of pulling thousands of rows into the chat. One grouping with one measure also returns a chart card.
08Answers from your documents, with citations
search_documents ranks passages from PDF, Word, Excel and text files attached to records the user may open, and returns the document and the record for each passage, so the assistant can quote its source.
09Ready-made prompts
Prompt templates such as Customer 360, Weekly sales brief or Overdue follow-up show up as commands in the chat app (slash commands in Claude Code). Write your own in Odoo, with arguments and group visibility.
10Every change is simulated first
prepare_record_change runs the create, update, archive or business action in a transaction that is rolled back, and shows the real outcome: computed totals, taxes, names, states or the validation error. Nothing is saved and no document number is used.
11A manager approves with the changes in front of him
When the risk policy asks for it, confirming the plan creates an approval in Odoo with the simulated values, field by field. Approved plans run exactly once, as stored, with the rights of the user who asked.
12Change journal with one-click undo
Every executed change lands in the Change Journal. Created, updated and archived records can be undone while nobody edited them since; a newer edit blocks the undo, so newer work is never overwritten.
Questions about Claude & ChatGPT Connector (MCP)
Can the assistant read any table in my database?
Only the models you list under Model Access, and inside them only the records and fields the signed-in user may read and the privacy profile allows. Security, configuration and technical models can never be added. New installs start with common business models read-only.
Is the undo safe?
Undo restores the previous values of updated records, removes or archives created ones and unarchives archived ones, but only while nobody edited them since. Business actions such as confirming an order or posting an invoice are journaled but never claimed as undoable.
Does it work next to the MCP server of Odoo Enterprise?
Yes. It lives on its own paths (/mcp_hub and its own OAuth endpoints), so both can be connected at the same time. This module adds what the standard server does not have: refresh tokens, model rules, approvals, simulation, undo, privacy profiles, prompts and an audit trail stored in Odoo.
What do I need before connecting a hosted chat app?
A public https address for your Odoo (set and freeze web.base.url), users in the MCP Hub User group, and OAuth sign-in enabled. The connection test tells you what is missing. Custom connectors in the chat apps may need a paid plan or a workspace setting on their side.
Does the assistant get more rights than the user who signed in?
No. Tools run through the normal Odoo access rights and record rules of that user, in their company, further narrowed by the scopes granted on the consent screen. Removing a group or revoking the connection takes effect immediately.
Which chat apps render the cards?
Hosts that implement the MCP Apps extension render the card next to the answer; others simply use the complete structured text that every tool returns anyway. Approve and reject buttons only appear where the host lets a card call tools.
Can I restrict which apps may sign in?
Yes. Turn dynamic registration off and register clients by hand, or keep it on with an allow-list of redirect hosts. Apps that identify with a client-id metadata document can be limited to an allow-list of hosts as well. Any client can be deactivated at any time.
Where are secrets and tokens stored?
Only SHA-256 hashes of API keys, client secrets, authorization codes, access tokens and refresh tokens are stored. Refresh tokens rotate on every use; a replayed one revokes the whole session.
What if an assistant asks for something risky?
Changes are prepared and simulated first. Confirming the plan asks a manager for approval according to a server-side risk table; the assistant cannot lower the risk or skip the approval. Managers decide in Odoo or from the approval card, and the plan runs once.
Can I still use API keys?
Yes. API keys keep working for clients without OAuth and for automation; they share the same tools, privacy profiles, rate limits and audit log.
Does it need Enterprise?
No. It depends on Sales, Purchase, Inventory and Invoicing from the Community edition and lives on its own paths, next to any other MCP endpoint.
Is my data sent to a third party?
The module itself calls no external service, except fetching a client-id metadata document from the chat app when it signs in that way. What your chat app and model do with the answers is outside the module, which is why the privacy profile matters.
