odoo-safe-mcp
Odoo Safe MCP lets an AI safely read and, when approved, modify Odoo data through a human-in-the-loop firewall.
Search, read, count, and aggregate Odoo records with read-only tools, pagination, field selection, and grouping.
List installed models and describe model fields before attempting writes.
Execute arbitrary Odoo ORM methods through
odoo_execute_kw; reads run immediately, guarded drafts are constrained, and critical operations wait for human approval.Check a pending approval and execute it once approved via
odoo_approval_status, or list outstanding approvals viaodoo_pending_approvals.Redact secrets and mask GDPR PII, enforce multi-company locks, support dry-run simulation, and keep Odoo credentials local.
Send approval previews showing records and before-to-after values to Slack, Microsoft Teams, Telegram, or Web without sending Odoo credentials to the Guard cloud.
Provides a deterministic security firewall between AI agents and Odoo ERP (v14 to v19+), using Odoo's JSON-RPC/XML-RPC API for safe reads and guarded/approval-gated writes. Enforces traffic-light policies: GREEN read methods execute instantly; YELLOW draft creations are audited; RED destructive methods (unlink, action_post, action_confirm, button_validate, write on account.move) pause for human approval; BLACKLIST mutations on sensitive models are blocked.
Sends interactive Approve/Reject buttons to Slack for RED critical Odoo operations, enabling human-in-the-loop authorization before destructive or accounting-sensitive mutations are executed.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@odoo-safe-mcp Show me all unpaid customer invoices from last month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🛡️ Odoo Safe MCP — let AI work in Odoo, with a human in control
Connect Claude, Cursor, n8n or your own agents to Odoo 14 → 20 through a deterministic firewall:
reads run instantly, drafts are guarded, and anything critical (write, unlink, confirming orders,
posting invoices…) waits for a person on your team to approve it from their phone — seeing exactly what
will change. Your Odoo credentials never leave your machine.
Why
Odoo 20 ships its own MCP server, and there are several community ones. They connect AI to your ERP;
none of them answers "who approves what the AI does?". An API key that can read quotes can also
unlink customers or action_post invoices to the tax authority. One hallucination or one
prompt-injected email is enough.
Odoo Safe MCP is the control layer:
🟢 Reads |
|
🟡 Guarded drafts |
|
🔴 Critical | Everything else waits for a human on Slack, Microsoft Teams or Telegram, who sees the real records, before → after values and amounts — not just the agent's own explanation. |
⛔ Never | Users, groups, access rules, API keys, system parameters, settings, modules, server actions… blocked even with a paid licence. |
Related MCP server: OdooSurface MCP
How approvals work (zero-credential)
AI agent ──MCP──► odoo-safe-mcp (your machine, holds the Odoo API key)
│ 1. builds a preview from Odoo: records, before → after, amount
│ 2. sends the Guard ONLY: operation JSON + SHA-256 + preview (no URL, no user, no key)
▼
Guard cloud ──card──► approver on Slack / Teams / web
│ 3. signs the decision (Ed25519) bound to that exact SHA-256, database and licence
▼
odoo-safe-mcp verifies the signature with a pinned public key, checks the hash
matches the operation it proposed, executes ONCE with your credentials, reports the audit.A compromised cloud cannot make your machine run anything it did not propose itself. No tunnels: it works with Odoo Online (Custom plan, which enables external API access), Odoo.sh and on-premise.
Quickstart (3 minutes)
In Odoo, create a user for the AI (e.g.
ai-bot, with an email) with only the business rights it needs, and generate an API key for it (Preferences → Account Security).Run the guided setup — it checks the connection and permissions and writes the Claude Desktop / Cursor config (automatically falling back to
pip/python -m odoo_safe_mcp.cliifuvxis not installed):uvx odoo-safe-mcp init # or with pip: pip install odoo-safe-mcp && odoo-safe-mcp initRestart your AI client and ask "How many open quotations do we have?"
Manual configuration (claude_desktop_config.json or .cursor/mcp.json):
{
"mcpServers": {
"odoo": {
"command": "uvx",
"args": ["odoo-safe-mcp@3.1.1"],
"env": {
"ODOO_URL": "https://your-company.odoo.com",
"ODOO_DB": "your-database",
"ODOO_USERNAME": "ai-bot@your-company.com",
"ODOO_API_KEY": "the_bot_api_key",
"ODOO_SAFE_GUARD_KEY": "optional_pro_licence"
}
}
}
}Diagnose anything with uvx odoo-safe-mcp doctor. On Windows use http://127.0.0.1:<port> rather than
localhost for local instances (about 20× faster).
Tools exposed to the agent
Tool | What it does |
| Read records (lightweight default field profiles, 60 KB cap, long texts trimmed to save tokens) |
| Totals and counts grouped by fields ( |
| Discover models and filter fields ( |
| Any ORM method through the firewall, with an optional |
| Check a pending approval and execute it once approved |
| List pending approvals proposed from this machine across sessions |
Read tools carry readOnlyHint; write tools destructiveHint. Blocks are returned as MCP errors so
agents understand they failed.
Plans
Plan | Price | What you get |
Community | Free (MIT) | Firewalled reads, GDPR PII shield, multi-company lock, dry-run simulation ( |
Pro Guard | €49 / month | Up to 5 databases, guarded drafts with monetary thresholds, human approvals on Slack, Microsoft Teams, Telegram & Web (with 4-eyes PIN), AI Defender, audit log & CSV export, kill-switch |
Partners & Enterprise | €149 / month | Up to 25 partner / 10 multi-company databases, per-DB approval channel & threshold routing, per-DB kill-switch, financial bank/journal lock, custom Slack App ( |
Get a licence at odoosafemcp.stream.
Security & testing
Every rule is covered by an exhaustive policy matrix (~1,750 model × method × licence combinations) and a regression test for each vulnerability found during our own red-teaming.
A real testbed starts Odoo 14 → 20 in Docker with a least-privilege bot and runs the integration suite; an end-to-end suite runs the real Guard Worker locally and proves, among other things, that the Guard database never contains Odoo credentials and that signed approval links cannot be forged, reused or swapped.
Report vulnerabilities privately to soporte@odoosafemcp.stream.
Compatibility
Built for Odoo 14 → 20 (Community & Enterprise, Online / Odoo.sh / on-premise), Python 3.10 → 3.14 and
any MCP client (Claude Desktop, Cursor, Windsurf, VS Code, n8n, custom agents). name_get is emulated on
Odoo 17+, and Chatter notes use body_is_html where required.
Odoo | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
Live integration suite (real Odoo in Docker) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
End-to-end approvals with the real Guard | ✅ | — | — | — | ✅ | — | ✅ |
Last full run: 20 Oct 2026, 0 failures. Odoo 20 needs an API key with the RPC scope; aggregations are
translated to its new read_group API automatically.
License & disclaimer
MIT. Provided "as is", without warranties. Odoo Safe MCP is an auxiliary control layer: it does not replace Odoo's access rights, backups or accounting review, and the person who approves an operation is its authoriser. Liability is capped at the fees paid in the month preceding the event. Read-only operations never transit our cloud; approval previews are encrypted at rest and purged on resolution.
Not affiliated with, sponsored or endorsed by Odoo S.A. "Odoo" is a trademark of Odoo S.A.; "Slack" of Slack Technologies, LLC; "Microsoft Teams" of Microsoft Corporation.
Available Tools
9 toolsodoo_aggregateARead-onlyIdempotent
Aggregate records (read_group): totals and counts grouped by fields. Read-only.
Example: model='sale.order', groupby=['state'], fields=['amount_total:sum'].
Inputs: model (required), groupby (required), limit, domain, +1 more. Returns: result
odoo_approval_statusADestructive
Check a write that is waiting for human approval. If it has been approved, it is executed now (once) and the result is returned. If rejected or expired, nothing is changed in Odoo.
Inputs: intent_id (required). Returns: result
odoo_countCRead-onlyIdempotent
Count Odoo records matching a domain. Read-only.
Inputs: model (required), domain. Returns: result
odoo_describe_modelARead-onlyIdempotent
Describe a model's fields (label, type, relation, required, readonly). Use before writing.
Pass search (e.g. 'x_' or 'iban') to filter matching technical names or labels, or include_readonly=False
to show only writable fields.
Inputs: model (required), search, include_readonly. Returns: result
odoo_execute_kwADestructive
Safely execute any Odoo ORM method (execute_kw) through the firewall.
Reads run immediately. Draft creations (sale.order, purchase.order, crm.lead) run under the guarded-draft policy. Critical operations (write, unlink, confirm, post...) wait for a human approval on Slack/Teams and are executed here only after a signed decision.
Args: model: Odoo technical model name (e.g. 'sale.order', 'res.partner', 'account.move'). method: ORM method name (e.g. 'search_read', 'create', 'write', 'action_confirm'). args: Positional arguments (domains, record ids, value dictionaries). kwargs: Keyword arguments (e.g. {'fields': ['name'], 'limit': 10}). justification: One honest sentence on why (shown to the approver, marked as unverified).
Inputs: model (required), method (required), args, kwargs, +1 more. Returns: result
odoo_list_modelsBRead-onlyIdempotent
List installed business models (technical name and label), optionally filtered by text. Read-only.
Inputs: limit, search. Returns: result
odoo_pending_approvalsARead-onlyIdempotent
List critical Odoo changes proposed from this machine that have not been executed yet.
Useful when resuming in a new chat after a human approved an operation in Slack, Teams, Telegram, or web.
Inputs: no named parameters. Returns: result
odoo_readBRead-onlyIdempotent
Read specific Odoo records by id. Read-only.
Inputs: ids (required), model (required), fields. Returns: result
odoo_searchARead-onlyIdempotent
Search Odoo records and return their fields (search_read). Read-only.
Args: model: Technical model, e.g. 'res.partner', 'sale.order', 'account.move'. domain: Odoo domain, e.g. [["state", "=", "sale"], ["amount_total", ">", 1000]]. fields: Fields to return. Use odoo_describe_model to discover them; defaults to a lightweight profile on common models. limit: Max records (default 20, max 200). offset: Records to skip, for pagination. order: Sort, e.g. 'date_order desc'. all_fields: Set True only when you explicitly need all fields outside the lightweight default profile.
Inputs: model (required), limit, order, domain, +3 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target distinct operations: model discovery (list_models, describe_model), record reads (search, read, count, aggregate), and the approval lifecycle (pending_approvals, approval_status). Minor overlap remains since odoo_count is essentially odoo_aggregate without groupby, and odoo_execute_kw can replicate every read tool (search_read, read, read_group), so an agent could hesitate between the convenience wrapper and the generic escape hatch. Descriptions largely resolve this by framing execute_kw as the approval-gated write path and the others as read-only shortcuts.
All names share a consistent odoo_ prefix and snake_case, which makes the set predictable. The verb pattern is mostly verb_noun (describe_model, list_models, execute_kw, approval_status), but pending_approvals is a bare noun phrase and execute_kw carries an odd 'kw' suffix, slightly breaking the pattern.
Nine tools is well within the sweet spot and each earns its place: four discovery/read helpers, two aggregation helpers, two approval-lifecycle tools, and one guarded write path. Nothing feels redundant enough to remove, and the surface is not padded with near-duplicates.
The read side is complete (list models, describe schema, search, read by id, count, aggregate) and the write side is intentionally funneled through execute_kw with human approval, so core lifecycle coverage exists. Gaps are minor: there is no way to explicitly reject/cancel a pending approval, no method-discovery helper to know what execute_kw can call, and no binary/attachment handling.
Maintenance
Related MCP Connectors
Odoo ERP for AI agents: hosted OAuth endpoint, gated writes, one endpoint for every instance.
Read, write and run Odoo actions from any AI app, as each user, with approval rules per colleague.
Read-only access to a company's ERP for Claude, ChatGPT and Gemini, with OAuth and an audit trail.
Security gateway for AI agents: policy, approval, and audited execution, no secrets shared.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with Odoo ERP systems through natural language to search records, create entries, update data, and manage business operations. Supports secure authentication and configurable access controls for production environments.Mozilla Public 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to interact with Odoo ERP as the authenticated user, with tools for discovery, planning, and mutations bounded by user permissions.3650 npm2Apache 2.0
- AlicenseBqualityBmaintenanceEnables AI agents to interact with an Odoo ERP through tool calls that are allowlist-policy-checked, risk-scored and throttled before touching the ERP, covering record reads, writes, deletes and method execution. Every request and decision is recorded to a hash-chained, tamper-evident audit log with optional HMAC keys and anchor exports.19MIT
- AlicenseNot gradedqualityCmaintenancePlaces an MCP server in front of Odoo so AI agents can read live ERP data — stock by warehouse, reorder suggestions, invoices, sales, purchase and manufacturing orders — and draft proposed writes such as purchase orders, stock transfers, manufacturing orders and vendor bills. Every change is queued for human approval before it is written to the ERP, with per-client scopes, warehouse restrictions, rate limits and a full audit log of each call and decision.MIT