CAT
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Cross AI Tools

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by @mertduzgun

Independent project, not affiliated with Anthropic

Mcp Odoo

tuanle96/mcp-odoo
33226 toolsauthSTDIOregistry active
Summary

Connects Claude to Odoo 16+ instances through XML-RPC or JSON-2 APIs without requiring any server-side modules or admin setup. Exposes 24 tools for reading records, server-side aggregation, schema inspection, chatter posting, and addon scanning, plus gated write operations that require approval tokens. Includes migration helpers for JSON-2 transition and diagnostic tools for access rules and upgrade risks. Works with existing Odoo credentials and handles both local development and production instances. The safe write workflow and real Odoo smoke testing make this solid for automation workflows where you need reliable ERP integration without direct database access.

Install to Claude Code

verified
claude mcp add mcp-odoo --env ODOO_URL=YOUR_ODOO_URL --env ODOO_DB=YOUR_ODOO_DB --env ODOO_USERNAME=YOUR_ODOO_USERNAME --env ODOO_PASSWORD=YOUR_ODOO_PASSWORD -- uvx odoo-mcp

Run in your terminal. Replace YOUR_* placeholders with real values; add --scope user to install for every project.

Review the command, arguments, and environment values before installing — MCP servers run with your local permissions.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

Tools

Verified live against the running server on Jun 10, 2026.

verified live26 tools
diagnose_odoo_callDiagnose an Odoo model call without executing it10 params

Diagnose an Odoo model call without executing it

Parameters* required
argsvalue
model*string
kwargsvalue
method*string
metadatavalue
transportstring
default: auto
include_debugboolean
default: false
observed_errorvalue
target_versionvalue
use_live_metadataboolean
default: false
generate_json2_payloadBuild a JSON-2 request preview without network access7 params

Build a JSON-2 request preview without network access

Parameters* required
argsvalue
model*string
kwargsvalue
method*string
base_urlvalue
databasevalue
include_database_headerboolean
default: true
inspect_model_relationshipsInspect model relationships and required field metadata6 params

Inspect model relationships and required field metadata

Parameters* required
model*string
instancevalue
fields_metadatavalue
include_computedboolean
default: true
include_readonlyboolean
default: true
use_live_metadataboolean
default: true
diagnose_accessDiagnose ACL and record-rule visibility for an Odoo model9 params

Diagnose ACL and record-rule visibility for an Odoo model

Parameters* required
limitinteger
default: 50
model*string
domainvalue
instancevalue
operationstring
default: read
record_idsvalue
include_rulesboolean
default: true
expected_countvalue
observed_errorvalue
upgrade_risk_reportReport Odoo upgrade and JSON-2 migration risks8 params

Report Odoo upgrade and JSON-2 migration risks

Parameters* required
methodsvalue
modulesvalue
include_debugboolean
default: false
source_versionvalue
target_versionvalue
observed_errorsvalue
source_findingsvalue
use_live_metadataboolean
default: false
lookup_model_historyLook up Odoo model rename/removal history by old or new model name (e.g. account.invoice -> account.move)1 params

Look up Odoo model rename/removal history by old or new model name (e.g. account.invoice -> account.move)

Parameters* required
name*string
fit_gap_reportClassify Odoo requirements into fit/gap implementation buckets6 params

Classify Odoo requirements into fit/gap implementation buckets

Parameters* required
requirements*array
available_fieldsvalue
available_modelsvalue
business_contextvalue
installed_modulesvalue
use_live_metadataboolean
default: false
get_odoo_profileRead a bounded profile of the connected Odoo environment3 params

Read a bounded profile of the connected Odoo environment

Parameters* required
instancevalue
module_limitinteger
default: 100
include_modulesboolean
default: true
schema_catalogBuild and cache a bounded Odoo model schema catalog6 params

Build and cache a bounded Odoo model schema catalog

Parameters* required
limitinteger
default: 50
queryvalue
modelsvalue
refreshboolean
default: false
instancevalue
include_fieldsboolean
default: false
preview_writePreview create, write, or unlink without executing it6 params

Preview create, write, or unlink without executing it

Parameters* required
model*string
valuesvalue
contextvalue
instancevalue
operation*string
record_idsvalue
validate_writeValidate a standard write payload against optional fields_get metadata8 params

Validate a standard write payload against optional fields_get metadata

Parameters* required
model*string
valuesvalue
contextvalue
instancevalue
operation*string
record_idsvalue
fields_metadatavalue
use_live_metadataboolean
default: true
execute_approved_writeExecute a previously previewed and confirmed standard write2 params

Execute a previously previewed and confirmed standard write

Parameters* required
confirmboolean
default: false
approval*object
scan_addons_sourceScan local Odoo addon source without importing addon code3 params

Scan local Odoo addon source without importing addon code

Parameters* required
max_filesinteger
default: 200
addons_pathsvalue
max_file_bytesinteger
default: 300000
build_domainBuild a validated Odoo domain from structured conditions3 params

Build a validated Odoo domain from structured conditions

Parameters* required
conditions*array
fields_metadatavalue
logical_operatorstring
default: and
business_pack_reportReport expected modules, models, and safe discovery calls for a business pack3 params

Report expected modules, models, and safe discovery calls for a business pack

Parameters* required
pack*string
instancevalue
use_live_metadataboolean
default: true
health_checkReport this MCP server's non-secret runtime safety posture

Report this MCP server's non-secret runtime safety posture

No parameters — call it with no arguments.

list_instancesList configured Odoo instance names without credentials

List configured Odoo instance names without credentials

No parameters — call it with no arguments.

execute_methodExecute a custom method on an Odoo model5 params

Execute a custom method on an Odoo model

Parameters* required
argsvalue
model*string
kwargsvalue
method*string
instancevalue
list_modelsList Odoo models with optional name filtering3 params

List Odoo models with optional name filtering

Parameters* required
limitinteger
default: 100
queryvalue
instancevalue
get_model_fieldsGet field metadata for a specific Odoo model5 params

Get field metadata for a specific Odoo model

Parameters* required
model*string
instancevalue
relevancevalue
max_fieldsinteger
default: 30
field_namesvalue
search_recordsSearch Odoo records with read-only search_read7 params

Search Odoo records with read-only search_read

Parameters* required
limitinteger
default: 10
model*string
ordervalue
domainvalue
fieldsvalue
offsetinteger
default: 0
instancevalue
read_recordRead a single Odoo record by model and ID4 params

Read a single Odoo record by model and ID

Parameters* required
model*string
fieldsvalue
instancevalue
record_id*integer
aggregate_recordsAggregate Odoo records server-side using Postgres groupby/sum/count. Uses formatted_read_group on Odoo 19+ and read_group on earlier versions.9 params

Aggregate Odoo records server-side using Postgres groupby/sum/count. Uses formatted_read_group on Odoo 19+ and read_group on earlier versions.

Parameters* required
lazyboolean
default: false
limitvalue
model*string
ordervalue
domainvalue
offsetinteger
default: 0
group_by*array
instancevalue
measuresvalue
chatter_postPost a chatter message on a mail.thread record. Default mode requires an approval token returned from a preview call; set MCP_CHATTER_DIRECT=1 to bypass and post immediately.10 params

Post a chatter message on a mail.thread record. Default mode requires an approval token returned from a preview call; set MCP_CHATTER_DIRECT=1 to bypass and post immediately.

Parameters* required
body*string
model*string
confirmboolean
default: false
approvalvalue
instancevalue
record_id*integer
partner_idsvalue
message_typestring
default: comment
subtype_xmlidvalue
attachment_idsvalue
search_employeeSearch for employees by name3 params

Search for employees by name

Parameters* required
name*string
limitinteger
default: 20
instancevalue
search_holidaysSearch for holidays within a date range4 params

Search for holidays within a date range

Parameters* required
end_date*string
instancevalue
start_date*string
employee_idvalue

Odoo MCP

The Odoo MCP that is fluent in every Odoo version.
Five-minute install. Zero Odoo-side setup. Safe writes, real diagnostics, JSON-2 ready years before the Odoo 22 XML-RPC removal.

PyPI Python Downloads License CI Stars Forks

Odoo MCP turns any Odoo 16+ database into a Model Context Protocol server — using only your existing credentials. No App Store module, no permission setup, no admin access required. Built for local agents, IDEs, and automation tools that need real Odoo context without hand-rolled scripts or unsafe direct write access.

It speaks XML-RPC for Odoo 16-18 and External JSON-2 for Odoo 19+. It exposes a compact MCP surface with read tools, diagnostics, schema discovery, migration helpers, local addon scanning, and a gated write workflow. One server can serve multiple named Odoo instances at once.

Try it in 30 seconds

Once configured (see Setup), ask your agent things like:

"Show me all customers from Spain with unpaid invoices."

"Find products with stock below 10 units in the main warehouse."

"Audit the custom_billing addon for upgrade risks before we move to Odoo 19."

Highlights

CapabilityWhat it gives you
39 MCP toolsRead records and attachments, aggregate server-side, post chatter, inspect schema, build domains, scan addons, diagnose calls, access rules, resolve model renames, validate writes, and fan out across instances.
Field-level ACLOpt-in per-instance, per-model field allow/deny enforced on every read path (records, aggregates, knowledge index, resources). First open-source Odoo MCP with it. See docs/field-acl.md.
Cross-instance queriesRead-only fan-out across many client DBs with merged, attributed, partial-failure-tolerant results — no warehouse, no sync. See docs/partner-playbook.md.
Workflow prompts10 prompts including 5 end-to-end business workflows (invoice approval, PO match, onboarding, expense review, month-end close) that route writes through the gate.
Background taskssubmit_async_task runs long read operations (addon scans, knowledge indexing, AR/AP aging) on a bounded worker pool; poll with get_async_task while the agent keeps reasoning.
Local-first knowledge searchindex_knowledge + search_knowledge give BM25 relevance ranking over a bounded record slice — accent-insensitive, in-process, no embeddings service, no data leaving the machine.
Accounting packreceivable_payable_aging and accounting_health_summary answer the most common finance questions in one call instead of hand-built domains.
Rate limitingOpt-in sliding-window budget per instance and tool (ODOO_MCP_RATE_LIMIT_MODE=warn|block), surfaced in health_check.
Multi-instanceOne server, several named Odoo instances — optional instance parameter on every tool, list_instances discovery, instance-bound approval tokens, per-instance schema caches.
5 agent promptsReusable workflows for failed calls, fit/gap workshops, JSON-2 migration, safe writes, and module audits.
Odoo 16-19 coverageXML-RPC by default, JSON-2 opt-in for Odoo 19.
Streamable HTTPLocal HTTP/SSE support for clients that do not use stdio.
Smart field selectionsearch_records and read_record curate business-relevant fields when no fields argument is supplied — drops audit, message, binary, and unstored compute noise. Pass fields=["*"] to opt out.
Server-side aggregationaggregate_records pushes groupby/sum/count/avg into Postgres via formatted_read_group (Odoo 19+) or read_group (16-18).
Chatter integrationchatter_post adds messages to any mail.thread record under the same approval-token gate as writes — or directly via MCP_CHATTER_DIRECT=1.
Locale plumbingODOO_LOCALE injects context.lang automatically on every Odoo call (caller can override).
Structured loggingJSON formatter and rotating file handler via ODOO_MCP_LOG_LEVEL, ODOO_MCP_LOG_JSON, ODOO_MCP_LOG_FILE.
Safe writesDirect create, write, and unlink are blocked; approved writes require live metadata, a same-session token, explicit confirmation, and an env gate.
Human-in-the-loop approvalODOO_MCP_ELICIT_WRITES=1 shows a native MCP confirmation form (with a diff summary) before any approved write executes — token flow stays as fallback.
Audit trailODOO_MCP_AUDIT_LOG appends one JSONL line per write-path event (preview, validate, execute, chatter) with instance and token digest.
ResilienceRead-only calls retry connection errors with exponential backoff; schema caches are TTL- and LRU-bounded; health_check flags N+1 read loops.
Real smoke testsDocker Compose validation boots disposable Odoo 16.0, 17.0, 18.0, and 19.0 stacks, including restricted users, custom record rules, and packaged addon XML install/update.

Why Odoo MCP

TraitOdoo MCPOther MCP-Odoo bridges
Setup steps on Odoo side0 — works with any Odoo 16+ instance using credentials you already have.Often require installing an App Store module, configuring enabled models, and granting per-tool permissions.
Safe write workflowApproval token + live fields_get validation + explicit confirm + env gate.Often expose direct create/write/unlink or a "yolo" bypass.
Diagnosticsdiagnose_odoo_call, diagnose_access, inspect_model_relationships, upgrade_risk_report, fit_gap_report, business_pack_report, scan_addons_source.Usually CRUD only.
TransportXML-RPC (16+) and External JSON-2 (Odoo 19+). Ready for the Odoo 22 XML-RPC removal years early.Usually XML-RPC only — deprecated since Odoo 19, removed in Odoo 22.
Migration helpersgenerate_json2_payload previews the JSON-2 body for any XML-RPC call before you migrate.None.
Multi-instanceNamed instances in one config file, per-tool routing, tokens and caches isolated per instance.Usually one global connection per server process.
Agent prompts5 ready-made prompts for diagnose / fit-gap / JSON-2 migration / safe-write / module-audit.Usually none.
HTTP transport securityDNS-rebinding protection, host/origin allowlists, local-bind by default.Often missing.
Real Odoo smoke testsDocker Compose harness boots disposable Odoo 16/17/18/19 stacks per release.Often mock-based only.
Framework examplesCopy-paste adapters for Cursor, Claude Code, OpenAI Agents, LangGraph, CrewAI, and n8n in examples/.None.
Audit & approval UXJSONL audit trail + native elicitation confirm forms — without installing anything in Odoo.Audit features usually require an Odoo-side module.

Comparing specific projects? See the per-project breakdown in docs/comparison.md.

Setup

Two paths to a working server: set it up yourself, or paste one prompt and let your coding agent do it for you.

For humans

The fastest path is the interactive wizard via uvx, which fetches the package on demand:

uvx odoo-mcp --setup

The wizard asks for your Odoo URL, database, and credentials, tests the connection live, writes the config file, and prints ready-to-paste snippets for Claude Code, Cursor, and Claude Desktop. Prefer a quick smoke check instead? uvx odoo-mcp --health.

Using Claude Desktop on macOS? It reads MCP configuration from:

~/Library/Application Support/Claude/claude_desktop_config.json

Use an absolute Python path because GUI apps may not inherit your shell PATH:

{
  "mcpServers": {
    "odoo": {
      "command": "/opt/homebrew/bin/python3",
      "args": ["-m", "odoo_mcp"],
      "env": {
        "ODOO_URL": "https://your-odoo-instance.com",
        "ODOO_DB": "your-database",
        "ODOO_USERNAME": "your-user",
        "ODOO_PASSWORD": "your-password-or-api-key",
        "ODOO_TRANSPORT": "xmlrpc"
      }
    }
  }
}

More client configs (Windsurf, VS Code, Zed, Continue.dev, Streamable HTTP) are in docs/client-configs.md.

Other ways to install:

pip install odoo-mcp
# or: pipx install odoo-mcp

Prefer a container? See Docker. For local development:

git clone https://github.com/tuanle96/mcp-odoo.git
cd mcp-odoo
uv sync --extra dev

For AI agents

Paste this into Claude Code, Cursor, Codex, or any coding agent and it will install the server for you:

Install the odoo-mcp MCP server (https://github.com/tuanle96/mcp-odoo) in this environment:

1. Ask me for my Odoo URL, database name, username, and password or API key.
   Treat them as secrets: never echo, print, or log these values.
2. Register the server as a stdio MCP server:
   - Claude Code: claude mcp add odoo --env ODOO_URL=<url> --env ODOO_DB=<db>
     --env ODOO_USERNAME=<user> --env ODOO_PASSWORD=<secret> -- uvx odoo-mcp
   - Any other client: write the equivalent config with "command": "uvx",
     "args": ["odoo-mcp"], and the same four env vars.
3. Verify the install: run `uvx odoo-mcp --health`, then call the health_check
   MCP tool and confirm the Odoo connection is reachable.
4. Leave writes disabled (do not set ODOO_MCP_ENABLE_WRITES) unless I
   explicitly ask you to enable them.

Full machine-readable instructions: https://github.com/tuanle96/mcp-odoo/blob/main/llms-install.md

Already know your client? One-liners and config snippets:

claude mcp add odoo --env ODOO_URL=https://mycompany.odoo.com --env ODOO_DB=mycompany \
  --env ODOO_USERNAME=agent@mycompany.com --env ODOO_PASSWORD=your-api-key -- uvx odoo-mcp
  • Claude Code .mcp.json and Codex CLI config.toml: examples/README.md
  • Cursor .cursor/mcp.json + agent rules: examples/cursor/
  • Windsurf, VS Code, Zed, Continue.dev, Cline, Streamable HTTP, Docker: docs/client-configs.md
  • Machine-readable install guide for agents (Cline-style): llms-install.md

Framework SDKs

Copy-paste-runnable integrations live in examples/:

ClientExample
Cursorexamples/cursor/ — .cursor/mcp.json + agent rules
Claude Code / Codex CLIsnippets in examples/README.md
OpenAI Agents SDKexamples/openai-agents/ — local + hosted variants
LangGraphexamples/langgraph/ — langchain-mcp-adapters
CrewAIexamples/crewai/ — native mcps=[...] agent
n8nexamples/n8n/ — importable workflow JSON

Configuration reference

Set connection values in the environment:

export ODOO_URL="https://your-odoo-instance.com"
export ODOO_DB="your-database"
export ODOO_USERNAME="your-user"
export ODOO_PASSWORD="your-password-or-api-key"
export ODOO_TRANSPORT="xmlrpc"

For Odoo 19 JSON-2:

export ODOO_TRANSPORT="json2"
export ODOO_API_KEY="your-odoo-api-key"
export ODOO_JSON2_DATABASE_HEADER="1"

ODOO_JSON2_DATABASE_HEADER=1 sends X-Odoo-Database on JSON-2 calls. Set it to 0 only when host or dbfilter routing already selects the intended database.

Optional environment variables:

VariableDefaultEffect
ODOO_CONFIG_FILEunsetExplicit path to a config file, checked before the standard locations.
ODOO_LOCALEunsetInject context.lang on every Odoo call. Caller-supplied context.lang always wins.
ODOO_MCP_MAX_SMART_FIELDS15Cap for smart-field selection when caller omits fields.
ODOO_MCP_LOG_LEVELINFOProcess logger level (DEBUG/INFO/WARNING/ERROR/CRITICAL).
ODOO_MCP_LOG_JSON0Truthy → emit JSON-formatted log lines.
ODOO_MCP_LOG_FILEunsetPath → enable rotating file handler (10MB × 3 backups).
ODOO_MCP_ENABLE_WRITES0Required for execute_approved_write.
ODOO_MCP_ALLOWED_SIDE_EFFECT_METHODSemptyExact model.method allowlist (e.g. sale.order.action_confirm).
ODOO_MCP_POLICY_FILE./odoo_mcp_policy.json if presentVersion-controllable side-effect allowlist with review metadata (see odoo_mcp_policy.json.example); merged with the env allowlist.
ODOO_MCP_ALLOW_UNKNOWN_METHODS0Broad mode for execute_method. Prefer the exact allowlist above.
ODOO_MCP_AUDIT_LOGunsetPath → append one JSONL line per write-path event (preview/validate/execute/chatter), tokens stored as digests.
ODOO_MCP_ELICIT_WRITES0Truthy → execute_approved_write asks the human via MCP elicitation (native confirm form with a diff summary) before executing; falls back to the token flow when the client cannot elicit.
ODOO_MCP_RETRY_ATTEMPTS2Extra attempts for read-only calls on connection errors (0–5). Writes never retry.
ODOO_MCP_RETRY_BACKOFF0.5Base retry backoff seconds; doubles per retry.
ODOO_MCP_SCHEMA_CACHE_TTL600Schema cache entry lifetime in seconds.
ODOO_MCP_SCHEMA_CACHE_MAX256Max schema cache entries (LRU eviction).
ODOO_MCP_RATE_LIMIT_MODEoffwarn tracks per-instance:tool call rates in health_check; block refuses over-budget calls on the hot read tools and execute_method.
ODOO_MCP_RATE_LIMIT_WINDOW60Sliding window length in seconds for rate tracking.
ODOO_MCP_RATE_LIMIT_MAX_CALLS120Calls allowed per window per instance:tool.
ODOO_MCP_ASYNC_MAX_WORKERS2Worker threads for submit_async_task.
ODOO_MCP_ASYNC_MAX_TASKS50Max retained background tasks (finished tasks evicted oldest-first).
ODOO_MCP_ASYNC_RESULT_TTL3600Seconds a finished background task result stays pollable.
ODOO_MCP_KNOWLEDGE_MAX_DOCS5000Total documents allowed across all local BM25 knowledge indexes.
ODOO_MCP_FIELD_POLICY_FILEshared policy fileField ACL policy (a field_acl key in the policy file, or a dedicated file here). Denied fields are removed from every read path. See docs/field-acl.md.
ODOO_MCP_CROSS_INSTANCE_WORKERS4Bounded concurrency for cross-instance fan-out tools.
MCP_CHATTER_DIRECT0Truthy → chatter_post skips the approval token gate and posts immediately.
MCP_ALLOW_REMOTE_HTTP0Truthy → permit non-local HTTP binds (still requires external auth/TLS).
MCP_ALLOWED_HOSTS / MCP_ALLOWED_ORIGINSlocalCSV allowlists for HTTP transports.
ODOO_MCP_MAX_ATTACHMENT_BYTES1048576Download cap for read_attachment content (hard cap 16 MiB).
ODOO_MCP_AUTH_ISSUER_URLunsetOAuth 2.1: authorization server issuer. With the two vars below, the HTTP transport becomes a protected resource server (RFC 9728 metadata + bearer validation).
ODOO_MCP_AUTH_INTROSPECTION_URLunsetRFC 7662 token introspection endpoint of the authorization server.
ODOO_MCP_AUTH_RESOURCE_URLunsetCanonical URL of this MCP server (RFC 8707 audience check when the AS binds tokens).
ODOO_MCP_AUTH_REQUIRED_SCOPESemptyCSV scopes required on every request.
ODOO_MCP_AUTH_CLIENT_ID / _CLIENT_SECRETunsetCredentials for the introspection call when the AS requires client auth.

You can also use odoo_config.json:

{
  "url": "https://your-odoo-instance.com",
  "db": "your-database",
  "username": "your-user",
  "password": "your-password-or-api-key"
}

Multiple Odoo instances

One server can talk to several Odoo databases. Add an instances map to your config file (auto-detected — a file without instances keeps the flat single-instance shape above):

{
  "default": "acme",
  "instances": {
    "acme": {
      "url": "https://acme.odoo.com",
      "db": "acme",
      "username": "bot",
      "api_key": "...",
      "transport": "json2"
    },
    "globex": {
      "url": "https://globex.odoo.com",
      "db": "globex",
      "username": "bot",
      "password": "...",
      "lang": "fr_FR",
      "timeout": 60
    }
  }
}
  • Every read/write tool accepts an optional instance parameter; omitted → the default instance. default itself is optional when only one instance is defined.
  • Each entry supports the same keys as the flat config (url, db, username, password, api_key, transport, json2_database_header, lang) plus timeout and verify_ssl. Instance entries are self-contained: credentials and transport never fall back to env vars (so one instance can never inherit another deployment's ODOO_API_KEY). Only non-credential knobs (ODOO_TIMEOUT, ODOO_VERIFY_SSL, ODOO_LOCALE) act as fallback defaults for entries that omit them. Env overrides like ODOO_TRANSPORT/ODOO_API_KEY still apply to legacy flat configs, as before.
  • ODOO_CONFIG_FILE=/path/to/config.json points at an explicit config file, checked before ./odoo_config.json, ~/.config/odoo/config.json, and ~/.odoo_config.json.
  • Precedence: when ODOO_URL/ODOO_DB/ODOO_USERNAME/ODOO_PASSWORD are all set, the environment wins and defines a single instance named default — unset them to use a multi-instance file.
  • Instance names must match [A-Za-z0-9_-]{1,64}. Clients connect lazily — an instance is only contacted when a tool targets it.
  • Discovery: the list_instances tool returns configured names, URLs, databases, and transports — never credentials.
  • Write-approval tokens encode the instance name, so a token validated against one instance can never execute on another.
  • MCP resources (odoo://…) always use the default instance in this release; use tools for multi-instance access.

Run

Start the MCP server over stdio:

odoo-mcp

or:

python -m odoo_mcp

Start Streamable HTTP for local clients:

odoo-mcp --transport streamable-http --host 127.0.0.1 --port 8000 --path /mcp

Non-local HTTP binds are rejected unless you pass --allow-remote-http or set MCP_ALLOW_REMOTE_HTTP=1. This server does not include built-in HTTP authentication. Put remote HTTP deployments behind your own authentication, TLS, and network policy.

Check runtime posture without starting the server loop:

odoo-mcp --health

MCP Tools

39 tools grouped by use case. Each tool name is a single-purpose handle the agent can call. Tools that talk to Odoo accept an optional instance parameter when multiple instances are configured (see Multiple Odoo instances).

Read & Discover (11)

ToolPurpose
list_modelsList Odoo model technical names and labels.
get_model_fieldsRead field metadata for one model.
search_recordsRun bounded read-only search_read. Smart-field selection when caller omits fields.
read_recordRead one record by model and ID. Smart-field selection when caller omits fields.
aggregate_recordsServer-side groupby/aggregation via formatted_read_group (Odoo 19+) or read_group (16-18).
search_employeeSearch employees by name.
search_holidaysSearch leave records by date range.
get_odoo_profileRead server version, user context, transport, database, and installed module summary.
schema_catalogBuild a bounded model catalog with optional field metadata.
build_domainBuild and validate an Odoo domain from structured conditions.
read_attachmentRead an ir.attachment's metadata and size-capped base64 content (ODOO_MCP_MAX_ATTACHMENT_BYTES, default 1 MiB).

Write & Operate (5)

ToolPurpose
preview_writeProduce a non-executing approval payload for create, write, or unlink.
validate_writeValidate a write payload against trusted live fields_get metadata.
execute_approved_writeExecute only a same-session, live-validated, confirmed write when ODOO_MCP_ENABLE_WRITES=1.
execute_methodExecute a reviewed model method. Direct create, write, and unlink are blocked. Side-effect methods require an exact allowlist or ODOO_MCP_ALLOW_UNKNOWN_METHODS=1.
chatter_postPost a chatter message on a mail.thread record. Default mode requires the approval-token preview/execute flow.

Diagnose (3)

ToolPurpose
diagnose_odoo_callDiagnose a model call without executing it.
diagnose_accessDiagnose ACL and record-rule visibility for the current Odoo credential.
inspect_model_relationshipsGroup relationship fields, required fields, and create/write hints.

Migrate (3)

ToolPurpose
generate_json2_payloadConvert XML-RPC-shaped input into JSON-2 endpoint, headers, and named body.
upgrade_risk_reportSurface transport, method, and migration risks across Odoo versions.
lookup_model_historyResolve outdated model names (account.invoice → account.move) against a curated per-version rename catalog.

Audit & Plan (3)

ToolPurpose
scan_addons_sourceScan local addon source without importing addon code.
fit_gap_reportClassify requirements into standard, configuration, Studio, custom module, avoid, or unknown.
business_pack_reportReport expected modules, models, and discovery calls for sales, CRM, inventory, accounting, or HR.

Knowledge search — local-first (3)

ToolPurpose
index_knowledgeFetch a bounded record slice once and build a local BM25 index (accent-insensitive; data never leaves the machine).
search_knowledgeRelevance-ranked free-text search over indexed records with zero further RPC calls.
knowledge_statsReport per-model index sizes and the ODOO_MCP_KNOWLEDGE_MAX_DOCS budget.

Accounting (2)

ToolPurpose
receivable_payable_agingAged AR/AP report bucketed by days overdue (not due / 1-30 / 31-60 / 61-90 / 90+), with per-partner totals.
accounting_health_summaryOpen receivable/payable item counts plus the draft invoice backlog.

Background tasks (4)

ToolPurpose
submit_async_taskRun an allowlisted long read operation (scan_addons_source, index_knowledge, receivable_payable_aging) on a bounded worker pool. Writes are never accepted.
get_async_taskPoll a task's status and result.
cancel_async_taskCancel a pending or running task.
list_async_tasksList live and recently finished tasks.

Cross-instance fan-out — read-only (3)

One question across many configured instances, merged and attributed. See the partner playbook.

ToolPurpose
search_across_instancesSearch every opted-in instance (or a list/tag selection); rows tagged with _instance, partial results on per-instance failure.
aggregate_across_instancesGroup/aggregate per instance plus additive grand totals across the fleet.
accounting_health_across_instancesAR/AP aging across every client DB with combined buckets — the partner-network sweep.

Utility (2)

ToolPurpose
health_checkReport non-secret MCP runtime posture, including rate-limit counters and field-ACL status when enabled.
list_instancesList configured Odoo instance names, URLs, databases, transports, and cross-instance tags — never credentials.

Resources

URIDescription
odoo://modelsList available models.
odoo://model/{model_name}Read model metadata and fields.
odoo://record/{model_name}/{record_id}Read one record.
odoo://search/{model_name}/{domain}Search records with a bounded domain.

Prompts

10 prompts: 5 diagnostic, plus 5 operational workflow prompts that encode end-to-end business processes and route every write through the approval gate.

PromptUse it for
diagnose_failed_odoo_callRoot-cause a failing Odoo call before retrying.
fit_gap_workshopTurn raw requirements into Odoo fit/gap buckets.
json2_migration_planPlan XML-RPC or JSON-RPC migration to External JSON-2.
safe_write_reviewReview a proposed create, write, or unlink.
custom_module_auditAudit local addon source with scan, risk, and business evidence.
invoice_approval_chainTriage draft invoices and post each through the write gate with human checkpoints.
po_to_receiptThree-way match a purchase order against receipt and bill; flags discrepancies (read-only).
customer_onboardingDedup-check, then gated-create a customer with contacts and payment terms.
expense_claim_reviewPolicy-check pending expense claims, then gated approve/refuse.
accounting_close_checklistRead-only month-end checklist: aging, unreconciled items, draft backlog.

Safe Write Model

Writes are intentionally boring.

  1. preview_write creates a canonical, non-executing payload.
  2. validate_write checks model metadata, required fields, readonly fields, relation hints, record IDs, and payload shape.
  3. execute_approved_write runs only when all gates pass:
    • the approval came from validate_write in the same server process,
    • validation used trusted, non-empty live Odoo fields_get metadata,
    • the token has not expired or been consumed,
    • confirm=true is passed,
    • ODOO_MCP_ENABLE_WRITES=1 is set.

Odoo access rules, record rules, and server-side constraints still decide the final result.

Batch creates go through the same gates: pass values_list (one dict per record, max 100) to preview_write/validate_write — execution maps to a single atomic Odoo create(vals_list) call. Per-record differing write values are deliberately unsupported (they would need one non-atomic RPC per record). Optional extras: ODOO_MCP_ELICIT_WRITES=1 adds a native human-confirmation form, ODOO_MCP_AUDIT_LOG records every write-path event.

Reviewed side-effect methods such as sale.order.action_confirm can be enabled one by one:

export ODOO_MCP_ALLOWED_SIDE_EFFECT_METHODS="sale.order.action_confirm,res.partner.message_post"

ODOO_MCP_ALLOW_UNKNOWN_METHODS=1 is still supported for trusted deployments, but health_check reports it as broad mode. Prefer exact allowlist entries when you only need a small number of reviewed methods.

Docker

Use the prebuilt GHCR image:

docker pull ghcr.io/tuanle96/mcp-odoo:latest

Or build it locally:

docker build -t mcp/odoo:latest -f Dockerfile .

Run over stdio from an MCP client (replace mcp/odoo:latest with ghcr.io/tuanle96/mcp-odoo:latest to use the prebuilt image):

{
  "mcpServers": {
    "odoo": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e", "ODOO_URL",
        "-e", "ODOO_DB",
        "-e", "ODOO_USERNAME",
        "-e", "ODOO_PASSWORD",
        "-e", "ODOO_TRANSPORT",
        "-e", "ODOO_API_KEY",
        "mcp/odoo:latest"
      ]
    }
  }
}

Run Streamable HTTP locally:

docker run --rm \
  -p 127.0.0.1:8000:8000 \
  -e ODOO_URL \
  -e ODOO_DB \
  -e ODOO_USERNAME \
  -e ODOO_PASSWORD \
  -e ODOO_TRANSPORT \
  -e ODOO_API_KEY \
  mcp/odoo:latest \
  --transport streamable-http \
  --host 0.0.0.0 \
  --port 8000 \
  --allow-remote-http

Test

Run the normal quality gates:

uv run python -m ruff check .
uv run python -m mypy src
uv run python -m pytest

Run real Odoo smoke tests:

uv run --python 3.12 --with-editable . scripts/odoo_compose_smoke.py \
  --versions 16.0 17.0 18.0 19.0 \
  --timeout 360 \
  --inspector-smoke

The smoke harness boots disposable Docker Compose stacks, validates direct Odoo access, validates MCP stdio, and for Odoo 19 also validates JSON-2 and Streamable HTTP.

Run the multi-instance smoke (one stack, three databases, two accounts on one instance):

uv run --python 3.12 --with-editable . scripts/odoo_multi_instance_smoke.py

Compatibility

XML-RPC remains the default transport for broad compatibility. Odoo 19 supports External JSON-2 through ODOO_TRANSPORT=json2. XML-RPC and JSON-RPC are deprecated since Odoo 19 and scheduled for removal in Odoo 22 (fall 2028), so new integrations should plan for JSON-2.

Documentation

GuideCovers
docs/comparison.mdHow Odoo MCP compares to other Odoo MCP bridges
docs/architecture.mdSystem shape, transports, safety boundaries
docs/multi-instance.mdMulti-database config, routing, isolation model
docs/troubleshooting.mdFrom error text to root cause (ACL, record rules, routing)
docs/performance.mdCache/retry knobs, batching patterns, N+1 detection
docs/client-configs.mdClaude Desktop, Docker, Streamable HTTP setups
docs/testing.mdLocal gates and the Docker Compose smoke harness

Contributing

Issues, pull requests, and compatibility reports are welcome. Start with CONTRIBUTING.md, include your Odoo version, transport, client type, and the verification you ran.

Security

Do not publish logs that contain Odoo credentials, API keys, database names from private environments, or full Odoo debug traces. Report vulnerabilities through SECURITY.md.

License

MIT. See LICENSE.

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

Configuration

ODOO_URL*

Odoo server URL, e.g. https://mycompany.odoo.com

ODOO_DB*

Odoo database name

ODOO_USERNAME*

Odoo login (email)

ODOO_PASSWORD*secret

Odoo password or API key

Registryactive
Packageodoo-mcp
TransportSTDIO
AuthRequired
Resources1
Prompts5
Tools verifiedJun 10, 2026
UpdatedJun 10, 2026
View on GitHub