Skip to main content

🛡️ 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.

PyPI Odoo License: MIT


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 search_read, read, read_group, fields_get… run locally and instantly. Secrets (API keys, portal access_token, integration passwords) are redacted even if the agent does not ask for specific fields, and ODOO_PII_MODE=mask|strict masks GDPR PII (vat, email, phone, IBAN, wage).
🟡 Guarded drafts create on sale.order, purchase.order, crm.lead is forced to draft, stripped of tracking-silencing context and of x2many commands that could touch other records, and stamped in the Chatter. Optionally escalate drafts above ODOO_DRAFT_MAX_AMOUNT to human approval.
🔴 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.

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)

  1. 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).

  2. 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.cli if uvx is not installed):

    uvx odoo-safe-mcp init
    # or with pip:
    pip install odoo-safe-mcp && odoo-safe-mcp init
    
  3. Restart 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
odoo_search, odoo_read, odoo_count Read records (lightweight default field profiles, 60 KB cap, long texts trimmed to save tokens)
odoo_aggregate Totals and counts grouped by fields (read_group)
odoo_describe_model, odoo_list_models Discover models and filter fields (search='x_') before writing
odoo_execute_kw Any ORM method through the firewall, with an optional justification for the approver
odoo_approval_status Check a pending approval and execute it once approved
odoo_pending_approvals 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 (ODOO_DRY_RUN=true)
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 (Signing Secret)

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.

Metadata

Release files for odoo-safe-mcp 3.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for odoo-safe-mcp 3.1.2
File Size Uploaded Provenance Actions
odoo_safe_mcp-3.1.2.tar.gz 65.7 kB With provenance Details for odoo_safe_mcp-3.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for odoo-safe-mcp 3.1.2
File Interpreter ABI Platform Actions
odoo_safe_mcp-3.1.2-py3-none-any.whl Python 3 none any Details for odoo_safe_mcp-3.1.2-py3-none-any.whl

Total release size: 113.5 kB

Release files / odoo_safe_mcp-3.1.2.tar.gz

Download URL odoo_safe_mcp-3.1.2.tar.gz
Size 65.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c5eb24dbd540f29361cb957a36e15e04510a5d405fa664af3752f86a58d1d859
BLAKE2b-256 checksum
How to use checksums
b1012a379eeeb7c720b184818c93fb3cbaf5416292739611fae69ee9a342b5aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / odoo_safe_mcp-3.1.2-py3-none-any.whl

Download URL odoo_safe_mcp-3.1.2-py3-none-any.whl
Size 47.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0d72114b00df9eb3e5668d74cd67ce2abc8dac015846360df406272771fa5b2
BLAKE2b-256 checksum
How to use checksums
6e4b2ec9e2aab5b70fbf09beb2dec1ec264b8d69086a6a4b1664174e891ccca4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for odoo-safe-mcp 3.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for odoo_safe_mcp-3.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page