odoo-mcp
odoo-mcp
一个用于 Odoo 的 MCP 服务器。它让 LLM 代理能够读写 Odoo 实例中的合作伙伴、销售订单、库存水平和发票。
状态: 早期。下面的工具列表是计划。并非所有功能都已实现。
为什么
Odoo 是一个功能完整的 ERP,拥有广泛的 API,这使得代理难以使用。其外部 API 是 XML-RPC,带有通用的 search_read 和 execute_kw 调用,因此代理需要知道模型名称、字段名称和域语法。这个服务器暴露少量命名工具,每个工具覆盖一个用户实际会请求的任务。
Odoo Community 在 Docker 中运行,带有演示数据,因此整个系统可以在没有真实系统的情况下试用。
Related MCP server: OdooSurface MCP
工具
工具 | 功能 |
| 查找客户和供应商 |
| 读取订单及其行和状态 |
| 为合作伙伴创建草稿订单 |
| 确认草稿订单 |
| 产品的当前库存数量 |
| 合作伙伴的发票,按状态过滤 |
快速开始
docker compose up -d odoo db # Odoo Community with demo data
cp .env.example .env
docker compose up mcpOdoo 首次启动时大约需要一分钟来初始化其数据库。
工作原理
服务器通过 XML-RPC 连接到 Odoo。每个工具自行构建域和字段列表,因此代理永远不会看到 Odoo 内部细节。结果被裁剪为重要的字段,并以扁平记录的形式返回。
设计决策
命名工具,而非通用查询工具。 一个单一的 run_query 工具编写起来更容易,但使用起来要糟糕得多。命名工具自带验证,并让代理明确知道允许做什么。
读写分离。 写工具在模式中标记,以便客户端可以要求确认。
错误被翻译。 Odoo 会引发带有长回溯的故障。服务器提取消息,并以代理可以操作的形式返回。
尚未实现的功能
分页和结果限制
多公司支持
针对种子 Odoo 实例的测试
许可证
MIT
Maintenance
Related MCP Connectors
Odoo ERP for AI agents: hosted OAuth endpoint, gated writes, one endpoint for every instance.
Read, write and run Odoo actions from any AI app, as each user, with approval rules per colleague.
Connect AI to Odoo ERP 14-20: search, create, update and manage records in natural language.
Connect AI to store orders, products and inventory with scoped access and human approvals.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with Odoo ERP systems through natural language to search records, create entries, update data, and manage business operations. Supports secure authentication and configurable access controls for production environments.Mozilla Public 2.0
- AlicenseAqualityAmaintenanceEnables AI agents to interact with Odoo ERP as the authenticated user, with tools for discovery, planning, and mutations bounded by user permissions.3650 npm2Apache 2.0
- 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

ERPipeofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to interact with Odoo ERP through natural language, providing tools and prompts for data operations and record management.MIT