mcp-odoo-model-explorer

YouriT/mcp-odoo-model-explorer

3.2

If you are the rightful owner of mcp-odoo-model-explorer and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The MCP Odoo Model Explorer is a server that allows AI assistants to explore and analyze Odoo models, fields, relationships, and methods, facilitating ERP development.

Tools
6
Resources
0
Prompts
0

MCP Odoo Model Explorer

License: MIT Bun Odoo

A Model Context Protocol (MCP) server that provides AI assistants with resources and tools to explore and analyze Odoo models, fields, relationships, and methods. Connect to any Odoo instance to inspect database structure, search models, fetch records, and discover related entities for ERP development.

Table of Contents

Features

  • Models Resource: Browse all Odoo models via odoo://models
  • Model Schema: Inspect field properties and types via odoo://model/{model}
  • Record Access: Fetch specific records via odoo://record/{model}/{id}
  • Advanced Search: Filter records with domain queries, pagination, and ordering
  • Related Models: Discover model relationships via many2one, one2many, many2many fields
  • Model Methods: Search Odoo GitHub source for model methods and implementations

Usage

Configure your MCP client to run:

bunx @yourit/mcp-odoo-model-explorer

Environment Variables

VariableRequiredDescription
ODOO_DBYesDatabase name
ODOO_USERYesUsername
ODOO_PASSWORDYesPassword
ODOO_URLNoOdoo instance URL (defaults to https://{ODOO_DB}.odoo.com)
ODOO_READONLYNoSet to false to enable record mutations (default: true)
GITHUB_TOKENNoGitHub token for get-model-methods tool

Resources

MCP Resources provide read-only access to Odoo data via URI patterns:

ResourceURI PatternDescription
Modelsodoo://modelsList all available Odoo models
Model Schemaodoo://model/{model}Get model info including all fields
Recordodoo://record/{model}/{id}Get a specific record by ID

Tools

Tools provide parameterized actions for complex queries:

ToolDescriptionParameters
search-modelSearch models with domain filtersdomain, limit, fields?
search-recordsSearch records in a modelmodel, domain?, fields?, limit?, offset?, order?
count-recordsCount records matching domain filtermodel, domain?
get-related-modelsFind related modelsmodel
get-model-methodsFind model methods in Odoo sourcemodel
update-recordUpdate existing recordsmodel, ids, values (requires ODOO_READONLY=false)

Development

Requires Bun runtime.

bun install          # Install dependencies
bun src/index.ts     # Run the server

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see file for details.

Links