/ Verzeichnis / Playground / mcp-server-odoo
● Community ivnvxd ⚡ Sofort

mcp-server-odoo

von ivnvxd · ivnvxd/mcp-server-odoo

Query and safely update any Odoo ERP model from chat — orders, contacts, products — with smart field selection and read-only guardrails.

mcp-server-odoo connects to any Odoo 16+ instance via XML-RPC. It exposes record search/read/create/update/delete with auto-selection of meaningful fields per model, plus a YOLO-read mode for any Odoo version. Use API key auth (recommended) or user/password.

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

server-odoo.replay ▶ bereit
0/0

Installieren

Wählen Sie Ihren Client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "server-odoo": {
      "command": "uvx",
      "args": [
        "mcp-server-odoo"
      ],
      "_inferred": true
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "server-odoo": {
      "command": "uvx",
      "args": [
        "mcp-server-odoo"
      ],
      "_inferred": true
    }
  }
}

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "server-odoo": {
      "command": "uvx",
      "args": [
        "mcp-server-odoo"
      ],
      "_inferred": true
    }
  }
}

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "server-odoo": {
      "command": "uvx",
      "args": [
        "mcp-server-odoo"
      ],
      "_inferred": true
    }
  }
}

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "server-odoo",
      "command": "uvx",
      "args": [
        "mcp-server-odoo"
      ]
    }
  ]
}

Continue nutzt ein Array von Serverobjekten statt einer Map.

~/.config/zed/settings.json
{
  "context_servers": {
    "server-odoo": {
      "command": {
        "path": "uvx",
        "args": [
          "mcp-server-odoo"
        ]
      }
    }
  }
}

In context_servers hinzufügen. Zed lädt beim Speichern neu.

claude mcp add server-odoo -- uvx mcp-server-odoo

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: mcp-server-odoo

Answer ad-hoc sales questions against Odoo

👤 Ops managers, founders using Odoo as their source of truth ⏱ ~10 min beginner

Wann einsetzen: 'What were last week's top 5 customers by revenue?' — without writing XML-RPC.

Voraussetzungen
  • Odoo API key — Odoo: user profile > Preferences > API Keys > New
  • ODOO_URL, ODOO_DB, ODOO_API_KEY env vars — Set in your MCP client config
Ablauf
  1. List available models
    list_models — which Odoo models can we query in this instance?✓ Kopiert
    → Model catalog with descriptions
  2. Run the query
    In sale.order, find orders with date_order between last Monday and today, group by partner_id, sum amount_total, top 5.✓ Kopiert
    → Ranked customer list with totals
  3. Drill in
    For the top customer, show the last 3 orders with their line items.✓ Kopiert
    → Detailed breakdown

Ergebnis: A business answer from ERP data without leaving chat.

Fallstricke
  • Multi-currency totals aren't converted — Specify currency_id in the filter, or convert in the LLM layer
  • ODOO_YOLO=true is dangerous in prod — Use ODOO_YOLO=read or leave unset; enable full access only in a staging DB
Kombinieren mit: notion

Clean up stale CRM leads in Odoo

👤 Sales ops ⏱ ~30 min intermediate

Wann einsetzen: Leads pile up with no activity; you want to reassign or archive.

Ablauf
  1. Find stale leads
    In crm.lead, find leads where stage_id is not 'Won' and last activity > 60 days ago.✓ Kopiert
    → Stale lead list
  2. Propose actions
    Classify each: archive, reassign to team lead, or ping current owner.✓ Kopiert
    → Classification per lead
  3. Apply in batches (read-only first!)
    Dry run only: show what would change if I archived the 'archive' bucket.✓ Kopiert
    → Dry-run summary; then confirm before update_record

Ergebnis: A cleaner pipeline with auditable changes.

Fallstricke
  • Archiving leads other teams depend on — Always dry-run first; tag archived leads rather than delete

Draft follow-ups for unpaid invoices

👤 AR and finance ⏱ ~25 min intermediate

Wann einsetzen: Monthly dunning run.

Ablauf
  1. Pull overdue invoices
    In account.move, find invoices where state='posted', payment_state='not_paid', invoice_date_due < today - 15.✓ Kopiert
    → Overdue list with partner + amount
  2. Draft a polite follow-up per customer
    For each, draft an email in the customer's preferred language using ODOO_LOCALE settings.✓ Kopiert
    → Per-invoice draft text

Ergebnis: Dunning emails ready to send (human still reviews).

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

server-odoo + notion

Pull a sales snapshot from Odoo, post to Notion for stakeholders

Run last-month sales by product category from Odoo, post as a Notion table under Finance / Monthly.✓ Kopiert
server-odoo + postgres

Cross-reference Odoo data with a warehouse replica for heavy analytics

For top-10 Odoo customers, pull their web-session counts from the Postgres analytics DB.✓ Kopiert

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
list_models (none) First-run discovery 1 XML-RPC call
search_records model: str, domain?: filter, fields?: str[], limit?: int Any read query 1 XML-RPC call
get_record model, id Known id, need full detail 1 call
create_record model, values: object Only with ODOO_YOLO=true or API key granting write 1 call (write)
update_record model, id, values Writes — confirm first 1 call (write)
delete_record model, id Rarely — archive is usually better 1 call (write, destructive)
list_resource_templates (none) Explore available resource URIs free

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
Bounded by Odoo server; no per-call cost
Tokens pro Aufruf
Smart-field responses keep responses under 1k tokens per record
Kosten in €
Free; you need an Odoo instance (community or enterprise)
Tipp
Always pass explicit fields= on big models like product.template to avoid pulling 200 fields.

Sicherheit

Rechte, Secrets, Reichweite

Minimale Scopes: API key or user with read rights on the models you query
Credential-Speicherung: ODOO_API_KEY in env var; never commit to repo
Datenabfluss: Calls to your Odoo instance only
Niemals gewähren: ODOO_YOLO=true in production

Fehlerbehebung

Häufige Fehler und Lösungen

Access Denied on model

API key user doesn't have access rights for that model. Grant or switch user.

Prüfen: Odoo: Settings > Users > Access Rights
Database not found

Set ODOO_DB explicitly; auto-detection fails when db listing is disabled.

Prüfen: curl -d '{"jsonrpc":"2.0","method":"call","params":{"service":"db","method":"list"}}' $ODOO_URL/jsonrpc
MCP Odoo module not installed

In standard mode, install the mcp_odoo community module, or switch to ODOO_YOLO=read mode.

Prüfen: Odoo: Apps > search mcp_odoo

Alternativen

mcp-server-odoo vs. andere

AlternativeWann stattdessenKompromiss
Direct XML-RPC via fetch MCPYou only need one specific queryNo smart field selection; boilerplate-heavy
postgres MCP on Odoo's DBYou want raw SQL and can connect to the underlying PostgresBypasses Odoo ACLs — dangerous without care

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen