Skip to content

opsway/odoo-module-mcp-products

Repository files navigation

Odoo MCP PoC

This is a proof-of-concept for integrating Odoo with Claude using MCP (Model Context Protocol).

Setup and Configuration

Environment Variables

This project uses environment variables to configure the Odoo server connection. Create a .env file in the root directory with the following variables:

# Odoo Server Configuration
ODOO_SERVER_URL=http://your-odoo-server-ip:8069
ODOO_API_ENDPOINT=/odoo

An example .env.example file is provided for reference.

Installation

  1. Clone this repository
  2. Install dependencies:
    npm install
    
  3. Configure your environment variables (see above)
  4. Start the MCP server:
    node server.js
    

Testing

You can run the included test script to verify the MCP implementation:

python test_mcp.py

This will test all required MCP endpoints for Claude integration.

Project Structure

  • odoo_product_mcp/: Odoo module providing MCP endpoints for product operations
  • config/: Odoo configuration files
  • server.js: Node.js MCP server
  • test_mcp.py: MCP implementation test script
  • deploy.sh, rebuild.sh, update_module.sh: Scripts for deployment and management

Deployment

The project includes several scripts for deployment:

  • deploy.sh: Deploy the entire project
  • rebuild.sh: Rebuild the Docker containers
  • update_module.sh: Update just the Odoo module

About

Odoo MCP Sample Module/Server with Products access

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published