Setup & Installation
Follow these steps to get your Odoo MCP Server up and running.
Installation
Section titled “Installation”- Copy the
odoo_mcp_serverdirectory into your Odoo addons path. - Restart your Odoo server.
- Login to Odoo as an Administrator.
- Go to Apps, search for MCP Server, and click Install.
Quick Start
Section titled “Quick Start”1. Create an API Key
Section titled “1. Create an API Key”Navigate to MCP Server → Security → API Keys and click New.
2. Test the Health Endpoint
Section titled “2. Test the Health Endpoint”Verify the server is running by calling the public health endpoint (replace your-odoo-domain.com with your actual address):
curl https://your-odoo-domain.com/mcp/healthExpected response:
{"status": "ok", "server": "Odoo MCP Server", "version": "19.0.1.2.0", "sessions": 0}3. Connect an MCP Client
Section titled “3. Connect an MCP Client”Point your MCP client (Claude, GPT, Cursor, etc.) at your server:
- Endpoint URL:
https://your-odoo-domain.com/mcp - Auth Header:
Authorization: Bearer <your-api-key>
4. Test a Sample Tool Call
Section titled “4. Test a Sample Tool Call”First, establish an SSE session:
curl -H "Authorization: Bearer YOUR_KEY" https://your-odoo-domain.com/mcpThis will return an endpoint event containing a sessionId. Copy that ID. In another terminal, perform a search:
curl -X POST "https://your-odoo-domain.com/mcp?sessionId=YOUR_SESSION_ID" \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_records", "arguments": {"model": "res.partner", "limit": 5} } }'