# Odoo MCP

> A safety-gated MCP server for connecting to Odoo, including multiple instances.

- **URL**: https://followmcp.com/en/servers/mcp-odoo
- **Category**: Database
- **Origin**: Community
- **Stars**: 439
- **FMRS Score**: 62/100 (Grade C)
- **Source**: https://github.com/erpipe-org/mcp-odoo
- **Transports**: stdio (local process), Streamable HTTP
- **Runtimes**: Python
- **Auth**: API key / credential required

## Overview
Odoo MCP connects Odoo 16+ databases to MCP clients, with record reading, diagnostics, schema discovery, migration helpers, and gated writes. It supports XML-RPC for Odoo 16–18 and External JSON-2 for Odoo 19+, and can run over stdio or local Streamable HTTP. It is maintained by erpipe-org and is not identified as an official Odoo product.

## Best for
- Teams that want local AI assistants or automation to read Odoo data safely.
- Operations or implementation teams connecting multiple Odoo instances through one server.
- Odoo developers and consultants who need schema discovery, diagnostics, and migration help.

## Not for
- Users who require an official Odoo product or upstream maintenance commitment.
- Workflows that expect arbitrary writes to run without review.
- Deployments needing built-in remote HTTP authentication; the project says the server does not include it.

## Required permissions
- Requires the Odoo server URL, database name, username, and password or API key.
- Read access is limited by the Odoo user's own access control lists, record rules, and server constraints.
- Writes are disabled by default; approved writes require an explicit write-enable setting plus same-session validation, confirmation, and approval-token checks.
- Remote HTTP deployments require the operator to provide authentication, TLS, and network policy.

## Risks
- Configured Odoo credentials can access data available to that account and should be protected.
- When writes are enabled, confirmed operations modify Odoo data; Odoo access rules and server constraints still govern the result.
- The server has no built-in HTTP authentication; protect HTTP transport exposed beyond the local machine.
- Cross-instance tools read and combine data from the selected instances, though they are read-only.

## Client config (JSON)
```json
{"mcpServers":{"odoo":{"command":"uvx","args":["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"}}}}
```

## Tools (39)
- `list_models`: List Odoo model technical names and labels.
- `get_model_fields`: Read field metadata for a model.
- `search_records`: Run a bounded, read-only record search with optional smart field selection.
- `read_record`: Read one record by model and record ID.
- `aggregate_records`: Run server-side grouping and aggregation in Odoo.
- `search_employee`: Search employees by name.
- `search_holidays`: Search leave records by date range.
- `get_odoo_profile`: Read the server version, user context, transport, database, and installed-module summary.
- `schema_catalog`: Build a bounded model catalog, optionally including field metadata.
- `build_domain`: Build and validate an Odoo domain from structured conditions.
- `read_attachment`: Read attachment metadata and size-capped content.
- `preview_write`: Create a non-executing approval payload for create, update, or delete.
- `validate_write`: Validate a write payload against live field metadata.
- `execute_approved_write`: Execute a validated write only when approval and configuration gates pass.
- `execute_method`: Execute a reviewed model method; side-effect methods require an allowlist entry.
- `chatter_post`: Post a message to a mail.thread record; approval is required by default.
- `diagnose_odoo_call`: Diagnose a model call without executing it.
- `diagnose_access`: Diagnose ACL and record-rule visibility for the current credentials.
- `inspect_model_relationships`: Summarize relationship fields, required fields, and create/write hints.
- `generate_json2_payload`: Convert XML-RPC-shaped input into a JSON-2 request preview.
- `upgrade_risk_report`: Surface transport, method, and migration risks across Odoo versions.
- `lookup_model_history`: Look up an old model name in a versioned rename catalog.
- `scan_addons_source`: Scan local addon source without importing addon code.
- `fit_gap_report`: Classify requirements as standard, configuration, Studio, custom module, avoid, or unknown.
- `business_pack_report`: Report expected modules, models, and discovery calls for a business area.
- `index_knowledge`: Fetch a bounded record slice and build a local BM25 index.
- `search_knowledge`: Search indexed records by text relevance.
- `knowledge_stats`: Report index sizes by model and the document budget.
- `receivable_payable_aging`: Summarize receivable and payable aging by days overdue and partner totals.
- `accounting_health_summary`: Summarize open receivable/payable items and draft invoice backlog.
- `submit_async_task`: Submit an allowed long-running read task to a worker pool.
- `get_async_task`: Poll a background task's status and result.
- `cancel_async_task`: Cancel a pending or running task.
- `list_async_tasks`: List live and recently completed background tasks.
- `search_across_instances`: Search selected instances and attribute results; read-only.
- `aggregate_across_instances`: Aggregate per instance and combine additive totals.
- `accounting_health_across_instances`: Summarize receivable and payable aging across instances.
- `health_check`: Report non-secret MCP runtime posture.
- `list_instances`: List configured instances and connection details without credentials.
