MCP server that exposes Odoo database records to LLMs via Model Context Protocol
Project description
Odoo MCP Server
A Model Context Protocol (MCP) server that provides LLMs with read-only access to Odoo databases. This server exposes Odoo models and records through the MCP protocol, allowing AI assistants to query and analyze your Odoo data.
Features
- Read-only access to Odoo databases via OdooRPC
- Model discovery - List all available Odoo models
- Field introspection - Get detailed field information for any model
- Flexible querying - Search records with Odoo's domain syntax
- Record reading - Fetch specific records by ID
- Count operations - Get record counts without fetching data
- Environment-based configuration - Secure credential management
- MCP compliance - Works with any MCP-compatible client
Installation
Install directly with uvx (recommended):
Odoo MCP Server
A Model Context Protocol (MCP) server that provides LLMs with read-only access to Odoo databases. This server exposes Odoo models and records through the MCP protocol, allowing AI assistants to query and analyze your Odoo data.
Features
- Read-only access to Odoo databases via OdooRPC
- Model discovery – list all available Odoo models
- Field introspection – get detailed field information for any model
- Flexible querying – search records with Odoo's domain syntax
- Record reading – fetch specific records by ID
- Count operations – get record counts without fetching data
- Environment-based configuration – secure credential management
- MCP compliance – works with any MCP-compatible client
Installation
Install directly with uvx (recommended):
uvx odoorpc-mcp
VS Code MCP setup
Create a .vscode/mcp.json in your workspace with:
{
"servers": {
"odoo": {
"type": "stdio",
"command": "uvx",
"args": [
"odoorpc-mcp"
],
"env": {
"ODOO_URL": "${input:odoo_url}",
"ODOO_DB": "${input:odoo_db}",
"ODOO_USERNAME": "${input:odoo_username}",
"ODOO_PASSWORD": "${input:odoo_password}"
}
}
},
"inputs": [
{
"id": "odoo_url",
"type": "promptString",
"description": "Odoo Server URL (e.g., https://your-odoo.com)"
},
{
"id": "odoo_db",
"type": "promptString",
"description": "Odoo Database Name"
},
{
"id": "odoo_username",
"type": "promptString",
"description": "Odoo Username"
},
{
"id": "odoo_password",
"type": "promptString",
"description": "Odoo Password",
"password": true
}
]
}
Alternatively, put credentials in a .env file in your workspace:
ODOO_URL=https://your-odoo-instance.com
ODOO_DB=your_database
ODOO_USERNAME=your_username
ODOO_PASSWORD=your_password
Usage
- Show config example:
odoorpc-mcp --config-example
- Print version:
odoorpc-mcp --version
- Start the MCP server (requires environment variables):
odoorpc-mcp
Development
Build locally:
uv build
Run from source:
PYTHONPATH=src python3 -m odoo_mcp.cli --config-example
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoorpc_mcp-0.1.2.tar.gz.
File metadata
- Download URL: odoorpc_mcp-0.1.2.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
271a45824239850bd9f8fb0c726b811915cc0b0f83a50c12ef0a88a0c8aa69e6
|
|
| MD5 |
31292bc5d847bdd05df4c1842a0f0d5f
|
|
| BLAKE2b-256 |
27e3181a062f9f47829474c2ea450da57e1d4406c59e0d7bed19d1518c37f5ab
|
Provenance
The following attestation bundles were made for odoorpc_mcp-0.1.2.tar.gz:
Publisher:
publish.yml on benagricola/odoo-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
odoorpc_mcp-0.1.2.tar.gz -
Subject digest:
271a45824239850bd9f8fb0c726b811915cc0b0f83a50c12ef0a88a0c8aa69e6 - Sigstore transparency entry: 588186484
- Sigstore integration time:
-
Permalink:
benagricola/odoo-mcp@b84a0956f7dc22618e0b34ff60345420e742211e -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/benagricola
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b84a0956f7dc22618e0b34ff60345420e742211e -
Trigger Event:
push
-
Statement type:
File details
Details for the file odoorpc_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: odoorpc_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be26e603eea2ebc7d20156ea1ee36a756b48c18f492672dbf4fe3c81e078643c
|
|
| MD5 |
5924fa5558e868a64f6d075a7c2dd34a
|
|
| BLAKE2b-256 |
cf2e5dd0d7872f3ab86dfa3960d92ae84618b5128d4121e02dab0bd77dae527d
|
Provenance
The following attestation bundles were made for odoorpc_mcp-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on benagricola/odoo-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
odoorpc_mcp-0.1.2-py3-none-any.whl -
Subject digest:
be26e603eea2ebc7d20156ea1ee36a756b48c18f492672dbf4fe3c81e078643c - Sigstore transparency entry: 588186488
- Sigstore integration time:
-
Permalink:
benagricola/odoo-mcp@b84a0956f7dc22618e0b34ff60345420e742211e -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/benagricola
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b84a0956f7dc22618e0b34ff60345420e742211e -
Trigger Event:
push
-
Statement type: