Skip to main content
Glama
SaintsFlow

odoo-mcp

by SaintsFlow

odoo-mcp

一个用于 Odoo 的 MCP 服务器。它让 LLM 代理能够读写 Odoo 实例中的合作伙伴、销售订单、库存水平和发票。

状态: 早期。下面的工具列表是计划。并非所有功能都已实现。

为什么

Odoo 是一个功能完整的 ERP,拥有广泛的 API,这使得代理难以使用。其外部 API 是 XML-RPC,带有通用的 search_readexecute_kw 调用,因此代理需要知道模型名称、字段名称和域语法。这个服务器暴露少量命名工具,每个工具覆盖一个用户实际会请求的任务。

Odoo Community 在 Docker 中运行,带有演示数据,因此整个系统可以在没有真实系统的情况下试用。

Related MCP server: MCP Server for Odoo

工具

工具

功能

search_partners

查找客户和供应商

get_sales_order

读取订单及其行和状态

create_sales_order

为合作伙伴创建草稿订单

confirm_sales_order

确认草稿订单

get_stock

产品的当前库存数量

list_invoices

合作伙伴的发票,按状态过滤

快速开始

docker compose up -d odoo db    # Odoo Community with demo data
cp .env.example .env
docker compose up mcp

Odoo 首次启动时大约需要一分钟来初始化其数据库。

工作原理

服务器通过 XML-RPC 连接到 Odoo。每个工具自行构建域和字段列表,因此代理永远不会看到 Odoo 内部细节。结果被裁剪为重要的字段,并以扁平记录的形式返回。

设计决策

命名工具,而非通用查询工具。 一个单一的 run_query 工具编写起来更容易,但使用起来要糟糕得多。命名工具自带验证,并让代理明确知道允许做什么。

读写分离。 写工具在模式中标记,以便客户端可以要求确认。

错误被翻译。 Odoo 会引发带有长回溯的故障。服务器提取消息,并以代理可以操作的形式返回。

尚未实现的功能

  • 分页和结果限制

  • 多公司支持

  • 针对种子 Odoo 实例的测试

许可证

MIT

Install Server
A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to interact with Odoo ERP systems through natural language, allowing users to search, create, update, and manage business records like customers, products, and invoices across any Odoo instance.
    1
    Mozilla Public 2.0
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to interact with Odoo ERP as the authenticated user, with tools for discovery, planning, and mutations bounded by user permissions.
    34
    37
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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.
    4
    AGPL 3.0

View all related MCP servers

Related MCP Connectors

  • Odoo ERP for AI agents: hosted OAuth endpoint, gated writes, one endpoint for every instance.

  • Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.

  • Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SaintsFlow/odoo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server