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 "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/AntonS2042/odoo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server