odoo-community-mcp
Provides read-only access to Odoo data through Odoo's JSON-2 API, with tools to list allowed models, inspect fields, search and count records using validated domains/fields/order, and read records by ID. Requests use the caller's own Odoo API key so Odoo enforces access rights, record rules, and field access.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
odoo-community-mcp
A stateless Model Context Protocol server for Odoo 19 and newer. It lets AI clients such as Claude Code or Claude Desktop read Odoo data — with each user's own permissions.
sequenceDiagram
autonumber
participant C as MCP client<br/>(Claude Code, Claude Desktop, …)
participant G as odoo-community-mcp
participant O as Odoo JSON-2 API
C->>G: tools/call search_records<br/>Authorization: Bearer (user's own API key)
G->>G: require bearer, rate limit per key,<br/>model allowlist, validate domain/fields/order
G->>O: POST /json/2/res.partner/search_read<br/>Authorization: bearer (same key)
O->>O: check key, access rights,<br/>record rules, field access
O-->>G: only records this user may see
G-->>C: records (never Odoo error texts or tracebacks)Per-user pass-through. Every request carries the caller's own Odoo API key. The server forwards it to Odoo's JSON-2 API and Odoo enforces access rights, record rules and field access. There is no service account and no key is ever stored.
One deployment for everyone. Users only create an API key and configure their client.
Read-only in this version:
list_models,get_fields,search_records,count_records,read_records. There is no generic "call any method" tool.Hardened: model allowlist, strict validation of domains, fields and sort order, per-key rate limit, no Odoo error details or tracebacks to clients, keys never logged, minimal rootless container image with signed releases.
For users
1. Create an Odoo API key
In Odoo, open your avatar → Preferences → Account Security.
Click New API Key, confirm your identity, enter a description (e.g.
mcp laptop) and pick a duration. Odoo caps the lifetime (at most three months), so plan to rotate.Copy the key now — Odoo shows it only once. Treat it like a password.
If you sign in to Odoo only via single sign-on (OAuth) and have no Odoo password, Odoo's identity check may block step 2. Ask your Odoo administrator how keys are issued in your company (see Known limitations).
2. Configure your MCP client
Claude Code:
claude mcp add --transport http odoo https://odoo-mcp.example.com/mcp \
--header "Authorization: Bearer <your Odoo API key>"Other clients: add a Streamable HTTP server with the URL https://<host>/mcp and the
header Authorization: Bearer <your Odoo API key>.
Then ask, for example: "List the ten newest sale orders of customer Acme."
3. Revoke a key
In Odoo, Preferences → Account Security → API Keys, delete the key. It stops working immediately, also for this server. Remove it from your client configuration too.
Related MCP server: mcp-server-odoo
Tools
Tool | Odoo method | Purpose |
| – | Models this deployment allows ( |
|
| Field names, types, labels, relations, required flag |
|
| Search with |
|
| Count matches of a domain |
|
| Read records by id |
Domains use Odoo's prefix notation, e.g. ["|", ["name", "ilike", "acme"], ["email", "ilike", "@acme.com"]].
Dotted paths such as country_id.code are allowed when every model on the path is in the allowlist.
Relations to models outside the allowlist can only be compared by id, cannot be used for
sorting, and their values come back as plain ids (without the related record's name).
Without fields, results contain stored, non-binary, non-x2many fields (at most 100).
For operators
Run
docker run -d --name odoo-mcp \
--read-only --cap-drop ALL --security-opt no-new-privileges \
-e ODOO_URL=https://odoo.example.com \
-e ODOO_DB=mydb \
-e ODOO_MODELS=res.partner,sale.order,account.move \
-e MCP_ALLOWED_HOSTS=odoo-mcp.example.com \
-p 127.0.0.1:8000:8000 \
ghcr.io/meevagmbh/odoo-community-mcp:latestPut it behind a TLS-terminating reverse proxy and expose only https://<host>/mcp.
GET /healthz returns {"status":"ok"} without authentication and reveals nothing else.
Responses are plain JSON (no long-lived SSE streams), so proxies need no special
buffering settings.
Configuration
Variable | Default | Description |
| – (required) | Base URL of Odoo. Must be |
| – (required) | Database name, sent as |
| – (required) | Comma-separated model allowlist. Other models are refused even if the user may read them in Odoo. |
|
| Timeout per Odoo call. |
|
| Allow |
|
| Upper bound for one Odoo response. |
| empty (any) | Comma-separated |
| empty (none) | Browser origins allowed to call the server. Requests with any other |
|
| Maximum request body. |
|
| Requests per minute per API key ( |
|
| Listen port inside the container. |
|
|
|
There is deliberately no setting for an Odoo API key.
Odoo requirements: the rpc module (auto-installed with base), reachable from the
container. Users need keys with the default rpc scope.
Supported Odoo versions
Odoo | Status | Checked |
19.0 | supported | every pull request and push (required check) |
20.0 | supported | every pull request and push (required check) |
| early warning | daily and on relevant pull requests, not blocking |
master (next, unreleased) | early warning | daily from the nightly build, not blocking |
Versions before 19.0 lack the JSON-2 API and are not supported. Tests run against Odoo Community; Enterprise exposes the same JSON-2 API but is not tested here. A failing daily early-warning run opens an issue, so incompatibilities show up before a release.
Logs
JSON lines on stdout, timestamps in UTC. Every tool call produces an audit event with the key fingerprint (first 8 hex chars of SHA-256), tool, model, outcome, Odoo status, result count and duration. API keys and Odoo error texts are never logged; request data is not logged either, except a short, truncated excerpt of input the server rejected.
{"ts": "2026-11-24T22:05:11.518+00:00", "level": "INFO", "logger": "odoo_mcp.audit", "event": "tool_call", "key_fp": "3f9a1c2b", "tool": "search_records", "model": "res.partner", "outcome": "ok", "odoo_status": 200, "result_count": 12, "duration_ms": 84}Verify an image
Releases are signed keylessly with Sigstore (verify with cosign 3 or newer) and carry SLSA provenance and SBOM attestations.
Each GitHub release also ships SBOMs (SPDX, CycloneDX) and SHA256SUMS as assets
(see SECURITY.md):
cosign verify ghcr.io/meevagmbh/odoo-community-mcp:<version> \
--certificate-identity-regexp '^https://github.com/meevagmbh/odoo-community-mcp/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
gh attestation verify oci://ghcr.io/meevagmbh/odoo-community-mcp:<version> --repo meevagmbh/odoo-community-mcpKnown limitations
Read-only. Write tools are planned behind an explicit switch and their own allowlist.
API keys instead of OAuth. Each user holds an Odoo API key.
SSO-only users. Odoo asks for the password before it creates a key. Users without a password need another way to obtain one, e.g. a key issued by an administrator.
Rate limit per process. With several replicas the effective limit multiplies.
Development
Requires Docker; Python 3.15 and uv are provided by a pinned container.
git config core.hooksPath .githooks # pre-commit: format+lint, pre-push: full checks
scripts/check.sh # format, lint, mypy (strict), unit tests with coverage
scripts/integration.sh # throwaway Odoo 20 + two users, integration tests
ODOO_IMAGE=odoo:19.0 scripts/integration.sh # same against another Odoo image
ODOO_IMAGE=master scripts/integration.sh # same against Odoo master (nightly build)
docker build -t odoo-community-mcp:dev . && scripts/image-smoke-test.sh odoo-community-mcp:devWith a local uv ≥ 0.13.8 and Python 3.15 the scripts use it directly. See CONTRIBUTING.md for the workflow, conventions and dependency policy.
Releasing
Bump
versioninpyproject.tomlon a branch, merge it.Tag the merge commit:
git tag -s vX.Y.Z && git push origin vX.Y.Z.The release workflow builds a multi-arch image (
linux/amd64,linux/arm64), pushes it to GHCR, signs it, attests provenance and creates the GitHub release with notes. Every push tomainalso publishes:edge.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read, write and run Odoo actions from any AI app, as each user, with approval rules per colleague.
Odoo MCP connector for ChatGPT and Claude: ask sales, invoices and stock in plain words. Read-only.
Connect any AI assistant to Odoo 16–19 via OAuth 2.0 + PKCE. 400 free calls, no local install.
Read-only access to a company's ERP for Claude, ChatGPT and Gemini, with OAuth and an audit trail.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Odoo databases via OdooRPC, allowing AI assistants to query and analyze Odoo data through the MCP protocol.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to fully interact with Odoo ERP instances over XML-RPC, supporting read and write operations on any model without requiring Odoo module installation.5AGPL 3.0
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to securely connect to Odoo and perform CRUD operations, custom tool calls, and data queries through natural language, with OAuth 2.1 and API key authentication.-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants like Claude, ChatGPT, and Copilot to connect to Odoo ERP, providing tools to search, read, create, and update any Odoo model such as partners, sales orders, invoices, and products.11 npmAGPL 3.0