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 Dheeraj Chauhan
Odoo
v 19.0 Third Party 7
Download for v 19.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
Odoo Apps Dependencies Discuss (mail)
Lines of code 2205
Technical Name mcp_server_ai
LicenseLGPL-3
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 2205
Technical Name mcp_server_ai
LicenseLGPL-3
MCP SERVER
Connect AI Assistants to Odoo ERP via Model Context Protocol

MCP Server is an Odoo 19.0 module that securely connects AI assistants like Claude, Cursor, and VS Code Copilot to your Odoo ERP using the Model Context Protocol (MCP) standard. It provides REST API endpoints and XML-RPC proxy with fine-grained per-model access control, full audit logging, rate limiting, response caching, and LLM-optimized output formatting.

Whether you need AI to read customer data, create sales orders, or analyze inventory — MCP Server ensures every request is authenticated, authorized, logged, and delivered in a format AI assistants understand best.

  • ✅ REST API with 13 endpoints + XML-RPC proxy with 2 endpoints
  • ✅ Bearer Token (API Key) + Basic Auth support
  • ✅ Per-model CRUD access control with field-level restrictions
  • ✅ Rate limiting (configurable per minute per user)
  • ✅ IP whitelist for production security
  • ✅ Full audit logging with duration tracking
  • ✅ Response caching with configurable TTL
  • ✅ LLM-optimized output formatting
  • ✅ YOLO mode for development (bypasses permissions)
  • ✅  Community
  • ✅  Enterprise (On-premises)
  • ✅  Odoo.sh
  • ❌  Online
MCP Server Settings
MCP Server Settings
Highlights of MCP SERVER
🔒

Secure REST API + XML-RPC

✅

Granular Access Control

📋

Complete Audit Trail

⚡

LLM-Optimized Output

🔑

Bearer Token + Basic Auth

⏱

Rate Limiting

🌐

IP Whitelist & Caching

🛠

YOLO Mode (Dev)

Key Features

Everything You Need for Secure AI-Odoo Integration

MCP Server gives you complete control over how AI assistants interact with your Odoo data. With multi-layer authentication, granular permissions, audit logging, and smart caching — you can confidently connect any MCP-compatible AI client to your ERP.

REST API Endpoints 13 REST endpoints for search, read, browse, count, create, write, unlink, call method, list models, field metadata, auth validation, health check, and system info.
XML-RPC Proxy 2 XML-RPC endpoints (common + object) that proxy through MCP permission layer. Compatible with standard Odoo XML-RPC clients.
Bearer Token Auth Authenticate using Odoo's native API key system (Bearer Token) or HTTP Basic Auth credentials. API keys are recommended for production.
Per-Model Access Control Expose only the models your AI needs. Toggle Read, Write, Create, Delete permissions independently for each model.
Field-Level Restrictions Optionally specify which fields are allowed per model (JSON list). Hide sensitive columns like passwords, tokens, or financial data.
Rate Limiting Configurable per-minute request limits per user. Returns retry-after headers when exceeded. Set 0 to disable.
IP Whitelist Restrict MCP API access to known IP addresses only. One IP per line in settings. Empty = allow all.
Response Caching Built-in cache with per-model configurable TTL. Speeds up repeated read operations significantly.
Audit Logging Every MCP API call is logged with user, IP, model, operation, status, duration, and user agent. View in list, graph, or pivot.
Auto Log Cleanup Cron job automatically deletes audit logs older than configurable retention period (default 90 days).
LLM-Optimized Output Smart field defaults exclude binary fields, Many2one as {id, name}, selection fields include labels, HTML stripped for clean text. Built-in summary generator.
YOLO Mode Development-only mode that bypasses MCP permission checks. Two levels: "read_only" and "full". Never enable in production.
Security Groups Two security groups: MCP User (basic access) and MCP Administrator (full management). Assign per user.
Blocked Models Security-sensitive models like ir.rule, ir.config_parameter, and res.users.apikeys are automatically blocked from MCP access.
Screenshots

See how MCP Server works inside Odoo

➤ Model Access - Exposed Models with CRUD Permissions

Configure which Odoo models are accessible via MCP and set individual Read, Write, Create, Delete permissions.

MCP Model Access List
➤ Add Model - Configure Permissions and Field Restrictions

Select a model, toggle CRUD permissions, set allowed fields, cache TTL, and restrict to specific user groups.

MCP Model Access Form
➤ Audit Logs - Complete API Call History

Every MCP API request is logged with user, IP, model, operation, status, and response duration.

MCP Audit Logs
➤ Audit Analytics - Graph View for Usage Patterns

Visualize API usage patterns with built-in graph and pivot views.

MCP Audit Graph
➤ Health Check - Verify MCP Server is Running

Quick health check endpoint returns server status, version, and MCP enabled state.

Health Check
API Endpoints
➤ Public (No Auth Required)
Method Endpoint Description
GET /mcp/api/v1/health Health check with status, version, timestamp
GET /mcp/api/v1/system/info Odoo version, database, exposed model count
➤ Authenticated (Bearer Token or Basic Auth)
Method Endpoint Description
POST /mcp/api/v1/auth/validate Validate credentials, return user info
GET /mcp/api/v1/models List all exposed models with permissions
GET /mcp/api/v1/models/<model>/fields Get field metadata for a model
POST /mcp/api/v1/models/<model>/search Search records with domain filter
POST /mcp/api/v1/models/<model>/read Read specific records by IDs
POST /mcp/api/v1/models/<model>/browse Paginated browse with offset/limit
POST /mcp/api/v1/models/<model>/count Count records matching domain
POST /mcp/api/v1/models/<model>/create Create new record
POST /mcp/api/v1/models/<model>/write Update existing records
POST /mcp/api/v1/models/<model>/unlink Delete records
POST /mcp/api/v1/models/<model>/call Call arbitrary model method
➤ XML-RPC Endpoints
Endpoint Methods
/mcp/xmlrpc/2/common version(), authenticate()
/mcp/xmlrpc/2/object execute_kw()
➤ Usage Examples

Search Partners (curl):

curl -X POST http://localhost:8069/mcp/api/v1/models/res-partner/search \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": [["is_company", "=", true]], "fields": ["name", "email"], "limit": 5}'

Note: Use dashes (res-partner) instead of dots (res.partner) in URL paths.

Create a Record (curl):

curl -X POST http://localhost:8069/mcp/api/v1/models/res-partner/create \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"values": {"name": "New Partner", "email": "new@example.com", "is_company": true}}'
AI Client Configuration

Connect your favorite AI assistant to Odoo using the included MCP Bridge script

Install dependencies first: pip install "mcp[cli]" httpx

💻 VS Code (Copilot / Claude)

Create .vscode/mcp.json in your workspace:

{
  "servers": {
    "odoo": {
      "command": "python3",
      "args": ["/path/to/mcp_server_ai/mcp_bridge.py"],
      "env": {
        "ODOO_URL": "http://localhost:8069",
        "ODOO_API_KEY": "your-api-key-here",
        "ODOO_DB": "your-database-name"
      }
    }
  }
}
🤖 Claude Desktop

Config: ~/.config/claude/claude_desktop_config.json

{
  "mcpServers": {
    "odoo": {
      "command": "python3",
      "args": ["/path/to/mcp_server_ai/mcp_bridge.py"],
      "env": {
        "ODOO_URL": "http://localhost:8069",
        "ODOO_API_KEY": "your-api-key-here",
        "ODOO_DB": "your-database-name"
      }
    }
  }
}
📡 Claude Code (CLI)

Run in your terminal:

claude mcp add-json odoo '{
  "command": "python3",
  "args": ["/path/to/mcp_server_ai/mcp_bridge.py"],
  "env": {
    "ODOO_URL": "http://localhost:8069",
    "ODOO_API_KEY": "your-api-key-here",
    "ODOO_DB": "your-database-name"
  }
}' -s user
🖱 Cursor IDE

Config: ~/.cursor/mcp.json

{
  "mcpServers": {
    "odoo": {
      "command": "python3",
      "args": ["/path/to/mcp_server_ai/mcp_bridge.py"],
      "env": {
        "ODOO_URL": "http://localhost:8069",
        "ODOO_API_KEY": "your-api-key-here",
        "ODOO_DB": "your-database-name"
      }
    }
  }
}

Replace /path/to/mcp_server_ai/mcp_bridge.py with the actual full path. ODOO_DB is required for multi-database servers.

Security Best Practices
  • 🔒 Use HTTPS in Production — Always deploy behind a reverse proxy (Nginx/Caddy) with TLS certificates.
  • 🔑 Unique API Keys — Generate a separate API key for each AI integration. Revoke individually if compromised.
  • 🌐 Enable IP Whitelist — In production, restrict access to known IP addresses via MCP Server settings.
  • 🛡 Minimal Model Exposure — Only expose models your AI needs. Use field restrictions to hide sensitive columns.
  • ⛔ Disable YOLO Mode — YOLO mode bypasses all permission checks. Never enable it in production.
  • 📊 Review Audit Logs — Regularly check audit logs for suspicious activity. Auto-cleanup after 90 days (configurable).
  • FAQ

What is MCP Server?

MCP Server is an Odoo module that implements the Model Context Protocol standard, allowing AI assistants like Claude, Cursor, and VS Code Copilot to securely read and write Odoo data through REST API and XML-RPC endpoints.

Which AI assistants are supported?

Any AI client that supports the MCP standard can connect, including Claude Desktop, Claude Code CLI, VS Code Copilot, and Cursor IDE. The module includes a bridge script (mcp_bridge.py) that handles the protocol translation.

How do I authenticate API requests?

You can use either Bearer Token authentication (using Odoo's native API key system) or HTTP Basic Auth (login:password). API keys are recommended for production — generate them in Settings > Users > API Keys tab.

Is it safe to use in production?

Yes — the module includes multiple security layers: Bearer token auth, IP whitelisting, per-user rate limiting, per-model CRUD permissions, field-level restrictions, blocked security-sensitive models, and complete audit logging. Just make sure YOLO mode is disabled and you use HTTPS.

What is YOLO mode?

YOLO mode is a development-only feature that bypasses MCP permission checks. It has two levels: "read_only" (skips permissions for read operations) and "full" (skips all permissions). Never enable it in production environments.

Can I use model names with dots in URLs?

Use dashes instead of dots in URL paths. For example, use res-partner instead of res.partner. The API automatically converts dashes back to dots internally.

Need Any Help?

Having trouble? Our dedicated support team is ready to help you resolve any issues quickly.

📧 dk.odootech@gmail.com

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.
Please choose a rating from 1 to 5 for this module.
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