Server facts
mcp-odoo
GitHub stars
439
Last commit
Aug 25, 2026
Runtime
python
License
MIT
Project
- Author
- tuanle96
- Repository
- github.com/tuanle96/mcp-odoo
- Website
- erpipe.com/
- License
- MIT
- Category
- AI Models & Agents
Tech
- Runtime
- python
- Transports
- stdiostreamable-http
- Remote access
- No
- Authentication
- Odoo user credentials or API key (optional OAuth 2.1 for HTTP)
Activity
- GitHub stars
- 439
- Last commit
- Data as of
Tags
- Mcp Servers
- mcp
- mcp server
- odoo
- odoo mcp
Overview
Teams looking for an `odoo mcp` server that requires no Odoo-side App Store add-on or admin install can launch `erpipe-org/mcp-odoo` (formerly `tuanle96/mcp-odoo`, MIT license) directly with existing user credentials across Odoo Community and Enterprise 16–19+. Interactive onboarding runs via `uvx odoo-mcp --setup`, testing connectivity and generating snippets for Claude Code (`claude mcp add odoo ... -- uvx odoo-mcp`), Cursor, and Claude Desktop, while `pip`, `pipx`, and prebuilt GHCR Docker images (`ghcr.io/erpipe-org/mcp-odoo:latest`) cover local or containerized setups. It speaks XML-RPC by default and External JSON-2 (`ODOO_TRANSPORT=json2`) for Odoo 19+ ahead of the planned Odoo 22 XML-RPC removal, running over `stdio` or local Streamable HTTP (`--transport streamable-http --port 8000`) with optional OAuth 2.1 RFC 7662 introspection—or users can opt for the maintainer's managed ERPipe gateway at `https://mcp.erpipe.com/mcp`.
Across 41 tools and 11 workflow prompts, the server combines smart-field record reads (`search_records`, `read_record`), PostgreSQL-backed aggregation (`aggregate_records`), accounting summaries (`receivable_payable_aging`, `accounting_health_summary`), local-first BM25 indexing (`index_knowledge`, `search_knowledge`), addon/upgrade diagnostics, background task polling, and multi-instance fan-out (`search_across_instances`). Direct `create`, `write`, and `unlink` calls are blocked; mutations follow a gated `preview_write` -> `validate_write` -> `execute_approved_write` flow requiring `ODOO_MCP_ENABLE_WRITES=1`, live `fields_get` validation, same-session instance-bound tokens, optional MCP elicitation (`ODOO_MCP_ELICIT_WRITES=1`), JSONL audit logging, and opt-in field-level ACL policies.
Install & configure
Requirements
- `uv` / `uvx` (or `pip` / `pipx` / Docker `ghcr.io/erpipe-org/mcp-odoo:latest`)
- Existing Odoo 16+ credentials (`ODOO_URL`, `ODOO_DB`, `ODOO_USERNAME`, and `ODOO_PASSWORD` or `ODOO_API_KEY` for JSON-2); no Odoo App Store module required
- Optional `ODOO_MCP_ENABLE_WRITES=1` only when enabling gated write execution
uvx odoo-mcp --setupRun `uvx odoo-mcp --setup` for an interactive wizard that tests connectivity and prints ready-to-paste snippets for Claude Code, Cursor, and Claude Desktop, or run `claude mcp add odoo` with your Odoo environment variables. For remote hosted access without self-hosting, ERPipe exposes `https://mcp.erpipe.com/mcp`.
Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.
{
"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",
"ODOO_TRANSPORT": "xmlrpc"
}
}
}
}Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.
{
"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",
"ODOO_TRANSPORT": "xmlrpc"
}
}
}
}Config file · Workspace: .vscode/mcp.json
For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.
{
"servers": {
"odoo": {
"type": "stdio",
"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",
"ODOO_TRANSPORT": "xmlrpc"
}
}
}
}Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.
{
"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",
"ODOO_TRANSPORT": "xmlrpc"
}
}
}
}Config file · Project scope: .mcp.json at the repository root
The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"odoo": {
"type": "stdio",
"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",
"ODOO_TRANSPORT": "xmlrpc"
}
}
}
}Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Tools
Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.
| Tool | What it does |
|---|---|
| list_models | List Odoo model technical names and human-readable labels for the active or target instance. |
| get_model_fields | Retrieve field metadata and schema definitions for a specific Odoo model. |
| search_records | Execute bounded read-only search_read queries with smart business-field curation when fields are omitted. |
| read_record | Fetch a single Odoo record by model and ID with automatic smart-field curation. |
| aggregate_records | Push server-side groupby, sum, count, and average queries into Postgres via formatted_read_group (Odoo 19+) or read_group (16–18). |
| preview_write | Build a canonical, non-executing write preview payload for proposed create, write, or unlink actions. |
| validate_write | Validate a write payload against live fields_get metadata, required/readonly rules, and record IDs to issue a session approval token. |
| execute_approved_write | Execute an approved, live-validated write payload only when ODOO_MCP_ENABLE_WRITES=1 and explicit confirmation are supplied. |
| chatter_post | Post a message onto a mail.thread record through the write approval gate (or directly via MCP_CHATTER_DIRECT=1). |
| diagnose_odoo_call | Inspect and troubleshoot a model call without executing it against Odoo. |
| diagnose_access | Check ACL and record-rule visibility for the configured Odoo user credential. |
| generate_json2_payload | Convert XML-RPC-shaped call inputs into External JSON-2 endpoints, headers, and named bodies for Odoo 19+ migration. |
| upgrade_risk_report | Identify transport, method, and compatibility migration risks across Odoo versions. |
| scan_addons_source | Analyze local Odoo addon source trees statically without importing addon code. |
| index_knowledge | Build an in-process, accent-insensitive local BM25 index over a bounded slice of Odoo records. |
| search_knowledge | Run relevance-ranked free-text search over locally indexed Odoo records with zero extra RPC calls. |
| receivable_payable_aging | Generate aged AR/AP reports bucketed by days overdue with per-partner totals. |
| accounting_health_summary | Summarize open receivable and payable counts alongside the draft invoice backlog. |
| search_across_instances | Fan out read-only record searches across multiple configured Odoo instances with attributed, partial-failure-tolerant results. |
| health_check | Report non-secret runtime posture, rate-limit counters, N+1 read loop flags, and field-ACL status. |
Use cases
- Query unpaid invoices, low-stock products, and AR/AP aging buckets across Odoo 16–19+ Community or Enterprise without deploying custom Odoo modules.
- Run read-only fleet sweeps across multiple client Odoo databases with `search_across_instances`, `aggregate_across_instances`, and `accounting_health_across_instances`.
- Audit custom Odoo addons for Odoo 19 and JSON-2 migration risks using `scan_addons_source`, `upgrade_risk_report`, and `generate_json2_payload`.
- Execute governed record updates through `preview_write`, `validate_write`, `execute_approved_write`, optional MCP elicitation forms, and JSONL audit trails.
Strengths
- Requires zero Odoo-side setup—works out of the box against Odoo 16–19+ Community and Enterprise using existing credentials.
- Blocks raw `create`/`write`/`unlink` by default, enforcing live metadata validation, instance-bound approval tokens, optional human elicitation, and JSONL audit logs.
- Supports both XML-RPC (16–18) and External JSON-2 (19+), plus multi-instance fan-out, field-level ACL policies, and local BM25 search.
- Trims tool exposure via `ODOO_MCP_TOOLS_INCLUDE`/`EXCLUDE` globs and extends via pip-installable `odoo_mcp.tools` plugins.
Limitations
- The full 41-tool catalog can crowd smaller LLM context windows unless trimmed with `ODOO_MCP_TOOLS_INCLUDE` or `ODOO_MCP_TOOLS_EXCLUDE`.
- Self-hosted Streamable HTTP binds to localhost by default and ships without built-in authentication unless you configure external auth/TLS or OAuth 2.1 token introspection.
- MCP resource URIs (`odoo://...`) always target the default instance in this release, so multi-instance lookups must use tool parameters.
mcp-odoo setup notes
- Check ODOO_DB, ODOO_PASSWORD, ODOO_TRANSPORT, ODOO_URL, ODOO_USERNAME in the mcp-odoo configuration if startup or authentication fails.
- mcp-odoo's example uses stdio, while its catalog transports are stdio / streamable-http; use the example's connection type.