# Odoo Safe MCP Enterprise — Complete Technical & Product Reference > Website: https://odoosafemcp.stream > Package: `odoo-safe-mcp` on PyPI (https://pypi.org/project/odoo-safe-mcp/) > Repository: https://github.com/makelele29/odoo-safe-mcp > Supported Odoo Versions: Odoo 14, 15, 16, 17, 18, 19, 20 (Community & Enterprise; Odoo Online Custom plan, Odoo.sh, On-Premise) > Last Updated: 2026-11-25 (v3.1.0) > Supported AI Clients: Claude Desktop, Claude Code, Cursor, Windsurf, ChatGPT (MCP), n8n, LangChain, custom Python MCP agents. --- ## 1. Problem Statement: Why Raw MCP Servers for Odoo Are Dangerous Standard Odoo XML-RPC / JSON-RPC connectors and generic MCP servers grant the AI agent the exact same permissions as the authenticated Odoo user. A single hallucination, prompt injection, or misunderstood instruction can cause an AI agent to: 1. Permanently delete customer records (`res.partner.unlink`), products, or sales orders. 2. Post and Fiscalize draft invoices (`account.move.action_post`) with wrong tax rates or amounts, which cannot be legally deleted once posted under European tax regulations (VeriFactu / TicketBAI / SII / GoBD / Factur-X). 3. Modify x2many invoice lines or inject `default_state='sale'` via RPC context bypasses. 4. Leak sensitive ERP fields (API keys, password hashes, OAuth tokens, IAP credits) into the LLM context window. **Odoo Safe MCP** solves this by placing a deterministic policy engine + cryptographic Human-in-the-Loop approval gateway between the AI agent and Odoo ERP. --- ## 2. How Odoo Safe MCP Works (The 4 Security Levels) ### Level 1: GREEN (Safe Local Read-Only) - **Operations:** `search`, `read`, `search_read`, `search_count`, `read_group`, `fields_get`, `name_get`, `name_search`, `default_get`. - **Execution:** Runs 100% locally between your machine and your Odoo server. Zero data is sent to the cloud. - **Protection:** Secret-bearing models (`res.config.settings`, `res.users.apikeys`, `auth_totp.wizard`, `iap.account`) are blocked, and sensitive fields (`password`, `api_key`, `token`, `secret`, `totp_secret`) are automatically redacted before reaching the LLM. ### Level 2: YELLOW (Guarded Commercial Drafts) - **Operations:** `create` and safe `write` on commercial models (`sale.order`, `purchase.order`, `crm.lead`, `project.task`, `helpdesk.ticket`). - **Execution:** Enforces `state = 'draft'` deterministically, strips dangerous context overrides (`default_*`), blocks nested x2many delete/replace commands (`(2, id)`, `(3, id)`, `(5,)`), and posts an automatic audit note in the Odoo Chatter (`mail.mt_note`) attributing the action and justification to the AI agent. ### Level 3: RED (Human-in-the-Loop 1-Click Approval in Slack, Teams & Telegram) - **Operations:** Financial Models (`account.move`, `account.payment`, `account.bank.statement`), workflow confirmations (`action_confirm`, `action_post`, `button_validate`), any `unlink` (deletion), drafts exceeding `draft_max_amount`, and batch writes. - **Execution (v3.1 Zero-Credential Flow):** 1. The local MCP server computes a canonical SHA-256 fingerprint of `(odoo_db, model, method, args, kwargs)` and builds a human-readable diff preview (showing records affected, before → after values, and monetary amounts). 2. Only the SHA-256 hash and preview are sent to the Guard Worker (your Odoo API key never leaves your computer). 3. **AI Defender** analyzes the request for prompt injection or accounting anomalies. 4. An interactive approval card is delivered to **Slack** (Block Kit), **Microsoft Teams** (Adaptive Card v1.4), and/or **Telegram Bot** (inline Approve/Reject buttons). 5. When a supervisor clicks **Approve**, the Guard returns an **Ed25519-signed decision token** bound to that exact SHA-256 hash, database, license, and expiry window. 6. The local MCP client verifies the Ed25519 signature against a pinned public key and executes the RPC call locally against Odoo once, logging the approver's identity in the Odoo Chatter. ### Level 4: BLACK (Strictly Forbidden) - **Operations:** `sudo`, arbitrary Python code execution (`ir.actions.server`, `ir.cron`), module installation/uninstallation (`ir.module.module`), user permission changes (`res.users`, `res.groups`), and credential tables. --- ## 3. Curated MCP Tools Exposed to the AI Agent - `odoo_search` — Search and read Odoo records with lightweight default field profiles, 60 KB cap, multi-company lock, and GDPR PII redaction (`ODOO_PII_MODE`). - `odoo_read` — Fetch specific record IDs and fields safely (`bin_size` context by default). - `odoo_count` — Count matching records for fast reporting. - `odoo_aggregate` — Perform grouped aggregations (`read_group` / `formatted_read_group` on Odoo 20) for financial, sales, and inventory analytics. - `odoo_describe_model` — Inspect and fuzzy-search fields (`search='x_'`) of any Odoo model. - `odoo_list_models` — Discover installed Odoo models. - `odoo_execute_kw` — Execute write/create/workflow actions governed by the Green/Yellow/Red/Black firewall policy. - `odoo_approval_status` — Poll or execute a paused Red-level operation once approved in Slack, Microsoft Teams, Telegram, or web. - `odoo_pending_approvals` — List pending approvals created on this machine across new chat sessions. --- ## 4. Installation & Quickstart ```bash # Run interactive setup wizard for Claude Desktop / Cursor: uvx odoo-safe-mcp init # Verify Odoo connectivity, user permissions, and Guard license: uvx odoo-safe-mcp doctor ``` --- ## 5. Plans & B2B Licensing | Feature | Community (Free) | Pro Guard (49 €/mo) | Partners & Enterprise (149 €/mo) | | :--- | :--- | :--- | :--- | | **Price** | 0 € / month (MIT) | 49 € / month | 149 € / month | | **Odoo Databases** | 1 DB (Read-Only + Dry-Run) | Up to 5 DBs (Prod + Staging) | Up to 10 DBs (Multi-company) | | **Safe Read Queries + PII Shield** | Unlimited | Unlimited | Unlimited | | **Guarded Drafts & Thresholds** | Simulated only | Included | Included | | **Human Approvals** | — | Slack, Teams & Telegram | Slack, Teams & Telegram + Financial Locks | | **AI Defender (Fraud Detection)** | — | Included | Included | | **Global Kill-Switch & Audit CSV** | — | Included | Included | | **Refund Guarantee** | — | 14-day full refund | 14-day full refund | Cloud Guard plans offer a 14-day free trial and include automatic B2B invoicing via Polar.sh (Merchant of Record), cancellable in 1 click anytime. For Odoo 20 native `/mcp` comparisons, see https://odoosafemcp.stream/en/odoo-20-native-mcp-vs-odoo-safe-mcp/.