# tuanle96/mcp-odoo [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/tuanle96/mcp-odoo  
**GitHub Stars:** 435  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tuanle96-mcp-odoo

## Description
Production-grade MCP server for Odoo ERP (16-19) with zero Odoo-side install. 24 tools across read, write (approval-token gated), diagnose, migrate, and audit. JSON-2 transport for Odoo 19+, real Docker Compose smoke tests against Odoo 16/17/18/19, diagnostics (diagnoseodoocall, upgraderiskreport, fitgapreport, scanaddonssource), and 5 reusable agent prompts.

## Tools
Capabilities this server exposes over MCP:

- **data_quality_report** — Run read-only data-quality checks on one Odoo model: duplicates, missing required values, orphaned references, format anomalies
- **diagnose_odoo_call** — Diagnose an Odoo model call without executing it
- **generate_json2_payload** — Build a JSON-2 request preview without network access
- **inspect_model_relationships** — Inspect model relationships and required field metadata
- **diagnose_access** — Diagnose ACL and record-rule visibility for an Odoo model
- **upgrade_risk_report** — Report Odoo upgrade and JSON-2 migration risks
- **analyze_upgrade_log** — Classify Odoo install/update log errors into a migration worklist (no_action / needs_review / needs_script) with fix suggestions
- **lookup_model_history** — Look up Odoo model rename/removal history by old or new model name (e.g. account.invoice -> account.move)
- **fit_gap_report** — Classify Odoo requirements into fit/gap implementation buckets
- **scan_addons_source** — Scan local Odoo addon source without importing addon code
- **build_domain** — Build a validated Odoo domain from structured conditions
- **business_pack_report** — Report expected modules, models, and safe discovery calls for a business pack
- **get_odoo_profile** — Read a bounded profile of the connected Odoo environment
- **schema_catalog** — Build and cache a bounded Odoo model schema catalog
- **health_check** — Report this MCP server's non-secret runtime safety posture
- **list_instances** — List configured Odoo instance names without credentials
- **list_models** — List Odoo models with optional name filtering
- **get_model_fields** — Get field metadata for a specific Odoo model
- **search_records** — Search Odoo records with read-only search_read; optional free-text `query` matches across name/ref/email-like fields
- **read_record** — Read a single Odoo record by model and ID
- **read_attachment** — Read an ir.attachment's metadata and size-capped base64 content
- **aggregate_records** — Aggregate Odoo records server-side using Postgres groupby/sum/count. Uses formatted_read_group on Odoo 19+ and read_group on earlier versions.
- **search_employee** — Search for employees by name
- **search_holidays** — Search for holidays within a date range
- **preview_write** — Preview create, write, or unlink without executing it
- **validate_write** — Validate a standard write payload against optional fields_get metadata
- **execute_approved_write** — Execute a previously previewed and confirmed standard write
- **chatter_post** — 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.
- **execute_method** — Execute a custom method on an Odoo model
- **index_knowledge** — Fetch a bounded slice of records and build a local BM25 knowledge index
- **search_knowledge** — Relevance-ranked local BM25 search over previously indexed records
- **knowledge_stats** — Report local knowledge index sizes and document budget
- **receivable_payable_aging** — Aged receivable/payable report bucketed by days overdue
- **accounting_health_summary** — Open receivable/payable item counts and draft invoice backlog
- **search_across_instances** — Read-only search fanned out across configured Odoo instances, merged and attributed
- **aggregate_across_instances** — Read-only aggregate fanned out across instances with combined grand totals
- **accounting_health_across_instances** — AR/AP aging fanned out across instances — the partner-network sweep
- **submit_async_task** — Run an allowlisted long-running read operation in the background
- **get_async_task** — Poll a background task's status and result
- **cancel_async_task** — Cancel a pending or running background task
- **list_async_tasks** — List recent background tasks newest-first

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-odoo": {
    "command": "uvx",
    "args": ["odoo-mcp"]
  }
}
```

## Documentation

## What tuanle96/mcp-odoo MCP server does

The tuanle96/mcp-odoo MCP server exposes Odoo data and operational functions to MCP-compatible agents. It is designed for Odoo Community and Enterprise databases running versions 16 through 19, and does not require an App Store module or other Odoo-side installation. Agents can use it to inspect records and attachments, discover model schemas, construct domains, aggregate data, inspect access rules, and review data quality.

The server also supports operational work such as diagnosing failed Odoo calls, reviewing upgrade risks and logs, resolving model renames, scanning local addon source, and checking migration fit or gaps. Accounting-oriented functions include receivable/payable aging and an accounting health summary. Knowledge indexing and search provide local BM25 search over a bounded record slice without sending indexed data to an embeddings service.

## How it works

For Odoo 16–18, requests use XML-RPC. Odoo 19+ can use the External JSON-2 API. The server runs locally through stdio or can provide a local HTTP/SSE endpoint for clients that do not use stdio. A single process can be configured for multiple named Odoo instances, with an optional instance selector on tools and separate schema caches.

Read operations are the default focus. Writes through create, update, and delete paths are blocked unless the deployment enables writes and the request passes the approval workflow. Approved operations require live metadata, explicit confirmation, and a same-session approval token. Chatter posts follow the same gate unless direct chatter mode is enabled. An optional JSONL audit log records write-path events.

## Setup and configuration

The documented local installation command is:

```text
uvx odoo-mcp --setup
```

Configuration uses the Odoo connection details and credentials available to the local deployment. Optional controls cover field-level access rules, tool inclusion or exclusion, rate limiting, locale handling, structured logging, write elicitation, chatter behavior, and audit logging.

The project is available as the `odoo-mcp` Python package and is licensed under MIT. The local server is described as free to run; the separately hosted ERPipe service is a different product and is not required for this repository.

## Tools and capabilities

The documented tool surface includes 41 tools and 11 prompts. Capabilities include:

- Search, read, aggregate, and inspect Odoo records and attachments.
- Discover schemas, build domains, and apply smart field selection.
- Diagnose calls, inspect upgrade risk, and generate fit/gap reports.
- Scan local addon source and review migration-related data quality.
- Run long read operations as background tasks and poll their status.
- Query several configured instances with merged, attributed results.
- Use workflow prompts for invoice approval, purchase-order matching, onboarding, expense review, month-end close, and pre-migration checks.

## Limitations and notes

The tuanle96/mcp-odoo MCP server is a self-hosted local Python project, not the managed ERPipe gateway. The README identifies Claude Code and Cursor among its clients; the hosted service has a different remote URL and tool surface. Odoo 19 support depends on the External JSON-2 path, while earlier versions use XML-RPC. Write access is intentionally restricted by default workflow controls, so read-only deployments are the safer starting point for evaluation.

_Full upstream README: https://allmcps.com/mcp/tuanle96-mcp-odoo/readme_

