odoo-mcp
Allows AI agents to interact with Odoo 17 ERP, providing tools for product search, stock level checking, customer management, and sales order creation through the Odoo XML-RPC API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@odoo-mcpCheck stock level for product Desk"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Odoo 17 – MCP-Server (Proof of Concept)
Ein schlanker MCP-Server, der ausgewählte Odoo-17-Geschäftsprozesse als Tools kapselt. Ein LLM-Agent (z.B. OpenClaw) kann diese Tools auswählen und ausführen, ohne Odoo selbst zu verändern. Die Anbindung erfolgt entkoppelt über die externe Odoo-API (XML-RPC)
Tools
Bereich | Tool | Zweck |
Read |
| Flexibles Lesen beliebiger Odoo-Modelle |
Inventory |
| Verkaufsfähige Produkte suchen (inkl. Bestand) |
Inventory |
| Verfügbaren Lagerbestand eines Produkts prüfen |
Sales |
| Kunden über E-Mail finden oder neu anlegen |
Sales |
| Verkaufsauftrag (Angebot) anlegen |
Sales |
| Angebot bestätigen → Verkaufsauftrag |
Related MCP server: MCP Server for Odoo
1. Odoo lokal starten
docker compose up -dDann http://localhost:8069 öffnen und beim ersten Start eine Datenbank
namens odoo mit Demodaten anlegen (liefert Beispielprodukte/-kunden).
Das Master-Passwort wird in config/odoo.conf gesetzt; dazu die Vorlage
kopieren und ein eigenes Passwort eintragen:
cp config/odoo.conf.example config/odoo.conf # admin_passwd anpassen
config/odoo.confist bewusst per.gitignoreausgeschlossen und darf nicht mit echtem Passwort/Hash veröffentlicht werden.
2. MCP-Server einrichten
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
cp .env.example .env # ggf. Zugangsdaten anpassen3. Server testen
.venv/bin/python main.py # startet den MCP-Server über stdioDer Server kommuniziert über stdio (JSON-RPC) und wird normalerweise vom MCP-Client/Agenten gestartet, nicht direkt im Terminal bedient.
4. In einem MCP-Client registrieren
Beispielkonfiguration (z.B. für OpenClaw / kompatible Clients):
{
"mcpServers": {
"odoo": {
"command": "/ABSOLUTER/PFAD/zu/odoo-mcp/.venv/bin/python",
"args": ["/ABSOLUTER/PFAD/zu/odoo-mcp/main.py"]
}
}
}Pfade an den eigenen Projektordner anpassen (absolute Pfade zum venv-Python und zu
main.py).
Beispiel-Ablauf (typische Tool-Kette eines Agenten)
search_products("Desk")→ Produkt-ID ermittelncheck_stock_level(product_id)→ Bestand prüfenfind_or_create_customer("Muster GmbH", "info@muster.de")→ Kunden-IDcreate_sale_order(customer_id, [{"product_id": 42, "quantity": 2}])→ Angebotconfirm_sale_order(order_id)→ bestätigter Verkaufsauftrag
Konfiguration
Über Umgebungsvariablen bzw. .env:
Variable | Default | Bedeutung |
|
| Basis-URL der Instanz |
|
| Datenbankname |
|
| Benutzer |
|
| Passwort / API-Key |
Governance-Schicht
Kontrolle | Umsetzung | Policy-Schlüssel |
Capability-Scoping | Nur freigegebene Tools werden registriert (für den Agenten unsichtbar) |
|
Eingabevalidierung | Generisches Read-Tool nur auf erlaubte Modelle beschränkbar |
|
Audit-Log | Jeder Tool-Aufruf als JSON-Zeile (Agent, Parameter, Ergebnis-/Fehler-Referenz, Dauer) |
|
Ein leerer/fehlender allowed_*-Eintrag bedeutet „keine Einschränkung". Den
Policy-Pfad kann man über die Umgebungsvariable ODOO_MCP_POLICY überschreiben.
Beispielzeile aus dem Audit-Log:
{"ts": "2026-06-22T12:55:52Z", "agent_id": "openclaw-poc", "tool": "create_sale_order",
"params": {"customer_id": 7, "order_lines": [{"product_id": 42, "quantity": 2}]},
"status": "ok", "result_ref": 15, "duration_ms": 38.4}This server cannot be deployed
Maintenance
Related MCP Connectors
- odooOAuthcom.odooconsole
Odoo ERP for AI agents: hosted OAuth endpoint, gated writes, one endpoint for every instance.
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Malaysian SME accounting, e-Invoice and payroll for your AI. 64 tools; writes are approved drafts.
Connect any AI assistant to Odoo 16–19 via OAuth 2.0 + PKCE. 400 free calls, no local install.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Odoo ERP systems through 17+ business tools covering sales, purchasing, inventory, and accounting operations. Supports both Claude Desktop integration and web deployment with dual transport modes.MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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.1Mozilla Public 2.0
- AlicenseAqualityCmaintenanceEnables AI agents to interact with Odoo ERP as the authenticated user, with tools for discovery, planning, and mutations bounded by user permissions.3430 npm2MIT

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