
Odoo Surface Mcp
io.github.solutionsunity由 GitHub 账号 solutionsunity 发布v0.6.1更新于 Oct 24, 2026
Full Odoo access for AI agents via MCP: CRUD, website, translations, attachments, workflows.
概览
本地 MCP 服务器,让 AI 助手以登录用户权限访问 Odoo 实例,处理记录、网站页面、翻译、附件和工作流。
- 可以做什么
- 发现当前用户可用的模型、字段、操作和可执行动作,并在多步操作前查阅内置技能与工作流。读取和搜索记录、分组统计、查看字段、默认值和筛选器,列出页面、片段和附件。创建、更新、归档记录并执行动作,发布消息和安排活动。管理网站页面与片段,设置页面结构和可见性,上传或下载二进制文件。读取、更新和审计翻译。调试模式额外提供 ping、echo、视图/动作/字段检查及缓存工具。
- 适用场景
- 适合让助手在现有 Odoo ERP 或网站中工作:查询和修改业务记录、维护网页、处理翻译或附件,且权限与登录用户在浏览器中相同。
- 运行要求
- 通过 npx 在本地运行,需要 Node.js 18+。需要可访问的 Odoo 实例(15.0+,CE 或 EE)和支持 MCP 的客户端。在客户端 env 块或 .env 文件中设置 ODOO_URL、ODOO_DB、ODOO_USERNAME 和 ODOO_PASSWORD(建议使用 Odoo API 密钥);多实例配置需为每个条目单独设置 env。
安装
在 SourceWeft 中
- 打开 控制台中的 Odoo Surface Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[图片] OdooSurface MCP
[npm version] [Node] [Odoo] [License: Apache 2.0] [Downloads]
User-equivalent Odoo access for AI agents — what the authenticated user can do in their browser, nothing more.
Prerequisites
- Node.js 18+ (ships with
npx— no extra install needed) - A running Odoo instance (15.0+, CE or EE) — per-version behaviour of every call: docs/compatibility.md
- An MCP-compatible client (VS Code, Claude Desktop, Claude Code, Cursor, …)
Configure your MCP client
Add this to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):
Restart your MCP client after saving. npx downloads and runs the package automatically — no further install steps.
Authentication
Option A — .env file (keep credentials out of MCP config)
Instead of putting credentials in your MCP client JSON, create a .env file in the directory where you run the MCP:
Remove the env block from the MCP client config — the .env file is loaded automatically.
Option B — API Key (recommended, no password stored)
Since Odoo 14+, users can generate personal API keys that act as a password replacement. Each user generates their own key from their own account — there is no admin-side menu for this.
- Log in as the user the MCP will authenticate as
- Click the user avatar (top-right) → Preferences
- Go to the Account Security tab
- Under API Keys → click New API Key
- Enter your password when prompted, give the key a name, copy the generated key
- Use it as
ODOO_PASSWORD— the actual account password is never stored
API keys can be revoked individually from the same screen without changing the account password.
Advanced Configuration
Multiple Odoo instances
Technical users commonly work with more than one Odoo instance (local dev, staging, production). Each instance gets its own named entry in the MCP config — they run as independent processes with fully isolated credentials. The AI client exposes them as separate tool namespaces.
Note: The
.envfile approach (Option A) does not work for multi-instance setups — both processes share the same working directory and would load the same file. Use theenvblock per entry instead.
Debug mode
Registers additional tools: ping, echo, inspect_view, inspect_action, inspect_fields, dump_cache, clear_cache, restart_mcp.
Tools
Architecture
Core Contract
The agent may only do what the authenticated user can do in their browser. Scope is bounded by the user's menus, views, and ACL — nothing more. Tool verbs express functional intent (publish, confirm) rather than raw ORM operations. Discovery is lazy: the agent resolves only what the current prompt requires.
Layered Tool Surface
Planning Loop
Skills and workflows are authored in skills/ and workflows/ as markdown with YAML
frontmatter; they are exposed as Layer 0 tools at runtime.
来源:README.md,提交 51902ef
工具
0版本历史
2- v0.6.1最新Oct 3, 2026
- v0.4.6Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分