Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Technical
  3. MCP Server v 19.0
  4. Sales Conditions FAQ

MCP Server

by Rashid Habib
Odoo

$ 100.00

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 2455
Technical Name rh_odoo_mcp_server
LicenseOPL-1
Versions 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 2455
Technical Name rh_odoo_mcp_server
LicenseOPL-1
Versions 18.0 19.0
  • Description
  • License

Odoo MCP Server

Turn Your Odoo Instance Into a Native AI-Powered MCP Server

Connect Claude, Cursor, Gemini, Windsurf, and any MCP-compatible AI assistant directly to your Odoo data. No middleware. No external servers. Just install and connect.

Why Odoo MCP Server?

The Model Context Protocol (MCP) is the new standard for AI assistants to talk to real-world systems. This module turns your Odoo ERP into a first-class MCP citizen—giving AI agents secure, audited, and controlled access to every model, record, report, and business method in your database.

Core Features

🔌 Native Integration

Runs entirely inside Odoo. No Docker, no VPS, no middleware. Your data never leaves your server.

🔐 Enterprise Security

OAuth 2.0 + PKCE authentication, per-user API keys, per-model access rules, and full audit logging.

⚡ Dual Transports

Supports both SSE (Server-Sent Events) and Streamable HTTP for maximum compatibility with all MCP clients.

🛡 Access Control

Define per-user and per-group access rules. Restrict tools (CRUD, read-only, custom) and models with record limits.

📊 Audit Dashboard

Real-time session monitoring, execution logs, tool usage analytics, and automatic log retention policies.

🗌 Report Generation

AI can list and generate QWeb PDF/HTML reports for any model directly through the MCP interface.

Supported AI Assistants & IDEs

Works with any MCP-compatible client. Here are the most popular tools you can connect today:

Claude Desktop

Anthropic

Cursor IDE

Anysphere

Windsurf

Codeium

Gemini

Google

Zed Editor

Zed Industries

Cline

VS Code Extension

Roo Code

VS Code Extension

Continue.dev

VS Code & JetBrains

GitHub Copilot Chat

VS Code & IDE

OpenAI Codex CLI

Terminal

Supermaven

IDE Assistant

Any MCP Client

Future-proof

Connect Your AI Assistant — Configuration Guide

Copy the configuration for your tool below. Replace https://your-odoo.com with your Odoo URL and YOUR_API_KEY with the key from MCP Server → API Keys.

1. Claude Desktop (Anthropic)

Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "odoo": {
      "command": "npx",
      "args": [
        "-y",
        "@anthropic-ai/mcp-remote",
        "https://your-odoo.com/mcp/sse"
      ]
    }
  }
}

Claude will open a browser for OAuth 2.0 + PKCE login. After approval, your session appears in the Odoo dashboard.

2. Cursor IDE

Open Cursor Settings → MCP, click Add new MCP server, and enter:

  • Name: odoo
  • Type: sse
  • URL: https://your-odoo.com/mcp/sse

Cursor negotiates OAuth automatically. Or use Bearer token mode by adding Authorization: Bearer YOUR_API_KEY header.

3. Windsurf (Codeium)

Add to your Windsurf MCP configuration file:

{
  "mcpServers": {
    "odoo": {
      "serverUrl": "https://your-odoo.com/mcp/sse",
      "serverType": "sse"
    }
  }
}

4. Zed Editor

Add to your Zed settings.json:

{
  "assistant": {
    "version": "2",
    "default_model": {
      "provider": "anthropic",
      "model": "claude-3-5-sonnet-latest"
    },
    "always_allow_tool_actions": true
  },
  "context_servers": {
    "odoo": {
      "url": "https://your-odoo.com/mcp/sse",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

5. Cline (VS Code Extension)

Open the Cline panel, go to Settings → MCP Servers, and add:

{
  "mcpServers": {
    "odoo": {
      "command": "npx",
      "args": ["-y", "@anthropic-ai/mcp-remote", "https://your-odoo.com/mcp/sse"]
    }
  }
}

6. Roo Code (VS Code Extension)

In Roo Code settings, add an MCP server:

{
  "mcpServers": {
    "odoo": {
      "type": "sse",
      "url": "https://your-odoo.com/mcp/sse",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

7. Continue.dev (VS Code & JetBrains)

Edit ~/.continue/config.json:

{
  "server": {
    "name": "odoo",
    "url": "https://your-odoo.com/mcp/sse",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
}

8. GitHub Copilot Chat (VS Code)

Add to your VS Code settings.json under MCP servers:

{
  "github.copilot.chat.mcpServers": [
    {
      "name": "odoo",
      "url": "https://your-odoo.com/mcp/sse",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  ]
}

9. OpenAI Codex CLI

Export your MCP server config before running codex:

export MCP_SERVER_ODOO_URL="https://your-odoo.com/mcp/sse"
export MCP_SERVER_ODOO_TOKEN="YOUR_API_KEY"
codex --mcp-server odoo

10. Generic SSE with cURL

Test your connection from the terminal:

curl -N \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: text/event-stream" \
  https://your-odoo.com/mcp/sse

11. Streamable HTTP (2025 Spec)

For clients supporting the newer Streamable HTTP transport:

curl -X POST https://your-odoo.com/mcp/http \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'

12. Python SDK

Build your own MCP client in Python:

from mcp import ClientSession, StdioServerParameters
from mcp.client.sse import sse_client

async with sse_client("https://your-odoo.com/mcp/sse",
                       headers={"Authorization": "Bearer YOUR_API_KEY"}) as (read, write):
    async with ClientSession(read, write) as session:
        await session.initialize()
        tools = await session.list_tools()
        print(tools)

Tools Exposed to AI

Your AI assistant gets full CRUD capabilities plus business logic execution:

Tool Description Example Prompt
odoo_createCreate new records in any model"Create a contact named Acme Corp"
odoo_readRead fields from existing records by ID"Show me the email for partner #42"
odoo_writeUpdate existing records"Update the phone for partner #42"
odoo_unlinkDelete records by ID"Delete draft invoice #99"
odoo_search_readSearch records by domain and read fields"List all customers in France"
odoo_search_countCount records matching a domain"How many open sales orders?"
odoo_execute_actionCall business methods (confirm, validate, post)"Confirm sales order #15"
odoo_get_reportList or generate QWeb PDF/HTML reports"Print invoice for order #10 as PDF"

Resources Exposed to AI

AI can browse your schema and data like a living API:

Resource URI Description
odoo://modelsList all available models with names
odoo://model/{model_name}Get field definitions and metadata for a model
odoo://record/{model}/{id}Read a specific record by ID
odoo://search/{model}/{domain}Search records with a JSON domain (limit 10)

Security Architecture

Authentication Layers

  • OAuth 2.0 + PKCE — Full authorization-code flow with S256 code challenge
  • Bearer API Keys — Per-user scoped tokens with expiration and revocation
  • Global Config Key — Optional fallback token (disabled by default for safety)
  • Session Isolation — Every connection gets its own in-memory queue and thread

Authorization Controls

  • Access Rules — Per-user/per-group rules for model and tool restrictions
  • Tool Profiles — All, CRUD-only, Read-only, or Custom whitelist
  • Record Limits — Configurable max records per search_read query
  • Blocked Methods — Prevents access to internal/private/model methods

Audit & Monitoring

📋 Execution Logs

Every tool call is logged with input, output, duration, user, and status.

👫 Session Tracking

Live session list with IP, transport, request count, and last activity.

🧹 Auto Cleanup

Built-in cron jobs purge stale sessions and old logs automatically.

Live Dashboard Preview

MCP Server Dashboard

Real-time overview of active sessions, tool usage, and system health.

Quick Start — 3 Steps

  1. Install the module from Apps → Install "MCP Server"
  2. Configure in Settings → General Settings → MCP Server (enable SSE/HTTP, set OAuth client ID, generate API key)
  3. Connect your AI assistant using one of the 12 configuration examples above
Pro Tip: The SSE endpoint is /mcp/sse. For OAuth flow, use /oauth/authorize. For Streamable HTTP, use /mcp/http.

Configuration Reference

Setting Path Default
Enable MCP ServerGeneral Settings → MCP ServerEnabled
Enable SSE TransportGeneral Settings → MCP ServerEnabled
Enable Streamable HTTPGeneral Settings → MCP ServerEnabled
OAuth Client IDGeneral Settings → MCP Serverodoo-mcp-client
API Key / Client SecretGeneral Settings → MCP Server—
Public URL / IssuerGeneral Settings → MCP ServerAuto-detect
Default Max RecordsGeneral Settings → MCP Server1000
Session TimeoutGeneral Settings → MCP Server60 minutes
Log RetentionGeneral Settings → MCP Server30 days

Settings Page Preview

MCP Server Settings

All global MCP server settings in one place—transports, timeouts, OAuth, and API keys.

Access Rules Setup

By default, the module operates in deny-all mode if no access rules exist. To grant AI access:

  1. Navigate to MCP Server → Access Rules
  2. Create a new rule with a descriptive name (e.g. "Sales Team — Read Only")
  3. Select Users or Groups who should have AI access
  4. Pick Allowed Models (leave empty for all models)
  5. Choose a Tool Access Level: All, CRUD, Read Only, or Custom
  6. Set Max Records Per Query to prevent accidental large exports
  7. Activate the rule
Security Note: Always start with Read Only or CRUD rules. Only grant odoo_execute_action and odoo_get_report to trusted users.

System Requirements

  • Odoo Version: 19.0 (Community & Enterprise)
  • Python Version: 3.12+
  • Required Python Packages: mcp, anyio
  • Installation: Standard Odoo module install—no extra steps
  • Database: Works with all supported Odoo databases (PostgreSQL)
Note: Install mcp and anyio into your Odoo Python environment before installing this module:
pip install mcp anyio

What Can You Build?

🤖 AI Sales Assistant

Let Claude query open opportunities, update stages, and generate PDF quotations on request.

📦 Inventory Chatbot

Ask "How many units of Product X are in Stock?" and get real-time quant data.

📈 Executive Reporting

Generate monthly sales reports and P&L statements by simply asking your AI assistant.

🔧 Support Automation

AI can read helpdesk tickets, post messages, and trigger escalation workflows.

Ready to Supercharge Your Odoo with AI?

Install Odoo MCP Server today and give your AI assistants the keys to your ERP—securely, audibly, and on your terms.

Support & Documentation

For installation help, configuration questions, or feature requests, please contact:

📧 rashid.habib@outlook.com

This module is sold under the OPL-1 license. One license per Odoo instance. Updates and bug fixes are included for 12 months from purchase.

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with