Skip to main content
Glama
SalimaTerbah

Odoo MCP Server

by SalimaTerbah

Odoo MCP Server

An MCP (Model Context Protocol) server that exposes an Odoo 19 ERP as a set of standard tools — so any MCP-compatible AI agent (Claude Desktop, an IDE, a custom agent) can query and act on the ERP without writing a single line of custom integration.

MCP is the open standard adopted in 2026 by Anthropic, OpenAI, Google and Microsoft — often described as "the USB-C of AI". It turns the M×N integration problem into M+N: one server per data source, usable by every client.

Exposed tools

Tool

What it does

contar_leads

Counts CRM leads, optionally filtered by AI temperature

listar_leads

Lists leads with company and expected revenue

crear_lead

Creates a new lead in the CRM

buscar_semantico

Semantic search over lead notes (RAG with pgvector)

Related MCP server: MCP Server for Odoo

Architecture MCP client ──JSON-RPC/stdio──> Odoo MCP Server ──XML-RPC──> Odoo 19

(any agent) (this repo) + pgvector

The server runs as a separate process from Odoo and talks to it through Odoo's official external API (XML-RPC) — the same interface any third-party system would use. This keeps a clean client/server separation, as the protocol intends.

buscar_semantico reuses the RAG layer implemented in the companion module odoo_ai_agent (local embeddings + pgvector).

Tech stack

  • Python 3.12, fastmcp

  • Transport: stdio (JSON-RPC)

  • Odoo 19 external API (XML-RPC)

  • PostgreSQL + pgvector for the semantic layer

Setup

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Create a .env file (never committed):

ODOO_URL=http://localhost:8069 ODOO_DB=your_database ODOO_USER=your_odoo_user ODOO_PASSWORD=your_odoo_password

Usage

Run the test client to list and call the published tools:

python3 test_client.py

Or register the server with any MCP client by pointing it to server.py.

Security notes

  • Credentials are loaded from environment variables / .env, never hardcoded.

  • The server only exposes explicitly declared tools — no arbitrary ORM access.

Author

Salima Terbah — Multiplatform App Developer (DAM), specializing in applied AI for Odoo.

License

LGPL-3

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    Enables 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.
    Last updated
    1
    Mozilla Public 2.0
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to interact with Odoo 19 via JSON-2 API, supporting CRUD operations on Odoo models through MCP tools.
    Last updated
    1
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    Bridges AI agents to Odoo ERP via MCP, enabling CRUD operations, model introspection, and report generation with secure API key and connection management through a web admin UI.
    Last updated
    4
    GPL 3.0

View all related MCP servers

Related MCP Connectors

  • Hosted MCP with 91 agent tools: X, domains, SEO, Maps, Trends, Search, YouTube, TikTok, and more.

  • Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.

  • Free public MCP for AI agents — 193 tools, 44 workflows. No API key.

View all MCP Connectors

Latest Blog Posts

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/SalimaTerbah/odoo_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server