Blog · AI & Automation · Setup Guide

How to connect Claude to Odoo
with an MCP server

How to configure Claude Desktop or Claude API to query and interact with your Odoo ERP using the KSROlabs MCP Server — in under 30 minutes.

By Arpit — Founder & Owner, KSROlabs · · Updated · 12 min read

Why connect Claude to Odoo?

Odoo holds critical business data — sales orders, invoices, CRM leads, inventory levels, purchase history. But extracting insight from that data typically requires: custom reports, SQL queries, or manual data exports.

When you connect Claude to Odoo, you can query all of this with natural language. "Show me the top 10 customers by revenue this quarter." "Which invoices are overdue by more than 30 days?" "Create a draft quote for Acme Corp based on last month's order."

The KSROlabs MCP Server for Odoo makes this possible — securely, with full Odoo permission enforcement and audit logging for every AI action.

What you need before you start

🏢

Odoo instance

Odoo 14.0–19.0 — self-hosted or Odoo.sh. You need admin access to install modules and configure settings.

🤖

Claude account

Claude Desktop (macOS or Windows) or access to the Claude API via Anthropic. A Claude Pro or Team subscription is recommended for regular use.

🔑

MCP Server module

The KSROlabs MCP Server for Odoo, available on the Odoo App Store. Purchase and download the .zip for your Odoo version.

🛡️

Admin permissions

Odoo administrator access to install modules and create API keys. Claude will inherit the permissions of the Odoo user the key is associated with.

Step-by-step setup guide

Follow these 6 steps to go from a fresh Odoo instance to a working Claude + Odoo integration.

1

Purchase and install MCP Server for Odoo

Buy the KSROlabs MCP Server from the Odoo App Store. Install it in your Odoo instance like any standard module — go to Apps, search "MCP Server", and click Install.

2

Enable the MCP endpoint in Odoo Settings

Navigate to Settings → Technical → MCP Server. Toggle the MCP Server to enabled. Grant the "MCP Server Administrator" group to any Odoo user who will manage API keys.

3

Create a scoped API key for Claude

In MCP Server settings, create a new API key named "Claude Desktop". Select which Odoo models this key can access (e.g., sale.order, res.partner, account.move). Copy the token — it is shown only once.

4

Configure rate limits and IP rules (optional)

For production security, configure rate limits per key (e.g., 60 requests/minute) and optionally restrict to your Claude Desktop IP address. Enable field allowlists for sensitive models.

5

Add the Odoo MCP Server to Claude Desktop

Open Claude Desktop → Settings → Developer → Edit Config. Add your Odoo MCP Server as a custom MCP server with your Odoo URL and Bearer token. Save and restart Claude Desktop.

6

Start querying Odoo with Claude

Open a new Claude conversation. Claude will automatically discover available Odoo tools. Start with natural language: "List all open sales orders over £10,000" or "Show me overdue invoices from last month."

If the connection fails at this point, the message tells you which step to go back to: "Authorization failed" means the token, while connecting but seeing no tools means the token worked and the key simply has no model access yet. Every documented error is indexed under troubleshooting.

Does the Odoo edition matter?

Community and Enterprise both work, and neither gives Claude anything the other does not. The MCP Server is a standard Odoo module and it enforces the same access rules either way, so an Enterprise licence is not a prerequisite for connecting Claude.

Hosting is the decision that actually matters. Odoo.sh, self-hosted and on-premise instances allow custom modules, so the module installs and the endpoint is served by Odoo itself. Odoo Online — any instance on a *.odoo.com address — does not allow custom server-side modules at all, so no MCP module can run there, from us or anyone else. That is a platform boundary, not a licensing upsell, and it catches people out constantly. If you are on Odoo Online you need an external gateway instead: the full explanation is here, and the Odoo Online MCP Gateway is the product that covers it.

Odoo versions 14.0 through 20.0 are supported. On the Claude side, connecting a custom MCP connector in the hosted apps (claude.ai, Teams, Enterprise) needs a paid Claude plan; Claude Desktop and Claude Code connect through local configuration without one.

What Claude can do once connected

Once configured, Claude has access to 8 MCP tools that cover every key Odoo operation:

list_models

Discover which Odoo models are available for your API key

describe_model

Get field metadata for planning queries and data structures

search_records

Search Odoo records with domain filters, limits, and sorting

get_record

Fetch a specific Odoo record by ID

create_record

Create new records in Odoo (if key allows write access)

update_record

Update existing Odoo records with validation

delete_record

Delete records (only if explicitly allowed by key scope)

initialize

Server capabilities, version info, and health metrics

What it looks like day to day

The first week is mostly people testing whether it really knows their data. Expect questions they already know the answer to — last month's revenue, a specific customer's open orders — because that is how anyone builds trust in a new tool. Let that happen. It is also how you find out that a domain filter is narrower than you meant.

After that it settles into a pattern: the questions that were never worth a report. Which quotes went quiet this month, whether a supplier's lead times have slipped, what changed in the pipeline since Friday. Questions somebody would have asked an analyst for, or more often, would simply not have asked.

Two things worth setting expectations on. Claude reads what the key is scoped to and nothing else, so an answer that looks wrong is usually an answer that is correctly narrow — check the scope before you doubt the data. And a read-only key is the right default for the first month: write access is easy to add once people trust the reads, and awkward to walk back if an agent creates something nobody expected.

Common mistakes, and what causes them

Four failures account for most of the support we see on a first connection. None of them takes long to fix once you know which one you are looking at.

  1. Connecting before granting model access. The client connects, reports no error, and lists no tools — so it looks broken when it is working exactly as designed. The whitelist is default-deny, so a key with no models exposes nothing. Grant the models, then reconnect.
  2. Pasting a token that was rotated. Rotation invalidates the previous version immediately, so a client configured before the rotation fails with an authorization error and no obvious cause. The audit log names the exact reason.
  3. Registering the wrong redirect URI. OAuth refuses to redirect anywhere that was not registered in advance, and the match is exact — scheme, host, path and trailing slash. Claude and ChatGPT each have their own callback URL.
  4. Giving write access on day one. Not an error message, just a decision that is hard to reverse. Start read-only, watch the audit log for a few weeks, then widen deliberately.

Every error we have documented, with its cause and fix, is indexed under troubleshooting.

Security best practices

Connecting an AI agent to your ERP requires careful access control. Follow these practices:

🔒

Use a dedicated, least-privilege Odoo user for each API key — not your admin account.

📋

Enable field allowlists on sensitive models (HR, Payroll, Accounting) to restrict which fields Claude can see.

⚡

Set per-key rate limits to prevent accidental mass operations from consuming Odoo server resources.

🌐

If possible, restrict API key access to your Claude Desktop machine's IP address.

🔄

Rotate API keys regularly using the zero-downtime token rotation feature — configure a 7-day grace period so Claude keeps working during rotation.

📊

Review the MCP audit logs weekly. Every Claude action is logged with timestamp, model, and payload — use this for compliance and debugging.

Frequently asked questions

Does Claude AI work natively with Odoo?

Not natively — Odoo does not ship with MCP support. The KSROlabs MCP Server module adds MCP protocol support to Odoo, making it compatible with Claude Desktop, Claude API, and any other MCP-compatible AI client.

Do I need the Claude API or Claude Desktop to connect to Odoo?

Both work. Claude Desktop (the desktop app) supports MCP Servers directly in its settings panel. The Claude API also supports tool use via MCP, so you can build custom agents programmatically.

Is it safe to connect Claude to Odoo?

Yes — the KSROlabs MCP Server enforces Odoo's built-in access controls. Claude can only access the models and records that the API key's scope allows. Every action Claude takes is logged in Odoo's audit trail. IP restrictions and rate limits add additional layers of security.

Can Claude create and update records in Odoo, or only read them?

Both read and write operations are supported. The MCP Server exposes create_record and update_record tools. You control which models allow write access per API key — you can make Claude read-only for sensitive models and allow writes only for specific ones.

What if I use Claude API instead of Claude Desktop?

You can connect via the Claude API by implementing an MCP client in your code. The KSROlabs MCP Server follows the standard MCP protocol, so any MCP-compatible client library works. Contact us for code examples and setup guidance.

Can I connect ChatGPT or other AI models to Odoo the same way?

Yes. The KSROlabs MCP Server is protocol-agnostic — any MCP-compatible client works, including ChatGPT with custom connectors, Cursor, n8n, LangChain, AutoGen, and CrewAI. The setup is the same: install the module, create an API key, point your client at the MCP endpoint. See our guides for Cursor and n8n.

What if I am on Odoo Online (*.odoo.com) and cannot install modules?

Odoo Online (SaaS) does not allow custom module installation, so the MCP Server module cannot be installed there. For Odoo Online users, KSROlabs maintains the Odoo Online MCP Gateway — an external gateway that connects AI agents to Odoo Online via XML-RPC without requiring module installation.

How do I connect Cursor AI to Odoo instead of Claude?

The process is nearly identical: install the MCP Server, create an API key, then in Cursor go to Settings → MCP Servers and add your Odoo MCP endpoint. Cursor's native MCP support means you can query live Odoo data from within the editor. See the full Cursor setup guide on our blog.

Ready to connect Claude to Odoo?

Get the MCP Server module from the Odoo App Store. Free setup support is included with every purchase.

More from the KSROlabs blog

Can Claude Connect to Odoo? →Does Odoo Have an MCP Server? →Connect Cursor to Odoo →Connect n8n to Odoo →What is MCP? →MCP vs REST API →Odoo Online MCP →Connection Errors →All Articles →