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. AI
  3. Odoo MCP Framework v 17.0
  4. Sales Conditions FAQ

Odoo MCP Framework

by Hypsai Tech https://github.com/hypsai/odoo_addons/tree/main/mcp_base
Odoo
v 17.0 Third Party 130
Download for v 17.0 Deploy on Odoo.sh
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 1817
Technical Name mcp_base
LicenseLGPL-3
Websitehttps://github.com/hypsai/odoo_addons/tree/main/mcp_base
Versions 13.0 14.0 15.0 16.0 17.0 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 1817
Technical Name mcp_base
LicenseLGPL-3
Websitehttps://github.com/hypsai/odoo_addons/tree/main/mcp_base
Versions 13.0 14.0 15.0 16.0 17.0 18.0 19.0

Odoo MCP Framework

Connect Odoo to AI Agents with One Decorator. Transform your Odoo into a Model Context Protocol (MCP) Server for seamless integration with Claude, ChatGPT, Cursor and other AI agents.

Simple. Elegant. Powerful.

@mcp_tool, AI Integration, MCP Server, Automation

The Simplest Way

@mcp_tool
def search_customers(self, name: str):
    """Search customers by name."""
    # That's it! No config, no schema - just decorate and go

Type hints → JSON Schema    Docstring → Descriptions    Zero configuration

Why @mcp_tool?

The simplest decorator to expose Odoo methods to AI agents. Just add it and go - no complex setup required.

One-Line Setup

Just @mcp_tool. Your methods are instantly AI-ready.

Zero Config

Automatic JSON schema from type hints and docstrings. No manual work.

Fine-Grained ACL

Per-tool access control on top of standard Odoo ACL — control exactly which AI agents see which tools.

Production Ready

Streamable HTTP, JSON-RPC 2.0, enterprise-grade reliability.

Two Ways to Build Tools

Choose the workflow that fits your team — developer-friendly decorators or admin-friendly UI.

CODE FIRST

Decorate. Ship. Done.

Write Python methods and tag them with @mcp_tool. The framework auto-discovers them on startup:

  • Python type hints → JSON Schema automatically
  • Docstrings → parameter descriptions
  • Respects @api.model and model inheritance
  • Auto-synced at every server restart
CONFIG FIRST

No Code. Just Configure.

Define tools directly in the Odoo UI — no Python required. Two entry points:

1) Settings → Technical → MCP Framework → Tools (global list)
2) Settings → Technical → Database Structure → Models → MCP Tools tab (scoped to that model)

  • Pick a model and a method from dropdowns
  • Write a docstring in Google/NumPy/Sphinx style
  • System auto-generates JSON Schema from your docstring
  • Editable metadata — description, input schema, active flag

Get Started in 3 Steps

1

Install Module

Download and install the mcp_base module to your Odoo instance:

  • Download from Odoo App Store
    You'll receive a file named mcp_base-x.x.x.zip
  • Extract and Place in Addons Directory
    Extract the zip file and copy the mcp_base folder to your Odoo addons path, for example:
    /opt/odoo/addons/mcp_base (Linux) or C:\Program Files\Odoo 15.0\server\addons\mcp_base (Windows)

    Can't find your addons path? Check your Odoo config file:
    - Linux: /etc/odoo/odoo.conf (look for addons_path)
    - Windows: C:\Program Files\Odoo 15.0\server\odoo.conf
  • Install via Odoo Interface
    Enable Developer Mode by adding ?debug=1 to your URL (e.g., http://localhost:8069/web?debug=1)
    Then go to: Apps → Click Update Apps List (top menu) → Search "mcp_base" → Click Install
2

Decorate Your Methods

Add the @mcp_tool decorator to any Odoo model method you want to expose to AI agents:

from odoo import models
from odoo.addons.mcp_base import mcp_tool

class ResPartner(models.Model):
    _inherit = 'res.partner'

    @mcp_tool
    def search_customers(self, name: str, limit: int = 10):
        """Search customers by name.

        :param name: Customer name to search for
        :param limit: Maximum number of results
        """
        return self.search_read([('name', 'ilike', name)], fields=['name', 'email'], limit=limit)
3

Connect AI Clients

Configure your AI client to connect to the MCP server endpoint and set up one of the authentication methods below:

Your MCP Endpoint:

http://your-odoo-server:8069/mcp

Authentication (choose one):

  • Plain text headers — X-User: your-loginname and X-Password: your-password
  • HTTP Basic Auth — Authorization: Basic <base64-credentials>
  • API Key — If you have auth_api_key module installed, add Api-Key: your-api-key-here

Popular AI Clients:

ChatWise

Settings → MCP → Add Server

Cursor

Settings → MCP → Add Server

Claude Desktop

Edit config.json

You're All Set!

Your Odoo methods are now accessible to AI agents. Start asking natural language questions about your data!

Security & Authentication

Three authentication options — plain text, Basic Auth, or API keys.

Default Authentication (Plain Text Headers)

The simplest method — just set two headers with your Odoo username and password. No base64 encoding required.

X-User: your-loginname
X-Password: your-password
ChatWise config with X-User/X-Password

Claude Desktop example:

{
  "mcpServers": {
    "odoo": {
      "url": "http://localhost:8069/mcp",
      "transport": "streamable-http",
      "headers": {
        "X-User": "your-loginname",
        "X-Password": "your-password"
      }
    }
  }
}

HTTP Basic Auth (Alternative)

Standard Authorization: Basic <base64-credentials> is also supported as a fallback:

{
  "mcpServers": {
    "odoo": {
      "url": "http://localhost:8069/mcp",
      "transport": "streamable-http",
      "headers": {
        "Authorization": "Basic <base64(username:password)>"
      }
    }
  }
}

API Key Authentication (Recommended for Production)

For enhanced security, install the auth_api_key module to use API keys instead of passwords:

1
Install auth_api_key

Download from Odoo App Store.

2
Create an API Key
  • Settings Technical API Keys Create
  • Set name and choose target user
  • Copy the generated API key
3
Configure Your Client

Add header: Api-Key: your-api-key-here

{
  "mcpServers": {
    "odoo": {
      "url": "http://localhost:8069/mcp",
      "transport": "streamable-http",
      "headers": {
        "Api-Key": "your-api-key-here"
      }
    }
  }
}
ChatWise config with API Key

Note: When you provide an Api-Key header (with auth_api_key installed), it takes priority. Without it, plain text or Basic Auth credentials are accepted as fallback.

Ready to Make Your Odoo AI-Ready?

Install Odoo MCP Framework and expose your first method with @mcp_tool in under 2 minutes.

Star on GitHub

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, please use the developer contact information. They can usually be found in the description.
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