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.2.tar.gz (11.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.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

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

Hashes for odoorpc_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 271a45824239850bd9f8fb0c726b811915cc0b0f83a50c12ef0a88a0c8aa69e6
MD5 31292bc5d847bdd05df4c1842a0f0d5f
BLAKE2b-256 27e3181a062f9f47829474c2ea450da57e1d4406c59e0d7bed19d1518c37f5ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for odoorpc_mcp-0.1.2.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.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

Hashes for odoorpc_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 be26e603eea2ebc7d20156ea1ee36a756b48c18f492672dbf4fe3c81e078643c
MD5 5924fa5558e868a64f6d075a7c2dd34a
BLAKE2b-256 cf2e5dd0d7872f3ab86dfa3960d92ae84618b5128d4121e02dab0bd77dae527d

See more details on using hashes here.

Provenance

The following attestation bundles were made for odoorpc_mcp-0.1.2-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