How altinkaya-opensource/odoo-mcp works
mcp-server-odoo exposes Odoo ERP operations to AI assistants as MCP tools over stdio, with Odoo access over XML-RPC. The principal flow is assistant request → registered tool → input parsing/field selection where needed → XML-RPC connection → Odoo result. The graph separates read, write, discovery, aggregation, and binary-file capabilities while sharing their implementation path where appropriate. Source excerpts show server setup, connection behavior, and representative tool calls; other tool capabilities are retained from the README, so their internal call details are not inferred.
Main entry points: connection.py XML-RPC Gateway · server.py MCP Server · tools.py Record Reads · utils.py Parsing and Formatting
Components 13
MCP Runtime
- MCP Server
mcp_server_odoo/server.py - Environment Config
mcp_server_odoo/config.py
Read and Discover
- Record Reads
mcp_server_odoo/tools.py - Search and Count
mcp_server_odoo/tools.py - Model Discovery
mcp_server_odoo/tools.py - Grouped Aggregation
mcp_server_odoo/tools.py
Write and Files
- Record Writes
mcp_server_odoo/tools.py - Business Methods
mcp_server_odoo/tools.py - Binary File Export
mcp_server_odoo/tools.py
Shared Internals
- Parsing and Formatting
mcp_server_odoo/utils.py - XML-RPC Gateway
mcp_server_odoo/connection.py
Other components
- AI Assistant
- Odoo Instance
Connections 16
- AI Assistant → MCP Server: sends MCP requests
README.md - MCP Server → Environment Config: loads settings
mcp_server_odoo/server.py - MCP Server → XML-RPC Gateway: connects
mcp_server_odoo/server.py - MCP Server → Record Reads: registers tools
mcp_server_odoo/server.py - MCP Server → Record Writes: registers tools
mcp_server_odoo/server.py - Record Reads → Parsing and Formatting: parses and formats
mcp_server_odoo/tools.py - Search and Count → Parsing and Formatting: parses domains
mcp_server_odoo/tools.py - Grouped Aggregation → Parsing and Formatting: parses parameters
mcp_server_odoo/tools.py - Record Reads → XML-RPC Gateway: reads records
mcp_server_odoo/tools.py - Search and Count → XML-RPC Gateway: searches and counts
mcp_server_odoo/tools.py - Model Discovery → XML-RPC Gateway: inspects models
mcp_server_odoo/tools.py - Grouped Aggregation → XML-RPC Gateway: groups records
mcp_server_odoo/tools.py - Record Writes → XML-RPC Gateway: changes records
mcp_server_odoo/tools.py - Business Methods → XML-RPC Gateway: calls methods
mcp_server_odoo/tools.py - Binary File Export → XML-RPC Gateway: reads field data
mcp_server_odoo/tools.py - XML-RPC Gateway → Odoo Instance: calls XML-RPC
README.md