
Odoo Mcp
io.github.nicolasramos由 GitHub 账号 nicolasramos 发布v1.0.1更新于 Oct 26, 2026
MCP server for Odoo 18 with 38 business tools
概览
本地 MCP 服务器,将助手连接到 Odoo 18 实例,提供搜索、读取和修改客户、销售、发票、任务等业务记录的工具。
- 可以做什么
- 用 Odoo 域语法在允许的模型中搜索、读取和汇总记录,并查看模型结构与实例可用能力。
- 创建和更新记录,调用 action、button 等模型方法。
- 处理合作伙伴、报价单与销售订单、CRM 线索、采购订单、供应商账单、发票与付款。
- 管理项目任务、活动、chatter 消息和工时记录。
- 处理客服工单、合同行、产品库存数量与日历事件。
- 适用场景
- 适合需要助手直接操作 Odoo 18 实时业务数据的场景,例如查询客户、起草或确认报价、查看待付发票、更新任务或发布 chatter 消息,而不必手工搬运数据。
- 运行要求
- 通过 stdio 在本机运行,来自 PyPI 包 odoo-18-mcp-server(Python)。需要设置 ODOO_URL、ODOO_DB、ODOO_USERNAME 和 ODOO_PASSWORD,可选 ODOO_MCP_DEFAULT_LIMIT 与 ODOO_MCP_MAX_LIMIT。需要能访问 Odoo 实例的网络;部分工具要求安装对应的 Odoo 应用。
安装
在 SourceWeft 中
- 打开 控制台中的 Odoo Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
OdooClaw MCP
Standalone MCP (Model Context Protocol) server for Odoo 18 over stdio.
MCP name: io.github.nicolasramos/odooclaw-mcp
PyPI package: odooclaw-mcp
Official CLI: odooclaw-mcp
Backward-compatible aliases are also installed:
odoo-mcpodoo-mcp-serverodoo-18-mcp-server
Quick Start
1) Install
From source:
2) Configure environment
Required:
Optional:
3) Validate and run
Alternative:
MCP Client Configuration (stdio)
Tool call payload contract
When calling tools through the MCP protocol, arguments must be wrapped in a
top-level payload object.
Valid shape:
If payload is omitted, validation fails with an error equivalent to
Field required: payload.
Scope
- 129 MCP tools for Odoo operations (CRUD + business actions + migration workflows)
- Pydantic validation for all tool payloads
- Odoo 18 compatibility helpers (customer_rank / supplier_rank / payment_state)
- Security guards (model allowlist, denylisted fields, action guard, unlink blocked)
- Structured logging and audit actions
Available Tools
The server currently exposes 129 MCP tools.
Note: the grouped tables below focus on common/high-value tools. Use MCP
list_toolsto inspect the full live tool catalog for your installed version.
Core record operations
Partners, sales, and CRM
Accounting, purchasing, and payments
Projects, activities, and chatter
Support, contracts, stock, and instance capabilities
Introspection
Available Resources
The server also exposes 5 MCP resources for discovery and context:
Guardrails and Runtime Behavior
- Uses standard Odoo JSON-RPC endpoints; it does not depend on OdooClaw delegation.
- Tool payloads are validated with Pydantic before execution.
- Model access is restricted by an allowlist defined in the server configuration.
- Sensitive write fields are denylisted and
unlinkis blocked. - Search-style tools use default and maximum limits (
ODOO_MCP_DEFAULT_LIMIT,ODOO_MCP_MAX_LIMIT). sender_idis treated as audit/context metadata; execution runs as the authenticated Odoo session user.- Some tools require the corresponding Odoo apps/modules to be installed (CRM, Helpdesk, Projects, Contracts, Inventory, etc.).
Security Model
The server uses standard Odoo JSON-RPC endpoints and executes operations as the configured Odoo session user.
For production, use a dedicated least-privilege Odoo account.
Production Notes
- This is a
stdioMCP server, not an HTTP API service. - Docker/Compose support is mainly for packaging or controlled runtime scenarios.
- In normal usage, your MCP client launches the server process directly.
- Keep Odoo credentials in environment variables or a secrets manager.
Known Limitations
- One Odoo credential context per MCP process.
ODOO_DBis currently required by the authentication flow.- Some tools require specific Odoo apps/modules (CRM, Helpdesk, Project, etc.).
- Designed for Odoo 18 field semantics.
Development
Docs
License
MIT - see LICENSE.
来源:README.md,提交 828344a
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分