How mrkhaled007/odoo-mcp-server works
This is a read-only MCP bridge from AI clients to live Odoo data. A client invokes a registered partner, sales, or inventory tool; each tool applies its filters, field whitelist, and result cap before querying through the shared authenticated XML-RPC client. The README describes additional security controls and an odoo://schema resource as in progress; the sampled source shows field whitelists and caps, but not those planned modules or the resource. The graph reflects only evidenced runtime links.
Main entry points: server.py FastMCP server · odoo_client.py Odoo XML-RPC client · partners.py Partner search · sales.py Sales orders
Components 8
MCP entry
- FastMCP server
src/odoo_mcp/server.py - Validated settings
src/odoo_mcp/config.py
Business tools
- Partner search
src/odoo_mcp/tools/partners.py - Sales orders
src/odoo_mcp/tools/sales.py - Stock check
src/odoo_mcp/tools/inventory.py
Odoo connection
- Odoo XML-RPC client
src/odoo_mcp/odoo_client.py
Other components
- MCP client
- Odoo instance
Connections 10
- MCP client → FastMCP server: invokes tools
README.md - FastMCP server → Validated settings: loads settings
src/odoo_mcp/server.py - FastMCP server → Odoo XML-RPC client: creates and authenticates
src/odoo_mcp/server.py - FastMCP server → Partner search: registers
src/odoo_mcp/server.py - FastMCP server → Sales orders: registers
src/odoo_mcp/server.py - FastMCP server → Stock check: registers
src/odoo_mcp/server.py - Partner search → Odoo XML-RPC client: queries records
src/odoo_mcp/tools/partners.py - Sales orders → Odoo XML-RPC client: queries records
src/odoo_mcp/tools/sales.py - Stock check → Odoo XML-RPC client: queries stock
src/odoo_mcp/tools/inventory.py - Odoo XML-RPC client → Odoo instance: authenticates and queries
src/odoo_mcp/odoo_client.py