mcp-odoo

v1.2.2
io.github.tuanle96/mcp-odoo Checked 4 days ago Published 4 months ago

Odoo MCP: gated writes, multi-instance.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

data_quality_report

Run read-only data-quality checks on one Odoo model: duplicates, missing required values, orphaned references, format anomalies

ParameterTypeDescription
model *string
checks
instance
key_fields
sample_limitinteger

diagnose_odoo_call

Diagnose an Odoo model call without executing it

ParameterTypeDescription
method *stringOdoo model method name to diagnose.
model *stringTechnical Odoo model name to diagnose.
argsOptional positional call arguments.
include_debugbooleanWhether to include additional diagnostic details.
kwargsOptional keyword call arguments.
metadataOptional model or method metadata used by the diagnosis.
observed_errorOptional error text or structured error to classify.
target_versionOptional target Odoo version for compatibility checks.
transportstringTransport to assess, such as 'auto', 'xmlrpc', or 'json2'.
use_live_metadatabooleanWhether to request live metadata; this preview tool does not fetch it.

generate_json2_payload

Build a JSON-2 request preview without network access

ParameterTypeDescription
method *string
model *string
args
base_url
database
include_database_headerboolean
kwargs

inspect_model_relationships

Inspect model relationships and required field metadata

ParameterTypeDescription
model *string
fields_metadata
include_computedboolean
include_readonlyboolean
instance
use_live_metadataboolean

diagnose_access

Diagnose ACL and record-rule visibility for an Odoo model

ParameterTypeDescription
model *stringTechnical Odoo model name to inspect.
domainOptional Odoo domain used for the visibility check.
expected_countOptional expected visible record count for comparison.
include_rulesbooleanWhether to include matching record-rule metadata.
instanceOptional configured Odoo instance name; uses the default if omitted.
limitintegerMaximum metadata rows to inspect; capped at 500.
observed_errorOptional error text or structured error to classify.
operationstringAccess operation to diagnose, such as read or write.
record_idsOptional record IDs to check directly.

upgrade_risk_report

Report Odoo upgrade and JSON-2 migration risks

ParameterTypeDescription
include_debugbooleanWhether to include additional diagnostic details.
methodsOptional model method metadata to assess for compatibility.
modulesOptional module metadata to assess for upgrade risks.
observed_errorsOptional observed upgrade or migration errors to classify.
source_findingsOptional source-code findings to include in the risk report.
source_versionOptional current Odoo version.
target_versionOptional target Odoo version.
use_live_metadatabooleanWhether to request live metadata; this preview tool does not fetch it.

analyze_upgrade_log

Classify Odoo install/update log errors into a migration worklist (no_action / needs_review / needs_script) with fix suggestions

ParameterTypeDescription
log_text *string
source_version
target_version

lookup_model_history

Look up Odoo model rename/removal history by old or new model name (e.g. account.invoice -> account.move)

ParameterTypeDescription
name *string

fit_gap_report

Classify Odoo requirements into fit/gap implementation buckets

ParameterTypeDescription
requirements *array
available_fields
available_models
business_context
installed_modules
use_live_metadataboolean

scan_addons_source

Scan local Odoo addon source without importing addon code

ParameterTypeDescription
addons_paths
max_file_bytesinteger
max_filesinteger

build_domain

Build a validated Odoo domain from structured conditions

ParameterTypeDescription
conditions *array
fields_metadata
logical_operatorstring

business_pack_report

Report expected modules, models, and safe discovery calls for a business pack

ParameterTypeDescription
pack *stringBusiness pack to report, such as sales, crm, inventory, accounting, or hr.
instanceOptional configured Odoo instance name; uses the default if omitted.
use_live_metadatabooleanWhether to inspect live models and installed modules.

get_odoo_profile

Read a bounded profile of the connected Odoo environment

ParameterTypeDescription
include_modulesbooleanWhether to include installed-module metadata.
instanceOptional configured Odoo instance name; uses the default if omitted.
module_limitintegerMaximum installed modules to include; capped at 500.

schema_catalog

Build and cache a bounded Odoo model schema catalog

ParameterTypeDescription
include_fieldsbooleanWhether to include field metadata for each model.
instanceOptional configured Odoo instance name; uses the default if omitted.
limitintegerMaximum catalog models to return; capped at 500.
modelsOptional technical model names to include in the catalog.
queryOptional text used to filter catalog models.
refreshbooleanWhether to bypass and refresh the cached 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

ParameterTypeDescription
instance
limitinteger
query

get_model_fields

Get field metadata for a specific Odoo model

ParameterTypeDescription
model *string
field_names
instance
max_fieldsinteger
relevance

search_records

Search Odoo records with read-only search_read; optional free-text `query` matches across name/ref/email-like fields

ParameterTypeDescription
model *string
domain
fields
instance
limitinteger
offsetinteger
order
query

read_record

Read a single Odoo record by model and ID

ParameterTypeDescription
model *string
record_id *integer
fields
instance

read_attachment

Read an ir.attachment's metadata and size-capped base64 content

ParameterTypeDescription
attachment_id *integer
include_databoolean
instance

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.

ParameterTypeDescription
group_by *array
model *string
domain
instance
lazyboolean
limit
measures
offsetinteger
order

search_employee

Search for employees by name

ParameterTypeDescription
name *string
instance
limitinteger

search_holidays

Search for holidays within a date range

ParameterTypeDescription
end_date *stringEnd date in YYYY-MM-DD format.
start_date *stringStart date in YYYY-MM-DD format.
employee_idOptional employee ID used to filter holidays.
instanceOptional configured Odoo instance name; uses the default if omitted.

preview_write

Preview create, write, or unlink without executing it

ParameterTypeDescription
model *string
operation *string
context
instance
record_ids
values
values_list

validate_write

Validate a standard write payload against optional fields_get metadata

ParameterTypeDescription
model *string
operation *string
context
fields_metadata
instance
record_ids
use_live_metadataboolean
values
values_list

execute_approved_write

Execute a previously previewed and confirmed standard write

ParameterTypeDescription
approval *object
confirmboolean

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.

ParameterTypeDescription
body *string
model *string
record_id *integer
approval
attachment_ids
confirmboolean
instance
message_typestring
partner_ids
subtype_xmlid

execute_method

Execute a custom method on an Odoo model

ParameterTypeDescription
method *stringOdoo model method to call; direct create, write, and unlink are blocked.
model *stringTechnical Odoo model name, for example 'res.partner'.
argsOptional positional method arguments.
instanceOptional configured Odoo instance name; uses the default if omitted.
kwargsOptional keyword method arguments.

index_knowledge

Fetch a bounded slice of records and build a local BM25 knowledge index

ParameterTypeDescription
model *string
domain
fields
instance
limitinteger
replaceboolean

search_knowledge

Relevance-ranked local BM25 search over previously indexed records

ParameterTypeDescription
model *string
query *string
instance
limitinteger

knowledge_stats

Report local knowledge index sizes and document budget

receivable_payable_aging

Aged receivable/payable report bucketed by days overdue

ParameterTypeDescription
as_ofOptional ISO date used as the aging reference date.
directionstringAging direction: 'receivable' or 'payable'.
instanceOptional configured Odoo instance name; uses the default if omitted.
limitintegerMaximum open-item lines to inspect.
top_partnersintegerMaximum top partners to include; capped at 100.

accounting_health_summary

Open receivable/payable item counts and draft invoice backlog

ParameterTypeDescription
instance

search_across_instances

Read-only search fanned out across configured Odoo instances, merged and attributed

ParameterTypeDescription
model *string
domain
fields
instances
limit_per_instanceinteger

aggregate_across_instances

Read-only aggregate fanned out across instances with combined grand totals

ParameterTypeDescription
group_by *array
model *string
domain
instances
measures

accounting_health_across_instances

AR/AP aging fanned out across instances — the partner-network sweep

ParameterTypeDescription
as_ofOptional ISO date used as the aging reference date.
directionstringAging direction: 'receivable' or 'payable'.
instancesOptional instance selector; defaults to all eligible instances.
top_partnersintegerMaximum top partners to include in each aging report; capped at 100.

submit_async_task

Run an allowlisted long-running read operation in the background

ParameterTypeDescription
operation *string
instance
params

get_async_task

Poll a background task's status and result

ParameterTypeDescription
task_id *string

cancel_async_task

Cancel a pending or running background task

ParameterTypeDescription
task_id *string

list_async_tasks

List recent background tasks newest-first