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 henry@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 TypeScript Odoo

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

Table of Contents

🚀 Features

  • 📋 List Models: Get all Odoo models in your database with descriptions
  • 🔍 Model Fields: Inspect field properties, types, relationships, and constraints
  • 📊 Sample Records: Fetch sample data from any model with custom field selection
  • 🔗 Related Models: Discover model relationships via many2one, one2many, many2many fields
  • 🧩 Model Methods: Search Odoo GitHub source for model methods and implementations
  • 🔎 Advanced Search: Filter models with domain queries and custom criteria

🛠️ Usage

First, configure access to GitHub Packages:

npm config set @yourit:registry https://npm.pkg.github.com

With Claude Code (CLI)

claude mcp add-json mcp-odoo-model-explorer '{
  "command": "npx",
  "args": ["@yourit/mcp-odoo-model-explorer"],
  "env": {
    "ODOO_URL": "${ODOO_URL}",
    "ODOO_DB": "${ODOO_DB}",
    "ODOO_USER": "${ODOO_USER}",
    "ODOO_PASSWORD": "${ODOO_PASSWORD}",
    "GITHUB_TOKEN": "${GITHUB_TOKEN}"
  }
}'

With Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "odoo-model-explorer": {
      "command": "npx",
      "args": ["@yourit/mcp-odoo-model-explorer"],
      "env": {
        "ODOO_URL": "${ODOO_URL}",
        "ODOO_DB": "${ODOO_DB}",
        "ODOO_USER": "${ODOO_USER}",
        "ODOO_PASSWORD": "${ODOO_PASSWORD}",
        "GITHUB_TOKEN": "${GITHUB_TOKEN}"
      }
    }
  }
}

With VS Code + MCP Extension

Add to your .vscode/mcp.json:

{
  "servers": {
    "odoo-model-explorer": {
      "type": "stdio",
      "command": "npx",
      "args": ["@yourit/mcp-odoo-model-explorer"],
      "env": {
        "ODOO_URL": "${input:odoo-url}",
        "ODOO_DB": "${input:odoo-db}",
        "ODOO_USER": "${input:odoo-user}",
        "ODOO_PASSWORD": "${input:odoo-password}",
        "GITHUB_TOKEN": "${input:github-token}"
      }
    }
  }
}

🔧 Available Tools

ToolDescriptionParameters
list-odoo-modelsList all models in databaseNone
get-model-fieldsGet field details for a modelmodel
get-model-recordsFetch sample recordsmodel, limit, fields?
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-recordFetch a specific record by IDmodel, record_id, fields?
get-related-modelsFind related modelsmodel
get-model-methodsFind model methods in Odoo sourcemodel, branch?

🛠️ Development

pnpm install    # Install dependencies
pnpm dev        # Development mode
pnpm build      # Build for production
pnpm start      # Run built version

🤝 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.

🔗 Resources