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.

已验证STDIO仅桌面效率与工作流商业与电商

概览

AI 生成的概览

本地 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。
安装前请注意
服务器通过 ODOO_PASSWORD 保存 Odoo 凭据,建议使用个人 API 密钥而非账户密码,并避免写入共享配置。它能在 Odoo 中创建、更新、归档、发布和上传数据,仅受用户权限限制,错误指令可能改动线上记录或网站内容。条件允许时先在测试实例上试用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Odoo Surface Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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):

json
{  "mcpServers": {    "odoo-surface": {      "command": "npx",      "args": ["-y", "@suco/odoo-surface-mcp@latest"],      "env": {        "ODOO_URL": "http://localhost:8069",        "ODOO_DB": "your_database",        "ODOO_USER": "admin",        "ODOO_PASSWORD": "admin"      }    }  }}

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:

ini
ODOO_URL=http://localhost:8069ODOO_DB=your_databaseODOO_USER=adminODOO_PASSWORD=your_password

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.

  1. Log in as the user the MCP will authenticate as
  2. Click the user avatar (top-right) → Preferences
  3. Go to the Account Security tab
  4. Under API Keys → click New API Key
  5. Enter your password when prompted, give the key a name, copy the generated key
  6. Use it as ODOO_PASSWORD — the actual account password is never stored
ini
ODOO_URL=http://localhost:8069ODOO_DB=your_databaseODOO_USER=adminODOO_PASSWORD=your_api_key_here

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.

json
{  "mcpServers": {    "odoo-local": {      "command": "npx",      "args": ["-y", "@suco/odoo-surface-mcp@latest"],      "env": {        "ODOO_URL": "http://localhost:8069",        "ODOO_DB": "dev",        "ODOO_USER": "admin",        "ODOO_PASSWORD": "dev_api_key"      }    },    "odoo-production": {      "command": "npx",      "args": ["-y", "@suco/odoo-surface-mcp@latest"],      "env": {        "ODOO_URL": "https://mycompany.odoo.com",        "ODOO_DB": "prod",        "ODOO_USER": "admin",        "ODOO_PASSWORD": "prod_api_key"      }    }  }}

Note: The .env file approach (Option A) does not work for multi-instance setups — both processes share the same working directory and would load the same file. Use the env block per entry instead.

Debug mode

Registers additional tools: ping, echo, inspect_view, inspect_action, inspect_fields, dump_cache, clear_cache, restart_mcp.

json
"args": ["-y", "@suco/odoo-surface-mcp@latest", "--debug"]

Tools

LayerTools
Guidancelist_skills, get_skills, find_skill, list_workflows, get_workflows
Discoveryget_models, get_model_actions, get_model_interface
Planningget_available_actions
Supportinglist_records, get_record, search_records, read_group, get_fields, get_defaults, get_filters, list_pages, get_page_arch, list_snippets, get_snippet, list_attachments, download_binary, fetch_and_upload, translation_get, translation_update, translation_audit
Intentcreate, update, execute_action, archive, post_message, schedule_activity, create_page, set_page_arch, set_page_visibility, upload_binary

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

LayerRoleWhen invoked
0 — GuidanceCanonical recipes (skills, workflows) the agent consults before any multi-step operation. Pure documentation, no side effects.Before planning
1 — DiscoveryEstablishes the bounded universe of models and reachable relations for the current user.At intent resolution
2 — Planning BridgeAnswers "what is live on this specific record right now" — record-state-aware actions.Once a record is identified
3 — SupportingRead-only data fetchers used silently to fill gaps in the agent's plan.Throughout planning
4 — IntentMutating actions that fulfill the user's request — bounded by the user's UI permissions.Final execution

Planning Loop

User prompt  ├── Discovery       — what models/relations does this user have?  ├── (optional)      — locate the specific record  ├── Planning Bridge — what is live on that record right now?  ├── Guidance        — consult skills/workflows for multi-step recipes  └── Intent          — execute the mutation(s)

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
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.6.1最新Oct 3, 2026
  2. v0.4.6Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分