
Odoo
com.odooconsole由 odooconsole.com 發布官方發布者v1.1.0更新於 Oct 24, 2026
Odoo ERP for AI agents: hosted OAuth endpoint, gated writes, one endpoint for every instance.
概覽
託管的 Odoo ERP 連接器,讓 AI 助理查詢、建立、更新與刪除 Odoo 記錄,並檢視模型與檢視畫面。
- 可以做什麼
- 依條件篩選、計數與批次匯出記錄,並依 ID 建立、更新或刪除記錄,或對記錄執行確認、過帳等模型方法。探索可用模型,檢視欄位定義、預設值、檢視畫面與視窗動作,並可修改欄位預設值或動作設定。對執行個體做健康診斷,並顯示目前連線資訊。
- 適用情境
- 適合需要讓助理直接操作 Odoo ERP 執行個體的情境:查詢銷售訂單、聯絡人、產品,匯出資料,建立或修改記錄,或檢視與調整模型設定。唯讀模式適合安全地瀏覽正式環境執行個體。
- 執行需求
- 遠端 OAuth 驗證端點,或在本機以 Python 3.11+ 與 uv(或 fastmcp、httpx)執行腳本。需提供 Odoo 執行個體網址、資料庫名稱與使用者名稱,以及密碼或 API 金鑰,皆透過環境變數傳入。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Odoo,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/com.odooconsole%2Fodoo/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"odoo": {
"type": "http",
"url": "https://mcp.odooconsole.com/mcp"
}
}
}README
Odoo MCP Server
An MCP (Model Context Protocol) server that connects AI agents to Odoo ERP instances. Works with Claude Code, Cursor, Windsurf, and any MCP-compatible client.
Supports Odoo 17-18 (JSON-RPC) and Odoo 19+ (JSON-2 API) — auto-detects the best protocol.
Quick Start
No virtualenv or pip install needed — the script has inline metadata that uv resolves automatically.
Configure in Claude Code
Add to your project's .mcp.json:
Or for Odoo 19+ with API key auth:
Configure in Cursor / Windsurf
Add to ~/.cursor/mcp.json or equivalent:
Environment Variables
Read-Only Mode
Set ODOO_READONLY=true to disable create, update, delete, and execute tools. Useful for safe browsing of production instances:
Available Tools
Core CRUD
Discovery
Model Customization
Example Usage
Once configured, ask your AI agent:
- "List all sale orders from this month"
- "Show me the fields on res.partner"
- "Create a new contact named Acme Corp"
- "Run a health check on the Odoo instance"
- "Export all products to a spreadsheet"
- "Confirm sale order 42"
Model Customization Examples
- "What's the default sort order for sale.order?"
- "Change the default invoice policy on products to 'delivery'"
- "Show me the form view for res.partner"
- "What window actions exist for account.move? Change the default sort to date desc"
- "List all custom fields on res.partner"
- "What fields are required on sale.order?"
Model Customization Tools — Detailed Reference
odoo_model_info
Returns everything about a model in one call, eliminating the need for multiple exploratory queries.
Returns:
default_order— the model's_orderattribute (e.g."date_order desc, id desc")rec_name— the field used for display name in dropdownsfield_count— total number of fieldsfields_by_type— field count grouped by type (many2one: 12, char: 8, ...)custom_fields— user-created fields (x_ prefix or state=manual)relational_fields— all Many2one, One2many, Many2many with their targetsrequired_fields— fields that must be filledviews— base views (form, tree, search) with IDs and prioritiesactions— window actions with their domain, context, and view modesdefaults— current ir.default values set for this model's fields
odoo_set_default
Manages field defaults via ir.default with proper JSON encoding. The most common source of agent errors when done manually.
The tool:
- Finds the field_id in ir.model.fields (validates the field exists)
- JSON-encodes the value automatically
- Creates or updates the ir.default record
- Returns before/after values for confirmation
odoo_get_view
Returns the fully rendered view XML after all inheritance is applied — what the user actually sees, not the raw fragments stored in ir.ui.view.
Returns:
arch— the complete merged XMLview_id— the base view IDfields_in_view— list of field names present in the view
odoo_modify_action
Changes how a model appears in the UI by modifying its window action (ir.actions.act_window).
The tool returns before/after values so you can verify what changed.
How It Works
The server authenticates once at startup and maintains a persistent connection. All tools use the same authenticated session.
Requirements
- Python 3.11+
- uv (recommended) or
pip install fastmcp httpx
License
MIT
來源:README.md,提交 898089d
工具
0版本歷史
1- v1.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分