Odoo MCP Server
Provides tools for interacting with Odoo ERP, including CRUD operations on records, model introspection, BI analytics, and workflow execution through Odoo's XML-RPC layer.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Odoo MCP ServerShow me the top 5 products by revenue this quarter"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Odoo MCP Server — Agentic Edition
An enterprise-grade Model Context Protocol (MCP) server for interacting with Odoo ERP through AI assistants. Unlike a traditional database connector, this server is designed as an agentic bridge: it teaches the AI how to navigate Odoo, understand its business logic, and perform complex data analysis.
Why Agentic Edition?
Guided Workflows (Prompts) — Native instructions that teach your AI how to audit inventory, analyse sales, or review security permissions step by step, without writing prompts from scratch.
Native BI — Optimised support for
read_groupand advanced analytical operations, allowing the AI to generate financial reports or KPIs instantly.Deep Introspection — Tools that grant the AI X-ray vision: discover available action buttons, inspect view XML architectures, evaluate security rules — reducing hallucinations to a minimum.
Zero extra dependencies — Uses only Python stdlib (
urllib,json,csv,xml) plus themcppackage. Norequests, noodoorpc.Built-in Security — Uses Odoo's own XML-RPC layer; the MCP server cannot bypass permissions the user doesn't already have.
Installation
# Recommended — isolated and fast
uv tool install odoo-mcp-server-conn
# Standard
pip install odoo-mcp-server-connConfiguration
Environment variables
Variable | Required | Description |
| ✅ | Your Odoo URL (e.g. |
| ✅ | Database name |
| ✅ | User login or email |
| ✅ | Password or API Key (strongly recommended) |
| ❌ | Seconds before re-authenticating (default: |
Tip: Always prefer an API Key over a plain password. Generate one in Odoo under Settings → Users → Your User → API Keys.
Claude Code (CLI)
Run this command once — it stores the configuration permanently for the current project:
claude mcp add odoo-server \
--env ODOO_URL=http://localhost:8069 \
--env ODOO_DB=my_database \
--env ODOO_USERNAME=admin \
--env ODOO_PASSWORD=my_api_key \
-- odoo-mcp-server-connVerify the connection inside Claude Code:
/mcpAdd --scope project to create a .mcp.json at the repository root that your whole team can use. Each developer supplies their own credentials via environment variables or CI secrets.
claude mcp add odoo-server \
--scope project \
--env ODOO_URL=http://localhost:8069 \
--env ODOO_DB=my_database \
--env ODOO_USERNAME=admin \
--env ODOO_PASSWORD=my_api_key \
-- odoo-mcp-server-connClaude Desktop
Locate your config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following block:
{
"mcpServers": {
"odoo-server": {
"command": "odoo-mcp-server-conn",
"env": {
"ODOO_URL": "http://localhost:8069",
"ODOO_DB": "my_database",
"ODOO_USERNAME": "admin",
"ODOO_PASSWORD": "my_api_key"
}
}
}
}VS Code (Copilot / Cline / Roo Code)
Add to your .vscode/mcp.json (workspace-level) or user MCP settings:
{
"servers": {
"odoo-server": {
"type": "stdio",
"command": "odoo-mcp-server-conn",
"env": {
"ODOO_URL": "http://localhost:8069",
"ODOO_DB": "my_database",
"ODOO_USERNAME": "admin",
"ODOO_PASSWORD": "my_api_key"
}
}
}
}{
"mcpServers": {
"odoo-server": {
"command": "odoo-mcp-server-conn",
"env": {
"ODOO_URL": "http://localhost:8069",
"ODOO_DB": "my_database",
"ODOO_USERNAME": "admin",
"ODOO_PASSWORD": "my_api_key"
}
}
}
}Cursor IDE
Go to Settings → Features → MCP.
Click Add new server → type
command.Command:
odoo-mcp-server-conn.Add each environment variable in the Env vars section.
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"odoo-server": {
"command": "odoo-mcp-server-conn",
"env": {
"ODOO_URL": "http://localhost:8069",
"ODOO_DB": "my_database",
"ODOO_USERNAME": "admin",
"ODOO_PASSWORD": "my_api_key"
}
}
}
}Tools
CRUD — Core operations
Tool | Odoo method | Description |
|
| Return IDs matching a domain filter |
|
| Read fields from records by ID |
|
| Search + read in one optimised call |
|
| Create a new record |
|
| Update existing records |
|
| Delete records ⚠️ |
|
| Count without loading records (fast) |
Introspection — understand the data model in real time
Tool | Description |
| Live schema of any model (types, relations, required flags) |
| Final merged XML of a view (form / tree / kanban / search) |
| States, stages, and transition buttons of a model |
| All buttons in a view with visibility conditions and groups |
| Auto-resolved Many2one / One2many / Many2many relations |
| ACL and |
| Translates an Odoo domain filter into plain English |
BI & Analytics
Tool | Description |
|
|
| Export records to a CSV string (up to 1 000 rows) |
| List PDF / HTML reports available for a model |
Wildcard
Tool | Description |
| Call any public Odoo method (e.g. |
Guided Prompts (pre-trained workflows)
Invoke these prompts directly from your AI client to start a structured analysis:
Prompt | What it does |
| Sales KPIs — revenue trend, top customers, conversion rate |
| Low-stock products, stuck transfers, warehouse utilisation |
| Cross-reference security groups with ACL, flag over-privileged users |
| Cash flow overview — AR, AP, invoicing by period |
Resources (navigable URIs)
The AI can query these URIs directly as if browsing the ERP:
URI | Description |
| Master list of all models installed in the instance |
| Data dictionary for a specific model |
| Complete record sheet |
| Instant search, e.g. |
Security
The server operates entirely through Odoo's XML-RPC layer — it cannot bypass any permission the authenticated user doesn't already have in the ERP.
No raw SQL, no forced commits, no ORM bypass.
Credentials are read exclusively from environment variables — never hardcoded.
License: MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/edubolivar/odoo-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server