Back to Top

Odoo MCP Server Integration User Guide

Introduction

Odoo MCP Server Integration enables Odoo to communicate with MCP-compatible AI applications through the Model Context Protocol (MCP).

It allows AI clients such as ChatGPT, Claude, Gemini, and other compatible applications to securely access Odoo data and capabilities.

The module supports Odoo as a Self MCP Server, allowing AI clients to connect directly to Odoo through its MCP endpoint.

It can also connect Odoo to an externally deployed MCP Server, giving users flexibility to use the server that best suits their requirements.

The integration supports OAuth-based authentication, User API Keys, model access control, and CRUD permissions.

It also provides request monitoring to help manage MCP access while maintaining Odoo’s security controls.

It also provides health and documentation endpoints that allow users and external systems to check the MCP server status and access API information.

Features

  1. Use Odoo MCP Server Integration as a Self MCP Server with a generated MCP endpoint.
  2. Connect supported AI clients through Instant Connect and OAuth.
  3. Generate user-specific API keys for Bearer Token authentication.
  4. Restrict Read, Create, Update, and Delete operations through MCP.
  5. Configure request limits, timeouts, global restrictions, and log retention.
  6. Use Odoo MCP Server Integration to connect Odoo with a compatible external MCP Server.
  7. Configure an AI provider and use the chatbot in Odoo Discuss.
  8. Review MCP activity, request status, and operation details.
  9. Monitor MCP server activity through the Analytics Dashboard.
  10. Check MCP server health through the /mcp/health endpoint.
  11. Access MCP API and endpoint documentation through the /mcp/docs endpoint.

Installation

  1. Once you purchase the App from Webkul store, you will receive a link to download module’s zip file.
  2. Extract the file on your system after download finishes. As a result, you will be able to see a folder named- ‘odoo_mcp_server’
  3. Copy and paste this folder inside your Odoo Add-Ons path.
  4. Now, open Odoo App and click on the Settings menu. Here, click on Activate Developer Mode.
  5. Then, open Apps menu and click on ‘Update Modules List.’
  6. In the search bar, remove all the filters and search ‘‘odoo_mcp_server’
  7. You will be able to see module in the search results. Click on ‘Install’ to install it.

Note: An optional External MCP Server Deployment, provided by us, is also available if you prefer to host the MCP Server externally.

Workflow

The Odoo MCP Server Integration workflow covers server configuration, secure authentication, access control, AI client connections, and request monitoring.

1. Self MCP Server Configuration

Go to MCP Server → MCP Server Configuration and click New.

Enter the configuration name and select Use Odoo as Self MCP Server. Odoo automatically generates the MCP Server URL.

Under Security Settings, configure Max Requests/Minute and Request Timeout (seconds).

Save the configuration and click Test Connection to verify that the MCP endpoint is reachable.

self mcp server configuration

2. Model Access Control

Open the configured Self MCP Server and go to Model Access.

Add the required Odoo model and configure the operations that MCP users can perform.

You can restrict Read, Create, Update, or Delete access for the selected model. These restrictions work in addition to the authenticated user’s existing Odoo permissions.

mcp model access control

MCP restrictions do not grant permissions to users who do not already have the required Odoo access rights.

3. Global MCP Security and Log Retention

Go to Settings → Model Context Protocol.

Under Global MCP Security, configure the global restrictions for Read, Create, Update, and Delete operations as required.

Under the log management settings, configure Log Retention Days and enable the automated deletion cron when older MCP logs should be removed automatically.

global mcp security log retention

4. Instant OAuth Connection

Return to the Self MCP Server configuration and click Instant Connect.

Select the required supported AI client, such as ChatGPT, Claude, or Gemini, to start the guided OAuth connection.

instant oauth connection

5. Claude Connector Setup

In the selected AI client, open the option to add a custom connector.

Enter the Odoo MCP connector details and provide the MCP Server URL generated in Odoo.

Continue with the connector setup to proceed with authentication.

add custom connector

6. OAuth Authentication and Authorization

Select OAuth as the authentication method and continue with the authorization flow.

Sign in to Odoo when prompted and review the requested access.

Click Authorize Access to complete the connection.

The MCP session operates using the Odoo access context of the user who completes the authorization.

connector oauth settings
authorize mcp access

7. Verify OAuth Client

After completing the OAuth authorization, open OAuth Clients in Odoo.

Review the registered client and open its record to view the client configuration, including the registered client details and authorized users.

oauth clients list
oauth client configuration

8. User API Key Authentication

For MCP clients that require manual configuration, open User API Keys and click Generate New API Key.

Select the Odoo user whose access should be used and generate the API key.

Use the generated key with the MCP Server URL in the supported client through Bearer Token authentication.

generated user api key

The MCP client operates according to the permissions of the Odoo user associated with the API key.

9. Query Odoo Data

Once the AI client is connected, enable the Odoo MCP connector and start a conversation.

Ask the AI client about Odoo data that the authenticated user is permitted to access.

For example, you can ask which customers generated the highest revenue and which products they frequently purchase.

ai client query odoo data

The response is generated using the accessible Odoo data and the permissions configured for the authenticated user.

10. Use Odoo as an MCP Client

External MCP Server Configuration

Create a new MCP configuration and select Use External MCP Server.

Enter the required MCP External Server URL and authentication details for the external MCP Server.

external mcp server configuration

LLM Configuration

Under Odoo As MCP Client, enable Enable to Use Odoo As MCP Client.

Select the required LLM Provider and LLM Model, then enter the provider API key.

Save the configuration and test the connection.

Open the Odoo MCP Chatbot

Click Open Chatbot and use the configured chatbot from Odoo Discuss.

The chatbot can use the configured external MCP Server and its available capabilities.

11. Statistics and Request Monitoring

Open the available MCP analytics views to review MCP activity, usage, and request trends.

Analytics Dashboard

Open the MCP Server → Dashboard to view the Analytics Dashboard.

The dashboard provides an overview of MCP server activity, including Total Requests, Successful Requests, Failed Requests, Average Response Time, Active Clients, and Active Users.

Use the available filters to review activity by date range, client, user, or model.

The dashboard also provides insights into MCP Request Activity, Top Users, Requests by Client, Most Used Tools, Most Accessed Models, and Recent Errors.

mcp analytics dashboard

Request Logs

For detailed request-level information, go to MCP Server → Request Logs.

The request details allow you to review the authenticated user, MCP client, authentication type, response time, status, MCP operation, and request/response payloads.

mcp request logs
mcp request log details

12. Health and Documentation Endpoints

Check MCP Server Health

Open the /mcp/health endpoint to check the health and availability of the MCP Server.

The endpoint provides server health and operational information, allowing users or external monitoring systems to verify whether the MCP Server is active and functioning properly.

The health information includes details such as database connection, MCP configuration, registered tools, response time, MCP protocol status, authentication status, server version, and uptime.

mcp health diagnostics

Access MCP API Documentation

Open the /mcp/docs endpoint in a browser to access the MCP Server API documentation.

The documentation provides the information required to understand and interact with the MCP Server, including connection and authentication details, endpoint information, and API usage.

Users and developers can refer to this documentation when working with the available MCP endpoints.

mcp api documentation

Need Help?

Hope you find the guide helpful! Please feel free to share your feedback in the comments below.

If you still have any issues/queries, please create a ticket at the UV Desk.

I hope this helps. In case of any further queries, contact us at our support mail.

Thanks for paying attention!!

Current Product Version - 1.3.1

Supported Framework Version - V19, V18, V17

Blog Version - V19, V18, V17
  • Version version 18,19
  • Version V19, V18, V17
  • Version Odoo 18, Odoo 19
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


2 comments

  • Daniel
    • Rani Kumari (Moderator)
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home
    On this page

    Table of Content

    Back to top