odoo-preview-mcp
Enables Claude to search, read, aggregate, report on, create, update, and perform limited workflow actions on Odoo records, plus accounting tasks such as bank-line matching and file/note handling, using the signed-in user's Odoo permissions with preview and approval for changes.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
odoo-preview-mcp
An MCP server that lets Claude read and change your Odoo data as the signed-in person, with a preview and an approval before every change.
You ask Claude things like "show me open opportunities over 50,000 by stage", "create a quotation for Acme with 3 licences" or "match this bank line with the Northwind bill". Claude does the work in your real Odoo, inside that person's own Odoo permissions.
Safety guarantees
All company data lives in Odoo, so the server is built safety-first:
Guarantee | How |
Claude acts as the person, never through a shared admin key | Each person signs in with their own Odoo API key. Odoo's normal access rights and record rules apply to every call, and Odoo records every change under that person's name. Claude can do only what that person can do in Odoo, so give people normal user accounts, not admin accounts. |
A human approves every change | Each change is previewed first: current value → new value, with the names behind ids. To apply it, Claude must send back a token signed for that exact preview. The token works once, expires after an hour, and stops working if the records changed after the preview. Change tools are marked destructive, so Claude asks before it runs them. |
Almost nothing can be deleted | One delete tool, for three kinds of records only: draft invoices and bills that never had a number, cancelled quotations, and archived leads. The server checks each record with Odoo before the approval and again just before it deletes. Every other delete path is refused. |
Field names are checked against live Odoo | Every field name, choice value and record id is checked against the live Odoo database before anything is sent. Unknown names are refused with a "did you mean…?" hint, so a made-up field never reaches Odoo. |
Read-only unless you switch it on | The default mode shows only search, read and report tools. Change tools do not appear until you set |
Workflows stay intact | Status fields ( |
Secrets stay secret | Passwords, API keys, tokens and system settings are never readable. Stored Odoo keys are encrypted. |
Audit trail | The server logs every call with ids and field names, never values. |
The full list of protections and the threat model are in docs/SECURITY.md.
Related MCP server: Odoo App
How it compares
Two other open-source Odoo MCP servers are well known, and both have been public much longer than this one: erpipe-org/mcp-odoo and ivnvxd/mcp-server-odoo. Both are good choices. They make different trade-offs.
odoo-preview-mcp | erpipe-org/mcp-odoo | ivnvxd/mcp-server-odoo | |
Whose Odoo account Claude uses | Company mode: each person signs in with their own key on one shared server. Local mode: your own key. | The one login in the server's settings (per Odoo instance). Sign-in per person is part of their hosted product, ERPipe. | The one login in the server's settings. |
Setup inside Odoo | None, only an API key | None | For production, the |
Before a change | Preview, then a token signed for that exact change | Preview and validation, then an approval token, and writes must be switched on | Odoo's permissions, plus the per-model permissions set in the Odoo module |
Deleting | Only never-numbered drafts, cancelled quotations and archived leads | Deletes go through the same approval flow as other writes | A delete tool, limited by the module's per-model delete permission |
Odoo versions | 18 and later (JSON-2 on 19+, legacy JSON-RPC before). Most testing on 19. | 16 to 19, tested against real Odoo 16–19 in Docker | 16 and later with the module, any version in YOLO mode |
What they do well. erpipe-org/mcp-odoo covers more Odoo versions, connects to several Odoo databases from one server, and has diagnostics, upgrade helpers and field-level allow and deny lists. ivnvxd/mcp-server-odoo lets the Odoo administrator choose, inside Odoo, which models the AI may read, change or delete, and it can limit a session to some companies in a multi-company database.
Where this project is different.
One server for the whole company, with each person's own sign-in. You deploy once. Each person connects from Claude and enters their own Odoo login and API key. Nobody shares a key, and an admin key is never needed.
Every change is previewed and approved. Claude cannot change data without a preview that the person saw, and the approval token works only for that exact change.
Deleting is almost impossible by design, not only switched off by a setting.
Accounting work that goes past create and update: matching bank lines with bills and invoices (also in another currency and in part), Odoo's official reports (P&L, balance sheet, ledgers, ageing, tax report), moving the tax lock date, and correcting a posted vendor bill step by step.
Files and fields: a private upload page for files from the person's computer, and custom fields placed on a form with a "show only when" rule, all with the same preview and approval.
If you need many Odoo versions or databases from one server, or control from inside Odoo, look at the other two.
Quick start (local, about 5 minutes)
This runs the server on your own computer for one person, with your own Odoo key.
You need: Python 3.11 or later, uv, and an Odoo database where the external API is allowed. On Odoo Online, the external API needs the Custom plan.
Create an Odoo API key. In Odoo: your profile picture → My Preferences → Security tab → Create API Key. If Odoo asks for a scope, choose RPC. Copy the key. (Details: docs/ODOO_SETUP.md.)
Test the connection.
ODOO_URL=https://mycompany.odoo.com ODOO_LOGIN=you@mycompany.com ODOO_API_KEY=your-key uvx odoo-preview-mcp checkIt prints your Odoo user, the Odoo version and the active safety settings.
Add it to Claude. For Claude Code:
claude mcp add odoo -e ODOO_URL=https://mycompany.odoo.com -e ODOO_LOGIN=you@mycompany.com -e ODOO_API_KEY=your-key -- uvx odoo-preview-mcpFor Claude Desktop, open Settings → Developer → Edit Config and add:
{ "mcpServers": { "odoo": { "command": "uvx", "args": ["odoo-preview-mcp"], "env": { "ODOO_URL": "https://mycompany.odoo.com", "ODOO_LOGIN": "you@mycompany.com", "ODOO_API_KEY": "your-key" } } } }Restart Claude Desktop. Then ask: "Who am I in Odoo?"
The server starts read-only. To let Claude make changes (always with a preview and an approval), add
MCP_ACCESS_MODE=read_write. If you use pipx instead of uv, run pipx install odoo-preview-mcp and use the
command odoo-preview-mcp in place of uvx odoo-preview-mcp.
For a whole company
Run the server once with HTTPS, and each person connects from Claude with their own Odoo login and API key:
Prepare Odoo: docs/ODOO_SETUP.md.
Deploy with Docker on any small server (docs/DEPLOY.md), or on Vercel with a Redis database (docs/DEPLOY_VERCEL.md).
In Claude: Settings → Connectors → Add custom connector, with your server's URL followed by
/mcp. Each person clicks Connect and signs in on the server's page.
What Claude can do
Tool | What it does | Mode |
| Who am I, what is allowed, and per area of Odoo what Claude can and cannot do | always |
| Find the model for a concept ("invoice" → | always |
| Find and read records, and turn a name into the right record | always |
| Totals and breakdowns computed by Odoo (revenue by month, pipeline by stage) | always |
| Odoo's official accounting reports for a period, with a link to open them | always |
| The buttons on a model's screens and whether Claude may press them | always |
| Read a file that is already in Odoo (a bill's PDF, a contract) | always |
| The items Odoo's bank screen would offer for one bank line | always |
| Create records (with order lines and so on) | read_write |
| Change field values | read_write |
| Press a workflow button (confirm an order, validate) | read_write |
| Delete a never-numbered draft invoice or bill, a cancelled quotation or an archived lead | read_write |
| Log an internal note in the chatter (nobody is e-mailed) | read_write |
| Add or remove followers | read_write |
| Match a bank line with bills or invoices, in any currency, and undo a match | read_write |
| Move the tax return lock date forward | read_write |
| Correct a posted vendor bill step by step | read_write |
| A private one-hour page where the person uploads files (up to 4 MB each) into Odoo | read_write, company mode |
| Add a custom field (named | read_write + |
| Message a record's followers (this e-mails customers) | read_write + |
The server uses Odoo's generic model API, so it covers every installed app (CRM, Sales, Invoicing, Inventory, Purchase, Project, HR, Helpdesk, Studio models), always inside the person's permissions.
Configuration
All settings are environment variables. .env.example explains each one. The main ones:
Variable | Default | Meaning |
| (required) | Your Odoo address, e.g. |
| (empty) | Your Odoo login and API key. Local mode only; in company mode each person signs in. |
| (empty) | Database name. Needed only with several databases or the legacy API. |
|
|
|
|
|
|
|
| Allow archiving and unarchiving |
|
| Allow cancel, reset to draft and mark lost buttons |
|
| Allow anything that e-mails or messages people |
|
| Allow adding custom fields and placing them on forms (needs Odoo admin rights) |
| (all business models) | Allow changes only on these models, e.g. |
| (none) | Extra limits; patterns such as |
|
| Most records one create or edit may touch (hard limit 100) |
|
| Most records one button, message or delete may touch (hard limit 100) |
|
| How long an approved preview stays usable (hard limit 24 hours) |
|
| Name shown on the sign-in and upload pages and in Claude, e.g. |
|
| Who people should ask when something is switched off |
|
| Time zone used when a person's Odoo profile has none |
| (empty) | Company mode: the public HTTPS address of this server |
| (empty) | Company mode: 32+ random characters; encrypts stored keys and signs tokens |
| (empty) | Company mode: only these logins, or logins on these e-mail domains, may connect |
| (empty) | Company mode on serverless hosting: a Redis database for shared state |
Contributing
Bug reports, ideas and pull requests are welcome. Please read CONTRIBUTING.md first. In short:
Open an issue before a large change, so we can agree on the approach.
Keep the safety guarantees above. A change that weakens one will not be merged.
Add tests.
pytestruns the offline suite in under a minute, with no Odoo needed.Never put real customer data, API keys or company names in code, tests or issues.
Please report security problems privately, as SECURITY.md explains, not in a public issue.
Development
git clone https://github.com/Sahajta-AI/odoo-preview-mcp && cd odoo-preview-mcp
uv venv && uv pip install -e ".[dev]"
.venv/bin/pytest # offline tests, no Odoo needed
.venv/bin/pytest -m integration # against a throwaway Odoo, see tests/test_live_odoo.pyThe first version was tested end to end against Odoo 18.0, 19.0 and 20.0 (Community, with demo data). Later features (bank matching, custom fields, upload links) were tested against Odoo 19 only. Built on the official MCP Python SDK.
License
Apache License 2.0. Copyright 2026 Sahajta AI Solution Private Limited. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read, write and run Odoo actions from any AI app, approvals per colleague, custom code reading.
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Claude on your company Calendar, Drive and Notion: admins grant each action, every call is logged.
Let AI agents work in your own signed-in Chrome, with approvals and verified results.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceGives Claude full read/write access to the Indexed FP&A portal's data, enabling everything a person can do manually on the portal through conversation.-
- AlicenseNot gradedqualityBmaintenanceConnects Claude Desktop or Claude Code to a company's Odoo instance with a one-click extension or installer, automatically negotiating the right API (web session, JSON-2, or JSON-RPC) for any Odoo version. Exposes tools that let Claude search, read, count, group, create, update, delete, and link Odoo records as the logged-in user, with an optional read-only mode.MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to research HubSpot accounts, draft property updates, notes, and owner tasks, and request a human decision tied to the exact proposed change. Approved changes can be applied only after a signed click, with guardrails, retries, and an audit trail.MIT
- AlicenseAqualityBmaintenanceLets Claude or any AI agent read and send messages as the signed-in user, manage spaces and members, handle attachments, and apply read-only, allowlist, and file-folder safety controls.19ISC