As businesses embrace automation and AI, integrating ERP systems like Odoo with intelligent assistants has become a game changer. One way to achieve this seamlessly is by using the MCP (Model Context Protocol) Server. This blog explains how to set up and use the open-source mcp-server-odoo to connect Odoo with AI tools like Claude, Cursor, and VS Code Copilot.
What is MCP Server for Odoo?
The MCP Server for Odoo allows AI-powered assistants to interact with your Odoo system. It exposes your models and data securely so that an assistant can query, create, and update records, just like a human user would do.
Instead of building custom APIs, the MCP server acts as a universal translator between your AI tools and your Odoo database.
Why Use MCP Server?
Integrating AI assistants with Odoo can often require custom APIs and complex development work. The MCP Server simplifies this by acting as a ready-made bridge between your Odoo database and AI tools. Here’s why it’s worth considering:
Seamless AI Interaction
MCP allows AI assistants to directly query, read, and modify records within your Odoo system. This means tasks like finding customers, creating sales orders, or updating inventory can be done through natural language prompts.
No Custom API Development Needed
With MCP, there's no need to build and maintain a custom REST API. The server exposes Odoo models and operations automatically, saving you significant time and effort.
Secure and Permission-Aware Access
All interactions are controlled via Odoo’s built-in access rights and API keys. This ensures that only authorized users or systems can perform specific actions, maintaining data integrity and security.
Simple and Lightweight Setup
The MCP server is easy to install locally and works out of the box. You can get started with just a few configuration steps and instantly make your Odoo system smarter.
How to Set It Up?
- Install the MCP Server Locally
Clone the GitHub repo: https://github.com/ivnvxd/mcp-server-odoo
Run: pip3 install -e .
Or use uv:
curl -LsSf https://astral.sh/uv/install.sh | shuvx mcp-server-odoo
- Build an odoo app have the option to configure the models you want to expose.
Or you can approach on the odoo APPS to get a suitable MCP App
https://apps.odoo.com/apps/modules/18.0/mcp_server - This is not a recommendation
- Generate an API Key
Create a new key and copy it. This will be used to connect the MCP server to your Odoo instance.
- Set Environment Variables
export ODOO_URL=https://your-odoo.com
export ODOO_DB=your_database
export ODOO_API_KEY=your_api_key
- Connect Your AI Tool
Configure your AI assistant (like Cursor or Claude Desktop) to use the local MCP server.
Example Use Cases
- Ask your AI assistant: "List all customers in Mumbai."
- Create a new sales order with just a prompt
- Find unpaid invoices or low-stock products
The MCP Server bridges the gap between AI and ERP systems like Odoo. It enables powerful, context-aware interactions without needing to develop custom APIs. Whether you're a developer or a business user, using mcp-server-odoo is a smart step toward automation and efficiency.
Set it up once, and let AI handle the rest!