Skip to main content
Glama

Odoo MCP Improved

by hachecito

Odoo MCP Improved

demo.gif

Odoo MCP Improved Logo

PyPI version Python Versions License

Enhanced Model Context Protocol (MCP) server for Odoo ERP with advanced tools for sales, purchases, inventory and accounting


📋 Table of Contents


🔍 Overview

Odoo MCP Improved is a comprehensive implementation of the Model Context Protocol (MCP) for Odoo ERP systems. It provides a bridge between large language models like Claude and your Odoo instance, enabling AI assistants to interact directly with your business data and processes.

This extended version enhances the original MCP-Odoo implementation with advanced tools and resources for sales, purchases, inventory management, and accounting, making it a powerful solution for AI-assisted business operations.


✨ Features

Core Capabilities

  • Seamless Odoo Integration: Connect directly to your Odoo instance via XML-RPC

  • Comprehensive Data Access: Query and manipulate data across all Odoo modules

  • Modular Architecture: Easily extensible with new tools and resources

  • Robust Error Handling: Clear error messages and validation for reliable operation

Business Domain Support

  • Sales Management: Order tracking, customer insights, and performance analysis

  • Purchase Management: Supplier management, order processing, and performance metrics

  • Inventory Management: Stock monitoring, inventory adjustments, and turnover analysis

  • Accounting: Financial reporting, journal entries, and ratio analysis

Advanced Functionality

  • Analytical Tools: Business intelligence capabilities across all domains

  • Specialized Prompts: Pre-configured prompts for common business scenarios

  • Resource URIs: Standardized access to Odoo data through URI patterns

  • Performance Optimization: Caching and efficient data retrieval


📦 Installation

Using pip

pip install odoo-mcp-improved

From Source

git clone https://github.com/hachecito/odoo-mcp-improved.git cd odoo-mcp-improved pip install -e .

⚙️ Configuration

Environment Variables

export ODOO_URL=https://your-odoo-instance.com export ODOO_DB=your_database export ODOO_USERNAME=your_username export ODOO_PASSWORD=your_password

Configuration File

Create an odoo_config.json file in your working directory:

{ "url": "https://your-odoo-instance.com", "db": "your_database", "username": "your_username", "password": "your_password" }

🚀 Usage

Running the Server

# Using the module python -m odoo_mcp

Example Interactions

# Sales Analysis Using the Odoo MCP, analyze our sales performance for the last quarter and identify our top-selling products. # Inventory Check Check the current stock levels for product XYZ across all warehouses. # Financial Analysis Calculate our current liquidity and profitability ratios based on the latest financial data. # Customer Insights Provide insights on customer ABC's purchase history and payment patterns.

🤖 Claude Desktop Integration

Add the following to your claude_desktop_config.json:

{ "mcpServers": { "odoo": { "command": "python", "args": ["-m", "odoo_mcp"], "env": { "ODOO_URL": "https://your-odoo-instance.com", "ODOO_DB": "your_database", "ODOO_USERNAME": "your_username", "ODOO_PASSWORD": "your_password" } } } }

🛠️ Tools Reference

Sales Tools

Tool

Description

search_sales_orders

Search for sales orders with advanced filtering

create_sales_order

Create a new sales order

analyze_sales_performance

Analyze sales performance by period, product, or customer

get_customer_insights

Get detailed insights about a specific customer

Purchase Tools

Tool

Description

search_purchase_orders

Search for purchase orders with advanced filtering

create_purchase_order

Create a new purchase order

analyze_supplier_performance

Analyze supplier performance metrics

Inventory Tools

Tool

Description

check_product_availability

Check stock availability for products

create_inventory_adjustment

Create inventory adjustment entries

analyze_inventory_turnover

Calculate and analyze inventory turnover metrics

Accounting Tools

Tool

Description

search_journal_entries

Search for accounting journal entries

create_journal_entry

Create a new journal entry

analyze_financial_ratios

Calculate key financial ratios


🔗 Resources Reference

Sales Resources

URI

Description

odoo://sales/orders

List sales orders

odoo://sales/order/{order_id}

Get details of a specific sales order

odoo://sales/products

List sellable products

odoo://sales/customers

List customers

Purchase Resources

URI

Description

odoo://purchase/orders

List purchase orders

odoo://purchase/order/{order_id}

Get details of a specific purchase order

odoo://purchase/suppliers

List suppliers

Inventory Resources

URI

Description

odoo://inventory/products

List products in inventory

odoo://inventory/stock/{location_id}

Get stock levels at a specific location

odoo://inventory/movements

List inventory movements

Accounting Resources

URI

Description

odoo://accounting/accounts

List accounting accounts

odoo://accounting/journal_entries

List journal entries

odoo://accounting/reports/{report_type}

Get financial reports


💬 Prompts

Odoo MCP Improved includes specialized prompts for different business scenarios:

Sales Analysis Prompts

  • Sales trend analysis

  • Customer segmentation

  • Product performance evaluation

  • Sales team performance

Inventory Management Prompts

  • Stock optimization

  • Reordering suggestions

  • Warehouse efficiency analysis

  • Product movement patterns

Human Resources Prompts

  • Staff planning

  • Scheduling optimization

  • Performance evaluation

  • Resource allocation

Financial Analysis Prompts

  • Ratio interpretation

  • Cash flow analysis

  • Budget variance analysis

  • Financial health assessment


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

This repo is extended from mcp-odoo - Lê Anh Tuấn


Odoo MCP Improved - Empowering AI assistants with comprehensive Odoo ERP capabilities

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A comprehensive implementation of the Model Context Protocol for Odoo ERP systems that enables AI assistants to interact directly with business data across sales, purchases, inventory, and accounting modules.

  1. 📋 Table of Contents
    1. 🔍 Overview
      1. ✨ Features
        1. Core Capabilities
        2. Business Domain Support
        3. Advanced Functionality
      2. 📦 Installation
        1. Using pip
        2. From Source
      3. ⚙️ Configuration
        1. Environment Variables
        2. Configuration File
      4. 🚀 Usage
        1. Running the Server
        2. Example Interactions
      5. 🤖 Claude Desktop Integration
        1. 🛠️ Tools Reference
          1. Sales Tools
          2. Purchase Tools
          3. Inventory Tools
          4. Accounting Tools
        2. 🔗 Resources Reference
          1. Sales Resources
          2. Purchase Resources
          3. Inventory Resources
          4. Accounting Resources
        3. 💬 Prompts
          1. Sales Analysis Prompts
          2. Inventory Management Prompts
          3. Human Resources Prompts
          4. Financial Analysis Prompts
        4. 📄 License

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            An MCP server implementation that integrates with Odoo ERP systems, enabling AI assistants to interact with Odoo data and functionality through the Model Context Protocol.
            Last updated -
            214
            MIT License
          • -
            security
            F
            license
            -
            quality
            An implementation that integrates with Odoo ERP systems, enabling AI assistants to interact with Odoo data and functionality through the Model Context Protocol.
            Last updated -
          • -
            security
            A
            license
            -
            quality
            A bridge that allows AI agents to access and manipulate Odoo ERP data through a standardized Model Context Protocol interface, supporting partner information, accounting data, financial records reconciliation, and invoice queries.
            Last updated -
            10
            MIT License
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables AI assistants to interact with Odoo ERP systems, providing comprehensive tools for searching, creating, updating, and managing Odoo records through a standardized interface.
            Last updated -
            4
            GPL 3.0
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/hachecito/odoo-mcp-improved'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server