Skip to main content

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


Download files

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

Source Distribution

odoorpc_mcp-0.1.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

odoorpc_mcp-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file odoorpc_mcp-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for odoorpc_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5ca5bd6c22639a6d45d175f71914021bbfe0c7d22fce54fde73036aefdb98ee4
MD5 ba34786fb0366f457c1fbae21ac0f51a
BLAKE2b-256 2ed63ff93930a6c0ec00e056d7ab280d2c445d1e9bc2a4bea4f24da16481887a

See more details on using hashes here.

Provenance

The following attestation bundles were made for odoorpc_mcp-0.1.1.tar.gz:

Publisher: publish.yml on benagricola/odoo-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 odoorpc_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: odoorpc_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for odoorpc_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e2b93520dcbb07079824f6c41a8cf271bd6bbf18f42bade77516afc0a01e9fb
MD5 8f978203ae3de96dc8e34e17bd923caf
BLAKE2b-256 b9a977a534701b62f616d6eec73d9b3824ab9561bfc86875a2e3ae07c4f6e1fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for odoorpc_mcp-0.1.1-py3-none-any.whl:

Publisher: publish.yml on benagricola/odoo-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