odoo-mcp-gateway

v0.1.1
io.github.parth-unjiya/odoo-mcp-gateway Checked 8 hours ago Published 8 months ago

Security-first MCP gateway for Odoo 17/18/19 — YAML-driven security, 27 tools

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

login

Authenticate with Odoo. Methods: 'api_key', 'password', or 'session'.

ParameterTypeDescription
credential *string
method *string
databasestring
usernamestring

list_models

List available Odoo models. Optionally filter by keyword.

ParameterTypeDescription
filterstring
include_customboolean

get_model_fields

Get field definitions for an Odoo model.

ParameterTypeDescription
model *string
field_filterstring
include_readonlyboolean

search_read

Search and read records from any Odoo model.

ParameterTypeDescription
model *string
domain
fields
limitinteger
offsetinteger
order

get_record

Read a single record by ID from any Odoo model.

ParameterTypeDescription
model *string
record_id *integer
fields

search_count

Count records matching a domain in an Odoo model.

ParameterTypeDescription
model *string
domain

create_record

Create a new record in an Odoo model.

ParameterTypeDescription
model *string
values *object

update_record

Update an existing record in an Odoo model.

ParameterTypeDescription
model *string
record_id *integer
values *object

delete_record

Delete a record from an Odoo model.

ParameterTypeDescription
model *string
record_id *integer

read_group

Read grouped/aggregated data from an Odoo model.

ParameterTypeDescription
fields *array
groupby *array
model *string
domain
limit
orderby

execute_method

Execute a method on an Odoo model.

ParameterTypeDescription
method *string
model *string
args
kwargs
record_ids

check_in

Record attendance check-in for the current user. Finds the employee linked to the current user and creates an attendance record with check_in set to now.

check_out

Record attendance check-out for the current user. Finds the open attendance record and sets check_out to now.

get_my_attendance

Get attendance records for the current user. Args: limit: Max records to return (default 10) month: Filter by month (YYYY-MM format, optional)

ParameterTypeDescription
limitinteger
month

get_my_leaves

Get leave requests for the current user. Args: state: Filter by state (draft, confirm, validate, refuse) limit: Max records (default 20)

ParameterTypeDescription
limitinteger
state

request_leave

Submit a leave request. Args: leave_type_id: Leave type ID (e.g. annual leave, sick leave) date_from: Start date (YYYY-MM-DD) date_to: End date (YYYY-MM-DD) reason: Optional description

ParameterTypeDescription
date_from *string
date_to *string
leave_type_id *integer
reasonstring

get_my_profile

Get the current user's employee profile.

get_my_quotations

Get quotations/orders where the current user is the salesperson. Args: state: Filter by state (draft, sent, sale, done, cancel) limit: Max records (default 20)

ParameterTypeDescription
limitinteger
state

get_order_details

Get full order details with lines, totals, and partner info. Args: order_id: The sale order ID

ParameterTypeDescription
order_id *integer

confirm_order

Confirm a quotation, turning it into a sale order. Args: order_id: The sale order ID to confirm (must be in draft/sent state)

ParameterTypeDescription
order_id *integer

get_sales_summary

Get aggregated sales stats for the current user. Returns counts by state, totals by month, and top customers. Args: period: Filter period (YYYY-MM format, optional). If omitted, returns all-time stats.

ParameterTypeDescription
period

get_my_tasks

Get tasks assigned to the current user. Args: state: Filter by task state (e.g. 01_in_progress, 1_done) project_id: Filter by project ID limit: Max records (default 20)

ParameterTypeDescription
limitinteger
project_id
state

get_project_summary

Get project stats: task counts by stage, overdue, recent activity. Args: project_id: The project ID to summarize

ParameterTypeDescription
project_id *integer

update_task_stage

Move a task to a different stage. Args: task_id: The task ID to update stage_id: The target stage ID

ParameterTypeDescription
stage_id *integer
task_id *integer

get_my_tickets

Get helpdesk tickets assigned to the current user. Args: state: Filter by stage name (optional) priority: Filter by priority (0=Low, 1=Medium, 2=High, 3=Urgent) limit: Max records (default 20)

ParameterTypeDescription
limitinteger
priority
state

create_ticket

Create a new helpdesk ticket. Args: name: Ticket subject/title description: Detailed description team_id: Helpdesk team ID (optional) priority: Priority level (0=Low, 1=Medium, 2=High, 3=Urgent)

ParameterTypeDescription
name *string
descriptionstring
prioritystring
team_id

update_ticket_stage

Move a helpdesk ticket to a different stage. Args: ticket_id: The ticket ID to update stage_id: The target stage ID

ParameterTypeDescription
stage_id *integer
ticket_id *integer