Skip to main content

MCP-Odoo

Model Context Protocol server for Odoo integration, allowing AI agents to access and manipulate Odoo data through a standardized interface.

Overview

MCP-Odoo provides a bridge between Odoo ERP systems and AI agents using the Model Context Protocol (MCP). This enables AI systems to:

  • Access partner information
  • View and analyze accounting data including invoices and payments
  • Perform reconciliation of financial records
  • Query vendor bills and customer invoices

Features

  • 🔌 Easy integration with Odoo instances
  • 🤖 Standard MCP interface for AI agent compatibility
  • 📊 Rich accounting data access
  • 🔒 Secure authentication with Odoo

Installation

# Clone the repository
git clone https://github.com/yourtechtribe/model-context-protocol-mcp-odoo.git
cd model-context-protocol-mcp-odoo

# Install dependencies
pip install -r requirements.txt

Configuration

Create a .env file in the project root with the following variables:

ODOO_URL=https://your-odoo-instance.com
ODOO_DB=your_database
ODOO_USERNAME=your_username
ODOO_PASSWORD=your_password
HOST=0.0.0.0
PORT=8080

Usage

Start the MCP server:

# Using the SSE transport (default)
python -m mcp_odoo_public

# Using stdio for local agent integration
python -m mcp_odoo_public --transport stdio

Documentation

Comprehensive documentation is available in the docs/ directory:

Development

Project Structure

  • mcp_odoo_public/: Main package
    • odoo/: Odoo client and related modules
    • resources/: MCP resources definitions (tools and schemas)
    • server.py: MCP server implementation
    • config.py: Configuration management
    • mcp_instance.py: FastMCP instance definition

Adding New Resources

Resources define the capabilities exposed to AI agents through MCP. To add a new resource:

  1. Create a new file in the resources/ directory
  2. Define your resource using the @mcp.tool() decorator
  3. Import your resource in resources/__init__.py

For detailed instructions, see the Implementation Guide.

License

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

Author

Albert Gil López

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Download files

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

Source Distribution

iflow_mcp_yourtechtribe_mcp_odoo-0.1.0.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file iflow_mcp_yourtechtribe_mcp_odoo-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_yourtechtribe_mcp_odoo-0.1.0.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_yourtechtribe_mcp_odoo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86186b60905d5afcdb319ec713fbd4374907cf0d899fcad62ef6cf0928b5f805
MD5 306054eb1836497e3b44baf4abd059d7
BLAKE2b-256 106f3d6b191328ada4eb2f2541ab827bc242fd433521a18b92702b045aafd9d2

See more details on using hashes here.

File details

Details for the file iflow_mcp_yourtechtribe_mcp_odoo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_yourtechtribe_mcp_odoo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_yourtechtribe_mcp_odoo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89855cba6c5ad7f1886b0fb9140d9254263da9665c958ccc14a94822ff1db69c
MD5 5193df1e4b02bfc6d3a5620f268e8c0e
BLAKE2b-256 c6f1366b31f135d76a0a0a750a94abd4f643bf5275878cb559e565e2d8c8e0e0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

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