/odoo-mcp:odoo-mcp-clifrom Odoo MCP
Use this skill when you need to manage Odoo profiles or run data operations directly from the terminal using the odoo-mcp CLI. Triggers on: 'add profile', 'list profiles', 'test connection', 'search records cli', 'export records', 'import records cli', 'run mcp server', 'shared mcp server', 'mcp over http', 'odoo-mcp command', 'delete records cli', 'unlink records'.
Ships in Odoo MCP. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Complete reference for every CLI command provided by odoo-mcp.
Use this skill when interacting with Odoo directly from the terminal or
writing automation scripts — all commands output JSON to stdout and are
pipeable with tools like jq.
odoo-mcp-multi installed (pip install odoo-mcp-multi)odoo-mcp add-profile)odoo-mcp add-profile (interactive) or supply flags directly.odoo-mcp test -p <profile>, and check that the profile's URL and database (odoo-mcp list-profiles) are the database the user named. Never substitute a profile for another database, or credentials from an earlier session; if none matches, ask the owner to add one. Configure a new target as read-only first, with profiles.json: "permissions": {"mode": "granular", "allowed_operations": ["search_read", "search_count", "list_models", "list_fields"]}, and allow writes only for the operation the user authorized.--profile / -p to target a specific environment.jq for further processing.If executing odoo-mcp CLI commands inside a sandboxed AI agent environment results in:
Fatal Python error: init_import_site OR PermissionError: .../pyvenv.cfgRefer to AGENT.md / CLAUDE.md at repository root for least-privilege target path permissions (~/.local/pipx/venvs/odoo-mcp-multi/ or ~/.local/share/uv/tools/odoo-mcp-multi/) and zero-retry resolution directives.
All data commands accept:
| Flag | Short | Description |
|---|---|---|
--profile | -p | Target profile name (uses default if omitted) |
--help | Show command help and usage |
add-profile — Register a New InstanceInteractive wizard to add Odoo connection credentials.
# Interactive mode
odoo-mcp add-profile
# Non-interactive — legacy auth (Odoo < 19)
odoo-mcp add-profile --name prod --url https://odoo.example.com --database mydb --user admin --password secret
# Non-interactive — Odoo 19+ (JSON-2 Bearer token)
odoo-mcp add-profile --name prod19 --url https://odoo19.example.com --database mydb --api-key YOUR_API_KEY --protocol json2s
| Flag | Description |
|---|---|
--name | Profile name |
--url | Odoo instance URL |
--database | Database name |
--user | Login username (legacy auth, Odoo < 19) |
--password | Login password (legacy auth, Odoo < 19) |
--api-key | API key for Odoo 19+ Bearer auth (/json/2) |
--protocol | RPC protocol: auto, json2s, jsonrpcs, xmlrpcs (default: auto) |
--default | Set as the default profile |
--test/--no-test | Test connection before saving (default: --test) |
list-profiles — Show Configured Profilesodoo-mcp list-profiles
Output: JSON array with name, URL, database, and default status for each profile.
edit-profile — Modify an Existing Profile# NAME is a positional argument
odoo-mcp edit-profile prod --url https://new-url.example.com
# Rename a profile
odoo-mcp edit-profile old-name --new-name better-name
# Update API key (prompts interactively)
odoo-mcp edit-profile prod19 --api-key
Only the specified fields are updated; others remain unchanged.
remove-profile — Delete a Profile# NAME is a positional argument
odoo-mcp remove-profile staging
# Skip confirmation
odoo-mcp remove-profile staging --force
set-default — Set the Default Profileodoo-mcp set-default prod
test — Test Connectionodoo-mcp test -p prod
Verifies that the stored credentials can connect to the Odoo instance.
run — Start the MCP Server (stdio)# stdio (default): serves the single client that launched the process
odoo-mcp run
# Fallback profile for tool calls that omit `profile`
odoo-mcp run -p prod
| Flag | Short | Default | Description |
|---|---|---|---|
--profile | -p | default profile | Fallback profile for tool calls that omit profile |
Every client session starts its own run process (~60 MiB each). When many
sessions stay open at once on one workstation, use serve --auth local
instead.
serve — Start the MCP Server over HTTPOne process for many clients. --auth picks who they are:
# local: every MCP client on this machine, with this machine's profiles.json
odoo-mcp serve --auth local --port 5010 [-p prod]
# oauth (default): remote users sign in with their own Odoo credentials;
# --public-url is the exact URL users paste into their client
odoo-mcp serve --port 5010 --public-url https://odoo-mcp.example.com/mcp
| Flag | Short | Default | Description |
|---|---|---|---|
--auth | oauth | local or oauth | |
--profile | -p | default profile | Fallback profile, --auth local only |
--host | 127.0.0.1 | Bind address. --auth local only accepts 127.0.0.1, localhost or ::1 | |
--port | 5010 | HTTP port (serves http://HOST:PORT/mcp) | |
--max-concurrency | 32 | Tool calls that run at once |
--auth localAll sessions share one process and the same profiles, and tool calls run in
worker threads so a slow Odoo call from one session does not hold up the
others. The process holds the credentials of every profile, so it is
guarded by a bearer token that the first start writes to
~/.config/odoo-mcp/local-token (mode 0600, like profiles.json) and that
every request must present. Never print, paste or log the token itself;
refer to the file. --rotate-token replaces it.
--host 0.0.0.0 or a LAN address exits with an
error. Do not work around it with a proxy, tunnel or port forward: that
exposes every configured Odoo instance to whoever can reach it. To serve
other machines use --auth oauth.Origin, so browser-based tools
(MCP Inspector) cannot connect to it.Register the running server in the client instead of the stdio command, for example in Claude Code:
claude mcp add -s user --transport http odoo http://127.0.0.1:5010/mcp \
--header "Authorization: Bearer $(cat ~/.config/odoo-mcp/local-token)"
Profiles are read on every call, so add-profile and edit-profile take
effect without restarting the server. Restart it after upgrading
odoo-mcp-multi; clients reconnect on their own.
On Linux, run it as a background service instead of a terminal:
odoo-mcp service install [--port 5010] [-p prod] # write, enable, start; prints the client command
odoo-mcp service status
odoo-mcp service uninstall
The systemd user unit runs the environment this odoo-mcp was installed in
(pip, pipx, uv tool), or uvx --from odoo-mcp-multi==<version> under uvx.
Run service install again after odoo-mcp upgrade to restart it on the
new version. --dry-run prints the unit without changing anything. Not
available on macOS or Windows yet.
--auth oauthFor remote clients. Users authenticate with their own Odoo credentials on a
consent page, and every tool call runs as that Odoo user; the host's
profiles.json is not used. Inspect and revoke what it has issued:
odoo-mcp http grants
odoo-mcp http revoke <grant-id>
search-count — Count RecordsCount records matching a domain without fetching data (~100 bytes) —
size a result set before a wide search-read.
odoo-mcp search-count -m res.partner -d "[('is_company', '=', True)]" -p prod
read-group — Totals and BreakdownsOne row per group, computed by Odoo, instead of reading the records and adding them up. Same result keys on Odoo 17, 18 and 19+.
odoo-mcp read-group -m account.move -g partner_id --aggregates "amount_total:sum,__count" \
-d "[('state', '=', 'posted')]" --order "amount_total:sum desc" -l 10 -p prod
search-read — Query Recordsodoo-mcp search-read -m res.partner \
--domain "[('is_company', '=', True)]" \
--fields "name,email,phone" \
--limit 10 \
--order "name asc" \
-p prod
| Flag | Short | Default | Description |
|---|---|---|---|
--model | -m | (required) | Model name |
--domain | -d | [] | Odoo domain filter |
--fields | -f | all | Comma-separated field names |
--limit | -l | 25 | Max records (default: 25) |
--offset | 0 | Records to skip (pagination) | |
--order | "" | Sort order | |
--format | -F | json | Output format: json, compact, table, html, csv |
Output is a pagination envelope with records, total, has_more, and next_offset.
write — Update Recordsodoo-mcp write -m res.partner \
--ids "1,2,3" \
--values '{"phone": "+52 555 1234"}' \
-p prod
| Flag | Short | Description |
|---|---|---|
--model | -m | Model name |
--ids | -i | Record IDs (comma-separated or JSON array) |
--values | -v | JSON object with field values |
unlink — Delete RecordsDeleting is irreversible. First read the exact records (search-read on those ids with the identifying fields) and the records that depend on them; on a model with an active field add ('active', 'in', [True, False]) to the domain, because these reads take no context and otherwise skip archived records. A deleted res.users leaves its res.partner behind (partner_id is ondelete='restrict'). Show the list and get confirmation. Archive (active=False) when the record has business history. After the call, read the same ids back (archived ones included) and report what you observe. On a read-only profile unlink is refused before any request: report the refusal, and never say the records were deleted.
odoo-mcp unlink -m res.partner \
--ids "10,11,12" \
-p prod
| Flag | Short | Description |
|---|---|---|
--model | -m | Model name |
--ids | -i | Record IDs (comma-separated or JSON array) |
create — Create a Recordodoo-mcp create -m res.partner \
--values '{"name": "Alice", "email": "[email protected]"}' \
-p prod
| Flag | Short | Description |
|---|---|---|
--model | -m | Model name |
--values | -v | JSON object with field values |
export-records — Native ExportUses Odoo's export_data — returns a clean array of dicts with External IDs.
odoo-mcp export-records -m res.partner \
--fields "id,name,country_id/id" \
--domain "[('active', '=', True)]" \
-p prod
| Flag | Short | Default | Description |
|---|---|---|---|
--model | -m | (required) | Model name |
--fields | -f | id,name | Comma-separated fields |
--domain | -d | [] | Search domain |
--limit | -l | 500 | Max records to export |
--offset | 0 | Records to skip (pagination) |
Output is a pagination envelope with records, total, has_more, and next_offset.
Tip: Use
field/idsyntax to get External IDs of relational fields.
import-records — Native Import (Bulk)Uses Odoo's load — updates records with matching External IDs; creates new ones otherwise.
odoo-mcp import-records -m res.partner \
--fields "id,name,phone" \
--rows '[{"id": "base.res_partner_1", "name": "Updated", "phone": "12345"}]' \
-p prod
| Flag | Short | Description |
|---|---|---|
--model | -m | Model name |
--fields | -f | Comma-separated field names matching the data |
--rows | -r | JSON array of dicts |
execute-kw — Execute Any Method# Confirm a sale order
odoo-mcp execute-kw -m sale.order \
--method action_confirm \
--args "[[42]]" \
-p prod
# Send an email
odoo-mcp execute-kw -m mail.mail \
--method send \
--args "[[123]]" \
--kwargs '{"force_send": true}' \
-p prod
| Flag | Short | Default | Description |
|---|---|---|---|
--model | -m | (required) | Model name |
--method | (required) | Method to call | |
--args | -a | [] | Positional args (JSON array) |
--kwargs | -k | {} | Keyword args (JSON object) |
get-version — Server Versionodoo-mcp get-version -p prod
list-models — Discover Modelsodoo-mcp list-models --search partner -p prod
| Flag | Short | Description |
|---|---|---|
--search | -s | Filter models by name or technical name |
list-fields — Inspect Model Schemaodoo-mcp list-fields -m account.move -p prod
| Flag | Short | Description |
|---|---|---|
--model | -m | Model name to inspect |
studio-export — Download Studio Customizationsodoo-mcp studio-export -p <profile> -o customizations.zip --yes
| Flag | Short | Description |
|---|---|---|
--output | -o | ZIP file to write (default customizations.zip); written atomically |
--yes | Confirm the write; required without a terminal |
Odoo builds this archive in the /web_studio/export web controller, not in an RPC method, so execute-kw cannot return it. The command opens a web session with the profile's password, downloads the archive and closes the session; the password never leaves the package.
studio.export.wizard record, which Odoo fills with transient studio.export.wizard.data rows, and deletes the wizard and those rows after the download. Say so and name the database before running it. A granular profile needs studio_export in allowed_operations.studio_customization module is refused before any write: Studio holds nothing to export there, and the export controller would create that module.leftover_wizard_id or leftover_wizard_data_ids, those records could not be deleted: report the ids. On a failed export the CLI prints them on stderr.warning as it is, for example a web session that Odoo did not confirm as closed.The --format / -F flag changes how output is written to stdout:
records,
total, has_more, next_offset) as a single JSON object — ideal for
piping into jq.table, csv, html) print the formatted data
directly to stdout without JSON wrapping, making them suitable for
human-readable display or redirection to a file.# comment
header line at the top of the output (e.g.,
# total=1500 limit=25 offset=0 has_more=true next_offset=25).The --format flag is available on these commands:
search-readlist-fieldslist-modelsexport-records# Human-readable table, limited to 10 rows
odoo-mcp search-read -m res.partner -f name,email --format table -l 10
# CSV export piped to a file
odoo-mcp search-read -m res.partner -f name,email,phone --format csv > partners.csv
jqUser: "Get only the names of all companies"
Action:
odoo-mcp search-read -m res.partner -d "[('is_company','=',True)]" -f "name" | jq '.records[].name'
User: "Copy all active products from staging to prod"
Action:
# Export from staging
odoo-mcp export-records -m product.template -f "id,name,list_price" -p staging > products.json
# Import to prod using the exported file
odoo-mcp import-records -m product.template -f "id,name,list_price" -r "$(cat products.json)" -p prod
User: "Confirm all draft sale orders in prod"
Action:
#!/bin/bash
ORDERS=$(odoo-mcp search-read -m sale.order -d "[('state','=','draft')]" -f "id" -p prod | jq '[.records[].id]')
odoo-mcp execute-kw -m sale.order --method action_confirm --args "[$ORDERS]" -p prod
User: "Delete all archived partners"
Action:
Capture a bounded snapshot of records and their IDs first; check success, total and has_more, page or explicitly limit the authorized scope, preview that same snapshot and its dependents, obtain confirmation for those exact IDs, and pass only those saved IDs to unlink. Never rebuild the ID list from the domain after confirmation. Read back the complete saved ID set, including inactive records, with pagination; do not infer deletion from a truncated or failed read.
DOMAIN="[('active','=',False)]"
# One snapshot: the preview and the ids to delete both come from this file.
odoo-mcp search-read -m res.partner -d "$DOMAIN" -f "id,name,email" -l 500 -p prod > snapshot.json
jq -e '.success != false and has("records")' snapshot.json > /dev/null || exit 1
jq -r '"total=\(.total) has_more=\(.has_more)"' snapshot.json
# has_more=true: page with --offset, or say that only this batch is authorized.
jq -r '.records[] | [.id, .name, .email] | @tsv' snapshot.json
IDS=$(jq -c '[.records[].id]' snapshot.json)
# Show the snapshot and its dependents, get confirmation for exactly $IDS, and
# archive instead when a partner has business history. Stop if the authorized set changes.
odoo-mcp unlink -m res.partner -i "$IDS" -p prod
# Read back every saved id, archived included; report only the ids that no longer come back.
odoo-mcp search-read -m res.partner -d "[('id','in',$IDS),('active','in',[True,False])]" -f "id,name" -l 500 -p prod
User: "I keep many sessions open and each one starts its own odoo-mcp"
Action:
odoo-mcp serve --auth local --port 5010
claude mcp add -s user --transport http odoo http://127.0.0.1:5010/mcp \
--header "Authorization: Bearer $(cat ~/.config/odoo-mcp/local-token)"
Keep it on loopback. If the user also wants to reach it from another
machine, explain that --auth local is bound to loopback and to this OS
user's token and exposes every profile: install odoo-mcp-multi on that
machine, or serve it with --auth oauth, where each user signs in with
their own Odoo credentials.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (vauxoo/mcp.odoo) — no native marketplace selected
npx claudepluginhub p/vauxoo-odoo-mcp3 skills in this plugin
/odoo-financial-reportsUse this skill when you need to fetch, calculate, analyze, or format Odoo financial reports (Balance Sheet, Profit & Loss, Trial Balance, Partner Ledger, General Ledger, Cash Flow, DIOT) via Odoo MCP. Triggers on: 'financial report', 'balance sheet', 'profit and loss', 'trial balance', 'partner ledger', 'general ledger', 'accounting report', 'financial statement', 'p&l', 'diot'./odoo-mcp-toolsUse this skill when you need to query, create, update, delete, export, or import records in any Odoo instance via MCP tools. Triggers on: 'search records', 'create record', 'update partner', 'delete record', 'unlink record', 'export data', 'import records', 'execute method', 'list models', 'list fields', 'get version', 'list profiles', 'odoo mcp tools'.