Skip to main content

MCP Server for Odoo Integration

Project description

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

Based on odoo-mcp-enhanced but with up-to-date libraries, using Python 3.12, and improved logging and configuration options.


📋 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-superior-mcp

🚀 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odoo_superior_mcp-1.1.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odoo_superior_mcp-1.1.0-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file odoo_superior_mcp-1.1.0.tar.gz.

File metadata

  • Download URL: odoo_superior_mcp-1.1.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for odoo_superior_mcp-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5ceeb7de4ccbbe93de44c29906e557f064546b512c24ac0076c63e3ddb961cd9
MD5 cad7951de1ec31a28c0d09a841479ac0
BLAKE2b-256 37b539a2b71a1a9051aaa592739ba79ece3c673a623ad1e2a7a639ab02cc1761

See more details on using hashes here.

Provenance

The following attestation bundles were made for odoo_superior_mcp-1.1.0.tar.gz:

Publisher: build_and_publish.yml on nitram509/odoo-superior-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file odoo_superior_mcp-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_superior_mcp-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0408f30aba6229ade489d71f8aa88b81955de1bb8d83e06d3d2195c90066379e
MD5 49a403c469c4cec4b604319f7e9f3e85
BLAKE2b-256 06472290e91d4270e859ecea8503120be5583baeaf545ecf01fc3b4f1971eb0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for odoo_superior_mcp-1.1.0-py3-none-any.whl:

Publisher: build_and_publish.yml on nitram509/odoo-superior-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page