Skip to main content

MCP server for Odoo 19.0 via the JSON-2 API

Project description

bemade-odoo-mcp

An MCP server that connects to Odoo 19.0 via the JSON-2 API (/json/2/), giving AI assistants read access to any Odoo model.

Features

  • search_records — Search any model with domain filters, field selection, and pagination
  • read_record — Read specific records by ID
  • list_models — List installed Odoo models
  • get_model_fields — Inspect a model's field schema

Requirements

  • Python 3.12+
  • An Odoo 19.0 instance with an API key

Installation

uv tool install bemade-odoo-mcp

Or from source:

git clone https://github.com/bemade/odoo-mcp.git
cd odoo-mcp
uv sync

Configuration

Set environment variables (or create a .env file):

ODOO_URL=https://your-odoo-instance.com
ODOO_API_KEY=your-api-key-here
ODOO_DB=your-database-name  # only needed for multi-database setups

To create an API key in Odoo, go to Settings > Users > [your user] > Preferences > API Keys.

Usage with Claude Code

Add to your Claude Code MCP config (.claude/settings.json):

{
  "mcpServers": {
    "odoo": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/odoo-mcp", "odoo-mcp"]
    }
  }
}

Or if installed as a tool:

{
  "mcpServers": {
    "odoo": {
      "command": "odoo-mcp"
    }
  }
}

Development

uv sync
uv run pytest

License

LGPL-3.0-only

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

bemade_odoo_mcp-0.1.0a2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

bemade_odoo_mcp-0.1.0a2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file bemade_odoo_mcp-0.1.0a2.tar.gz.

File metadata

  • Download URL: bemade_odoo_mcp-0.1.0a2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Pop!_OS","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bemade_odoo_mcp-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 9fc16cbc4c6962a0d49f88b5508fb41c3fa246516bfb58816230b7119d1360f7
MD5 f22a9597027ce38093fed370c560193c
BLAKE2b-256 0098193b3c82bc664ce959ef7751a35d2d2e42e6d0c96836626e797928e0e39c

See more details on using hashes here.

File details

Details for the file bemade_odoo_mcp-0.1.0a2-py3-none-any.whl.

File metadata

  • Download URL: bemade_odoo_mcp-0.1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Pop!_OS","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bemade_odoo_mcp-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 429b6b50e6d2482c6661767a4c37f44cd8ffb350e008170e19b3d3abacb31a3d
MD5 050c57c43019479d658e21c215ac68a3
BLAKE2b-256 3dfd5fef33f33ff252ddb674957e77f158d107dfc08f46f9220f25506b889bfc

See more details on using hashes here.

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