Blog
Odoo MCP Server in 2026: How to Give ChatGPT and Claude Safe Access to Odoo
Giving AI access to your ERP is a massive security risk—unless you use the right protocol. Discover how the Niyu Labs MCP Server uses Permission Bundles and Identity Mapping to make Odoo AI agents safe for production.

The challenge with Odoo AI is no longer connectivity; it is control. If your AI has the power to read your database, it must also have the guardrails to to restrict access.
TL;DR: The Architecture Thesis
The "gold rush" to connect Claude and ChatGPT to Odoo has created a massive technical debt: insecure API wrappers. Most developers are currently exposing raw Odoo models to LLMs via standard XML-RPC, which lacks granular "AI-specific" guardrails. When an LLM hallucinates a command, a raw API will execute it.
The real power of a production-ready AI strategy lies in The Model Context Protocol (MCP). By implementing Niyu’s MCP Server, you move from "raw access" to "contextual delegation." You aren't just connecting an AI; you are creating a sandboxed Identity Context where the LLM is forced to respect Odoo’s native Record Rules and custom Permission Bundles.
Watch the Technical Breakdown:
Table of Contents
- TL;DR: The Architecture Thesis
- The Anatomy of Failure: Why Generic APIs are an AI Liability
- The Real Power: Niyu Permission Bundles & Identity Mapping
- The Technical Shift: From Hardcoded Endpoints to Dynamic Discovery
- Comparison: Custom API vs. Niyu MCP Server
- Security & Audit Checklist
- Buyer Checklist: Is Your ERP Ready for Agentic AI?
- Next Steps
Why Generic APIs are an AI Liability
If you are using legacy REST or XML-RPC scripts to feed Odoo data to an LLM, you are operating in a "Zero-Guardrail" environment.
Large Language Models do not understand Odoo's internal security logic. If a custom script gives an AI access to res.partner, the AI can potentially read every field in that table—including sensitive financial tokens or private contact details—because the API wrapper usually operates with a high-privilege system user.
Furthermore, generic APIs are static. Every time you add a custom field or change a model, you have to rewrite your API code. If you don't, the AI agent hits a "Schema Mismatch," hallucinates a fix, and eventually triggers a 504 Gateway Timeout while trying to parse an invalid data structure.
The Real Power: Niyu Permission Bundles & Identity Mapping
According to the Niyu Labs documentation, the real power of the MCP Connector isn't just the connection—it's the Identity Context.
1. Identity Mapping (LLM as a User) Instead of the AI acting as a "System Root," Niyu's architecture maps the AI agent to a specific Odoo User. This means the AI is automatically restricted by Odoo’s native Record Rules. If the Odoo user can't see "European Sales," the AI can't either. It inherits your existing security architecture instead of bypassing it.
2. Permission Bundles (The Sandbox) The documentation highlights Permission Bundles as the primary security layer. You can create a "Support Bundle" that allows the AI to Read helpdesk tickets but Write nothing. You can create a "Sales Assistant Bundle" that allows it to Create leads but never Delete them. This "Least Privilege" access is handled at the protocol level, not the code level.
3. Tool-Based Execution Unlike raw SQL or ORM queries, the MCP server exposes Odoo functions as "Tools." The AI doesn't see your database; it sees a menu of authorized actions. This eliminates the risk of an AI accidentally deleting a table or running an expensive join that crashes your production server.
The Technical Shift: From Hardcoded Endpoints to Dynamic Discovery
In a traditional setup, you have to tell the AI: "To get sales, use this URL with these headers."
With the Model Context Protocol (MCP), the Odoo server becomes self-documenting. When Claude 3.5 or ChatGPT connects, the MCP server broadcasts a manifest of its capabilities. The AI "discovers" the tools you've authorized in your Permission Bundles. This creates a "Zero-Maintenance" pipeline: if you add a new authorized tool in Odoo, the AI sees it instantly without a single line of new code.
Odoo AI Connectivity Strategies Compared
Strategy 1: Custom XML-RPC / REST Wrappers
- Security: High Risk (Manual guardrails).
- Maintenance: High (Breaks on schema changes).
- LLM Compatibility: Poor (No tool discovery).
- Best For: Simple, internal hobby projects.
Strategy 2: Niyu Labs MCP Server
- Security: Enterprise Grade (Identity Mapping + Bundles).
- Maintenance: Zero (Dynamic Tool Discovery).
- LLM Compatibility: Native (Anthropic/OpenAI standardized).
- Best For: Production-ready AI agents, automated RFQs, and secure CRM assistants.
Security & Audit Checklist
Before moving your Odoo AI agent to production, verify these three documentation-backed security pillars:
- Audit Trails: Ensure every action the AI takes is logged under its specific Odoo User Identity.
- Granular Scoping: Use Permission Bundles to restrict access to the field level (e.g., allow reading product names but hide "Cost Price").
- Execution Logs: Monitor the MCP server logs to see exactly how the LLM is calling tools and where it is being denied access.
Buyer Checklist: Is Your ERP Ready for Agentic AI?
- Do you want Claude or ChatGPT to act on data (Create RFQs, update CRM) rather than just read it?
- Are you worried about "AI Hallucination" causing data corruption in your live ERP?
- Do you need to prove to your IT/Security team that the AI cannot see your payroll or financial moves?
- Are you tired of fixing broken API scripts every time Odoo updates?
If you answered yes, your architecture needs a standardized protocol layer.
Next Steps & Resources
Stop building brittle wrappers. Build a secure foundation for the agentic future.
- Documentation: Review the full technical setup in the Niyu Labs MCP Server Docs.
- The Solution: Get the Odoo MCP Server on the Odoo App Store.
- Architecture Strategy: Learn why Architecture, not AI, is the real decision on our Medium blog.
- Watch the Technical Breakdown: Odoo MCP Server: Secure AI Agent Architecture
