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. Productivity
  3. MCP Server v 19.0
  4. Sales Conditions FAQ

MCP Server

by Steven Marp https://apps.odoo.com/apps/modules/browse?author=Steven Marp
Odoo

$ 156.94

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
Odoo Apps Dependencies Discuss (mail)
Lines of code 2130
Technical Name sm_mcp_server
LicenseOPL-1
Websitehttps://apps.odoo.com/apps/modules/browse?author=Steven Marp
Versions 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 2130
Technical Name sm_mcp_server
LicenseOPL-1
Websitehttps://apps.odoo.com/apps/modules/browse?author=Steven Marp
Versions 18.0 19.0
  • Description
  • Documentation
  • License

MCP Server for Odoo

Connect AI assistants to Odoo through a secure Model Context Protocol gateway with API keys, model permissions, field rules, audit logs, and a live dashboard.
AI Connector Gateway

Let AI Read Approved Odoo Data Safely

MCP and REST Endpoints

Expose selected Odoo models through MCP JSON-RPC, connector search and fetch tools, and REST endpoints for search, read, count, and fields.

Secure API Keys

Create token-based access per user, restrict allowed models, allow only selected operations, and keep Odoo ACLs active.

Audit and Monitoring

Track every request, denied call, model operation, session message, response status, and duration from Odoo.

Compatible with MCP-Capable AI Clients

SM MCP Server is built on MCP-style JSON-RPC tools and HTTP endpoints, so it can be connected to AI tools that support custom MCP servers, HTTP tools, or MCP-compatible connectors.

ChatGPT icon
ChatGPT
Custom connectors
Claude icon
Claude
MCP clients
Google Gemini icon
Gemini
Gemini CLI
Cursor icon
Cursor
IDE AI
Windsurf icon
Windsurf
IDE AI
Visual Studio Code icon
VS Code
MCP extensions

Compatibility depends on the AI client supporting remote MCP over HTTP/SSE, custom headers, API key query parameters, or equivalent tool connector configuration.

Included Features

MCP, Security, Logs, Dashboard

Built for teams who want AI access to Odoo without opening the whole database.

Controlled Model Access

Enable only approved Odoo models, define read/search/create/write/delete rules, set maximum limits, and whitelist safe fields.

AI Tool Compatibility

Use MCP tools such as models, fields, search read, count, name search, read, search, and fetch with ChatGPT, Claude, Gemini CLI, Cursor, Windsurf, and other MCP-capable AI clients.

Operational Visibility

Dashboard cards, recent request tables, top model usage, API key history, and session records help administrators monitor usage.

Screenshots

MCP Server Preview

From Odoo setup to AI connector testing and request monitoring.
MCP Server dashboard with request statistics and recent logs

Live MCP Server Dashboard

The dashboard summarizes requests today, success rate, denied calls, errors, connector status, active models, active keys, open sessions, recent requests, and top model usage.

ChatGPT connector configuration for Odoo MCP

AI Connector Setup

Configure an AI connector with the MCP URL and authentication token. The connector can call approved Odoo tools after the token is validated.

Enabled Odoo models list with operation permissions

Enabled Models and Operations

Administrators choose which Odoo models are exposed to AI and control search, read, create, write, delete, max limit, and active state per model.

API key form with allowed models and permission toggles

API Key Permission Control

Each API key belongs to a user and can be limited to selected models. Permission toggles define whether that token can search, read, create, write, or delete data.

MCP API key list with prefix and last used information

API Key List

The API key list displays token prefix, owner, active state, expiration date, last used time, and last IP address for quick security review.

API key form with generated token and permission toggles

Generate and Revoke Tokens

Create secure tokens from the API key form, review prefix and usage metadata, and revoke access when a token should no longer be used.

API key generated notification with token output

Token Generated Notification

When a new MCP token is generated, Odoo shows the token once in a sticky notification so the administrator can place it in the external connector.

Enable MCP models wizard with operation checkboxes

Enable Models Wizard

The wizard helps administrators enable selected Odoo models in bulk and apply default search, read, create, write, delete, and max limit rules.

MCP sessions list with request count and error count

MCP Sessions

Every AI session can be tracked with user, client name, IP address, state, request count, error count, start time, and last activity.

MCP session form with request and response messages

Session Messages

The session form stores each MCP message with method, request ID, duration, request payload, response payload, and error details for troubleshooting.

MCP audit logs list with endpoint model operation status and duration

Audit Logs

The audit log records endpoint, event type, user, session, IP address, model, operation, status code, duration, and payload tabs for every MCP call.

MCP audit log form with request and response payload tabs

Detailed Request Trace

Open an audit log to inspect the exact endpoint, model, operation, record IDs, duration, request payload, response payload, errors, and user agent.

ChatGPT asking Odoo for partner count through MCP

AI Reads Partner Data

After the connector is configured, the assistant can answer Odoo questions such as partner counts and record summaries by calling approved MCP tools.

Odoo contact kanban opened from AI result

Odoo Records Stay Clickable

Search and fetch results include record links, so users can jump back to Odoo forms or lists after the AI finds relevant records.

ChatGPT answering manufacturing order question from Odoo

Ask Operational Questions

The assistant can inspect approved manufacturing, sales, purchase, inventory, accounting, or contact models depending on the administrator's model rules.

Manufacturing order list in Odoo

Works with Standard Odoo Views

MCP responses are based on real Odoo records, while users can still verify the same data directly in standard Odoo list and form views.

Setup Flow

From Installation to AI Query

1. Enable Models

Open MCP Server, enable only safe models, select allowed fields, and set operation permissions.

2. Generate API Key

Create a token for the Odoo user that should be used by the external AI connector.

3. Connect AI Tool

Use the MCP endpoint with the generated token, then test tools such as model list, search, fetch, count, and read.

4. Monitor Usage

Use dashboard, sessions, and audit logs to review what the AI accessed and which requests were denied.

MCP Server for Odoo - User and Technical Guide

Table of Contents

  • 1. Overview
  • 2. Compatible AI Clients
  • 3. What the Module Adds
    • MCP Endpoints
    • MCP Tools
    • Security Controls
    • Monitoring
  • 4. Installation
    • Dependencies
  • 5. Initial Setup
    • Enable Models
    • Create API Key
  • 6. ChatGPT Connection
  • 7. Claude Connection
  • 8. Gemini Connection
  • 9. IDE AI Clients
  • 10. Manual API Tests
  • 11. Troubleshooting
    • Missing API Key
    • Model Not Enabled
    • API Key Not Allowed for Model
    • Operation Not Allowed
    • AI Client Cannot Connect
    • Review Logs
  • 12. License

1. Overview

The MCP Server for Odoo module exposes selected Odoo data to AI assistants through secure MCP-style JSON-RPC tools and HTTP endpoints.

It helps administrators:

  • Connect AI assistants to Odoo through a controlled gateway.
  • Enable only approved Odoo models.
  • Restrict fields, operations, and result limits.
  • Generate API keys for external AI clients.
  • Keep Odoo user ACLs active.
  • Review audit logs, sessions, request payloads, and errors.
  • Monitor usage from an Odoo dashboard.

The module is designed for Odoo teams that want AI access to operational data without exposing the full database.


2. Compatible AI Clients

The module can be used by AI clients that support remote MCP servers, HTTP tools, JSON-RPC tools, custom headers, or API key query parameters.

Common compatible targets include:

  • ChatGPT custom apps or connectors.
  • Claude Desktop or Claude-compatible MCP clients.
  • Gemini CLI with MCP server configuration.
  • Cursor, Windsurf, and other IDE AI tools with MCP support.
  • OpenAI-compatible or Anthropic-compatible local agent frameworks.
  • Custom internal AI agents that can call HTTP JSON-RPC tools.

Compatibility depends on the AI client feature set. Some web chat interfaces do not allow custom MCP servers directly, while their CLI, desktop, IDE, or developer editions may support MCP configuration.

Recommended connection endpoint:

https://your-odoo-domain.com/sm_mcp/mcp

Supported authentication methods:

  • X-API-Key: TOKEN_HERE header.
  • Authorization: Bearer TOKEN_HERE header.
  • ?api_key=TOKEN_HERE query parameter for clients that cannot send custom headers.

3. What the Module Adds

MCP Endpoints

The module provides:

  • /sm_mcp/health for service health checks.
  • /sm_mcp/auth/validate for API key validation.
  • /sm_mcp/models for enabled model metadata.
  • /sm_mcp/mcp for MCP JSON-RPC.
  • /sm_mcp/jsonrpc as an alternate JSON-RPC endpoint.
  • /sm_mcp/sse for SSE-style MCP clients.
  • REST endpoints for fields, search read, count, name search, read, create, write, and unlink.

MCP Tools

The JSON-RPC endpoint exposes AI-callable tools such as:

  • odoo_models
  • odoo_fields
  • odoo_search_read
  • odoo_count
  • odoo_name_search
  • odoo_read
  • odoo_create
  • odoo_write
  • odoo_unlink
  • search
  • fetch

The search and fetch tools are useful for AI clients that expect connector-style document search and record retrieval.

Security Controls

Administrators can configure:

  • Enabled Odoo models.
  • Allowed operations per model.
  • Allowed fields per model.
  • Maximum result limit per model.
  • API key owner user.
  • Allowed models per API key.
  • Operation permissions per API key.
  • Expiration date.
  • Token revoke action.

Monitoring

The module includes:

  • MCP Server Dashboard.
  • Audit Logs.
  • Sessions.
  • Session Messages.
  • API Key last used timestamp.
  • API Key last IP address.
  • Request payload, response payload, error message, and user agent logs.

4. Installation

  1. Copy the sm_mcp_server folder into an Odoo addons path.
  2. Restart Odoo.
  3. Update Apps List.
  4. Install MCP Server.

Command-line example:

python3 ~/odoo/odoo-18/odoo-server \
   -c ~/odoo/conf/odoo.conf \
   -d your_database \
   -i sm_mcp_server \
   --stop-after-init \
   --no-http

Dependencies

The module depends on:

  • base
  • base_setup
  • mail

5. Initial Setup

Enable Models

  1. Open MCP Server -> Enable Models Wizard.
  2. Select a preset, or select models manually.
  3. Keep Search and Read enabled for the first test.
  4. Keep Create, Write, and Unlink disabled for the first test.
  5. Click Enable Models.

Create API Key

  1. Open MCP Server -> API Keys.
  2. Create a new key.
  3. Select the Odoo user that should own the AI access.
  4. Restrict allowed models if needed.
  5. Enable only required operations.
  6. Click Generate Token.
  7. Copy the generated smcp_ token.

Recommended first test policy:

  • Enable Search and Read.
  • Disable Create, Write, and Unlink.
  • Limit API key access to a few models.
  • Use allowed fields for sensitive data.
  • Keep audit logging enabled.

6. ChatGPT Connection

For ChatGPT custom apps or connectors, use the MCP JSON-RPC endpoint.

Recommended server URL when the UI does not support custom headers:

https://your-odoo-domain.com/sm_mcp/mcp?api_key=TOKEN_HERE

Set authentication to No Auth if the token is included in the URL.

If the ChatGPT connector supports custom headers, use:

{
  "url": "https://your-odoo-domain.com/sm_mcp/mcp",
  "headers": {
    "X-API-Key": "TOKEN_HERE"
  }
}

Do not use /sm_mcp/sse unless the ChatGPT UI explicitly asks for an SSE URL.

Test prompts:

Use Odoo MCP. Count res.partner records.
Use Odoo MCP. Search five customers and show name and email.

7. Claude Connection

Claude Desktop and Claude-compatible MCP clients can connect when they support a remote HTTP/SSE MCP server or a bridge command.

Use this endpoint when remote HTTP MCP is supported:

https://your-odoo-domain.com/sm_mcp/mcp

Use this header:

X-API-Key: TOKEN_HERE

For clients that only support SSE URL configuration, use:

https://your-odoo-domain.com/sm_mcp/sse?api_key=TOKEN_HERE

If a Claude client only supports local stdio MCP servers, use a small local proxy or bridge that forwards MCP JSON-RPC calls to the Odoo /sm_mcp/mcp endpoint.


8. Gemini Connection

Gemini web chat may not expose custom MCP server configuration. Use Gemini CLI or a Gemini-capable agent environment that supports MCP.

Gemini CLI example:

gemini mcp add --transport http sm-odoo-mcp \
   "https://your-odoo-domain.com/sm_mcp/mcp" \
   --header "Authorization: Bearer TOKEN_HERE"

Check configured MCP servers:

gemini mcp list

Inside Gemini CLI, inspect MCP tools:

/mcp
/mcp desc
/mcp schema

Test prompt:

Use Odoo MCP. Count res.partner records.

9. IDE AI Clients

For Cursor, Windsurf, and other IDE AI tools with MCP support, configure a remote MCP server if the client supports HTTP/SSE transport.

Generic configuration values:

Name: Odoo MCP
URL: https://your-odoo-domain.com/sm_mcp/mcp
Header: X-API-Key: TOKEN_HERE

If the IDE only supports local stdio MCP servers, use an MCP proxy that forwards local tool calls to the Odoo HTTP endpoint.


10. Manual API Tests

Set reusable variables:

export BASE_URL="https://your-odoo-domain.com"
export MCP_TOKEN="TOKEN_HERE"

Health check:

curl -s "$BASE_URL/sm_mcp/health"

Validate token:

curl -s -X POST "$BASE_URL/sm_mcp/auth/validate" \
   -H "Content-Type: application/json" \
   -H "X-API-Key: $MCP_TOKEN" \
   -d '{}'

List MCP tools:

curl -s -X POST "$BASE_URL/sm_mcp/mcp" \
   -H "Content-Type: application/json" \
   -H "X-API-Key: $MCP_TOKEN" \
   -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Count records:

curl -s -X POST "$BASE_URL/sm_mcp/mcp" \
   -H "Content-Type: application/json" \
   -H "X-API-Key: $MCP_TOKEN" \
   -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"odoo_count","arguments":{"model":"res.partner","domain":[]}}}'

Search and read records:

curl -s -X POST "$BASE_URL/sm_mcp/mcp" \
   -H "Content-Type: application/json" \
   -H "X-API-Key: $MCP_TOKEN" \
   -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"odoo_search_read","arguments":{"model":"res.partner","fields":["name","email"],"limit":5}}}'

11. Troubleshooting

Missing API Key

The client did not send a token. Configure X-API-Key, Authorization: Bearer, or ?api_key=.

Model Not Enabled

Enable the model from MCP Server -> Enabled Models or the wizard.

API Key Not Allowed for Model

Open the API key and either clear model restrictions or add the enabled model to the allowed models list.

Operation Not Allowed

Enable the operation on both the model configuration and API key.

AI Client Cannot Connect

Check that:

  • Odoo is reachable over HTTPS.
  • The endpoint uses /sm_mcp/mcp for JSON-RPC clients.
  • The endpoint uses /sm_mcp/sse only for SSE clients.
  • The token is active and not expired.
  • The AI client supports remote MCP or has a local proxy bridge.

Review Logs

Open these menus:

  • MCP Server -> Dashboard
  • MCP Server -> Audit Logs
  • MCP Server -> Sessions
  • MCP Server -> API Keys

12. License

This module is released under the Odoo Proprietary License v1.0 (OPL-1). Usage is governed by Odoo Apps Store licensing terms.

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