Odoo MCP Server
The free Odoo MCP server with OAuth 2.1 built in, and an Undo button. Connect Claude, ChatGPT, Cursor, VS Code Copilot, Gemini CLI and n8n to Odoo over the Model Context Protocol. No pip installs, works on Odoo.sh out of the box.
What This Module Does
A full MCP server for Odoo: the protocol layer, OAuth 2.1, a governed tool registry and a reversible write engine, all in one free module. No paid add-on is needed just to authenticate.
Key Features
Two Transports, Three Revisions
Streamable HTTP and JSON-RPC 2.0 at /mcp, negotiated per request, plus the legacy /mcp/sse transport for older clients.
OAuth 2.1, Included
Dynamic Client Registration, PKCE S256 and refresh rotation, the part most MCP servers charge extra for.
Bearer Keys That Rotate
Hashed API keys with a rotation grace window, so a rolled key never breaks a running integration.
One Tool Registry
The same tool implementations serve external MCP clients, the in-Odoo Copilot and scheduled agents alike.
A Real Read Catalogue
Search, read, read_group totals, chatter, PDF reports, and gated CSV or XLSX export, plus validated wrappers for sales, CRM, invoicing, inventory and project.
Governance on Every Call
Model, field and domain scoping, PII fields redacted by default, and daily row and byte egress budgets.
Writes You Can Undo
Every write runs inside a savepoint, produces a field-level diff, and can be undone from an AI Changes screen.
Untrusted Content Cannot Commit
Content is classified where it enters context, so injected instructions get forced to human approval.
Audit Log and Rate Limits
Every call logged, token-bucket rate limiting with no Redis, and an in-Odoo Playground with a client-config generator.
Zero External Dependencies
stdlib plus what Odoo already ships. No pip installs, and it runs on Odoo.sh out of the box.
In-Odoo Playground
Run any tool by hand from inside Odoo and copy a ready-made client config for Claude Desktop, Cursor or VS Code.
No-Code Tools
Publish any Odoo server action as an MCP tool from the UI, with an input schema and a risk level. No Python.
Prompts and Pinned Resources
Reusable prompt templates that appear as slash commands in Claude, and a stable odoo:// name for a file or field a client can fetch on demand.
How It Works
Connect
Point Claude, ChatGPT, Cursor or any MCP client at your Odoo URL, over OAuth 2.1 or a bearer key.
Call Tools
The client lists and calls tools. Every read is policy-checked, every write becomes a previewable change-set.
Review or Undo
Check the audit log any time, or undo an AI write in one click from the AI Changes screen.
See It In Action
Pairs With
Odoo AI Copilot and Studio (ai_suite_pyb), the paid companion, adds an in-Odoo Copilot chat, cited RAG search, a dashboard and page builder, cost metering, a health report and an eval harness on top of this same free tool registry, engine and audit trail - nothing here is disabled or crippled to push the upgrade.
Free vs Paid: What Odoo AI Copilot and Studio ai_suite_pyb Adds
| Feature | Free mcp_server_pyb |
Paid ai_suite_pyb |
|---|---|---|
| Connect Claude, ChatGPT, Cursor and any MCP client | ||
| OAuth 2.1, bearer keys with rotation, IP allowlist | ||
| 37 core tools: search, read, write, sales, CRM, invoicing, inventory, project | ||
| Change-sets: every write previews as a diff and undoes with one click | ||
| Access policies, audit log, rate limiting, egress budgets, trust and taint | ||
| No-code tools, prompt templates, pinned resources, background job queue | ||
| Fine-grained policy scoping - field allow/deny, row-level domain filter, per-tool lists | ||
| In-Odoo Copilot chat - systray, full page, per-record Ask AI | ||
| AI agents and topics, plus MCP mode - chat with no API key at all | ||
| Agents in Discuss - @-mention or DM one like a colleague | ||
| Cited RAG search over attachments, chatter, Knowledge and your fields | ||
| Document read, extract and OCR for scans and photos | ||
| Dashboard builder, inline widget editor, drill-down, public share pages, AI-written pages | ||
| Analytics tools - kpi, topn, pivot, timeseries, funnel, cohort | ||
| Module scaffolds, install/upgrade/uninstall, source code reading | ||
| Cost metering and budgets, health report, eval harness, native Odoo AI bridge |
Everything in the free row keeps working forever, with no license key and no time limit. See Odoo AI Copilot and Studio
Good to Know
- Community-clean: hard depends only on base, base_setup, web and mail.
- Zero external Python dependencies, and runs on Odoo.sh without extra setup.
- OAuth 2.1 and bearer keys are both free, no license gate on authentication.
- LGPL-3, price 0.0. The tool registry is shared with the paid ai_suite_pyb module.
Who Is This For?
Perfect for:
- Admins connecting Claude, ChatGPT or Cursor to a live Odoo database
- Teams who need AI writes to be reversible, not a one-way risk
- Agencies who need OAuth 2.1 without an extra license fee
- Anyone on Odoo.sh who needs a zero-dependency install
Frequently Asked Questions
Do I need pip installs or Redis?
No. stdlib plus what Odoo ships. Rate limiting is a database-backed token bucket.
Can it write to my database safely?
Yes. Every write is a previewable change-set with a recorded inverse, undoable from the AI Changes screen.
Which clients does it support?
Any standard MCP client: Claude Desktop, Claude.ai, Claude Code, Cursor, VS Code Copilot, ChatGPT connectors, Gemini CLI and n8n.
What does the paid module add?
ai_suite_pyb adds an in-Odoo Copilot, RAG search, Studio dashboard and module builders, cost metering and an eval harness.
Support and Warranty
90 Days Free Support Included
90 days of free support after installation, starting from the install date.
Bug Fixes
Free bug fixes for 90 days
Setup Help
Installation and client setup assistance
Usage Guidance
Best practices for policies and scopes
Response time: within 24 to 48 hours on business days. Channels: email, contact form.
Contact Information
Website Contact
www.pybeans.com
Contact Form
Developed by PyBeans, enhancing Odoo for better business solutions.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 8291 |
| Technical Name |
mcp_server_pyb |
| License | LGPL-3 |
| Website | https://www.pybeans.com |
Please log in to comment on this module