odoo-devkit
Provides tools for Odoo 17/18/19 development: discovering and searching addons/modules, inspecting models, fields, methods, views, actions, menus, and security; validating XML views; scaffolding patches; and running module upgrades or RPC calls.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
odoo-devkit
Token-efficient MCP server for Odoo 17/18/19 development.
odoo-devkit gives AI assistants structured access to your Odoo codebase for discovery, search, model/view analysis, XML checks, and scaffolding patches.
Highlights
Fast module and code discovery across addons roots
Model surface inspection (fields, methods, views, actions, menus, security)
View inheritance navigation (
find_view_chain, inherited views, field usage)Patch scaffolding for common Odoo tasks (models, views, actions, menus, security, wizards, reports)
XML validation for view structure and field references
Web dashboard that starts with the MCP server (Serena-style flow)
Layered config: global + project override
Related MCP server: MCP Odoo Server
Requirements
Python 3.10+
uv(recommended)ripgrep(rg) for fast search
Install examples:
# Ubuntu/Debian
sudo apt install ripgrep
# macOS
brew install ripgrepInstallation
git clone https://github.com/VatsalChauhan36/odoo-devkit.git
cd odoo-devkit
uv sync
uv run odoo-devkit --helpConfiguration
You can configure roots and defaults via environment variables, global config, and project config.
Config files (Serena-like)
Global config:
~/.odoo-devkit/config.jsonProject config:
<project-root>/.odoo-devkit/project.json
Effective config resolution:
Global config
Project override (if project root is detected)
Project root detection order:
ODOO_MCP_PROJECT_ROOTnearest ancestor containing
.odoo-devkit/project.jsonnearest ancestor containing
.git
Root paths priority
Addons roots are resolved with this priority:
ODOO_MCP_ROOTSsaved config (
rootsin global/project config)
Typical roots order:
Custom addons
Odoo server addons
Odoo base addons
Example:
export ODOO_MCP_ROOTS="/path/to/custom-addons:/path/to/odoo/addons:/path/to/odoo/odoo/addons"Windows PowerShell:
$env:ODOO_MCP_ROOTS = "C:\custom-addons;C:\odoo\addons;C:\odoo\odoo\addons"Optional docs search
To enable search_odoo_docs, set:
export ODOO_MCP_DOCS_PATH="/path/to/odoo/documentation"Dashboard flow
The dashboard starts with the MCP server by default.
Saved settings include:
open_browserenable_dashboarddashboard_host
CLI overrides:
uv run odoo-devkit --no-dashboard
uv run odoo-devkit --dashboard-host 0.0.0.0
uv run odoo-devkit --no-open-browser
uv run odoo-devkit --project-root /path/to/projectIf browser auto-open is skipped (for example, headless Linux), use the MCP tool open_dashboard.
Screenshots
Then this preview will render automatically:

Deprecated CLI flags
These flags are intentionally kept for backward compatibility and are ignored:
--roots--config
They emit warnings and do not affect runtime behavior.
MCP client setup
Claude Code
{
"mcpServers": {
"odoo-devkit": {
"type": "stdio",
"command": "uv",
"args": [
"run",
"--directory", "/path/to/odoo-devkit",
"odoo-devkit",
"--project-root", "/path/to/your/project"
]
}
}
}Cursor
{
"mcpServers": {
"odoo-devkit": {
"command": "uv",
"args": [
"run",
"--directory", "/path/to/odoo-devkit",
"odoo-devkit",
"--project-root", "/path/to/your/project"
]
}
}
}Tool overview
Discovery & search
list_moduleslist_custom_modulesget_module_manifestget_module_structureglob_odoo_filesread_file_linessearch_odoo_codesearch_odoo_docs
Model and view analysis
inspect_model_surfacefind_model_definitionget_model_fieldsfind_method_definitionfind_view_definitionfind_inherited_viewsfind_view_by_modelfind_view_chainfind_field_in_viewsvalidate_view_xml
Actions, menus, and security
find_action_by_modelfind_menu_hierarchyfind_security_access_for_model
Scaffolding (patch generation)
scaffold_model_patchscaffold_inherit_model_patchscaffold_view_inherit_patchscaffold_views_patchscaffold_action_patchscaffold_menu_patchscaffold_security_access_patchscaffold_record_rule_patchscaffold_wizard_patchscaffold_report_patchmanifest_update_patchinit_update_patch
Runtime helpers
run_module_upgradeexecute_rpccheck_rpc_connectionopen_dashboard
Recommended usage pattern
Start with
list_custom_modulesandget_module_structureNarrow with
search_odoo_code(module_filter,glob)Use
inspect_model_surfacefor model-level orientationUse view tools for inheritance-aware XML navigation
Use scaffold tools to generate safe patches before applying
Troubleshooting
No valid roots found
Set ODOO_MCP_ROOTS or save roots in dashboard config (global/project).
rg: command not found
Install ripgrep (ripgrep package).
Dashboard did not open
Check
open_browsersettingUse
--open-browserto force when supportedOn headless Linux, open URL manually or call
open_dashboard
MCP client cannot connect
Verify path in
--directoryRe-run
uv syncRun
uv run odoo-devkit --helplocally
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI to Odoo ERP 14-20: search, create, update and manage records in natural language.
Read, write and run Odoo actions from any AI app, as each user, with approval rules per colleague.
Connect any AI assistant to Odoo 16–19 via OAuth 2.0 + PKCE. 400 free calls, no local install.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Odoo ERP systems through XML-RPC communication. Provides access to Odoo models, records, methods, and data structures for comprehensive ERP integration.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Odoo databases via XML-RPC and JSON-RPC for performing CRUD operations and managing modules. It supports advanced features like domain-based searching, field metadata inspection, and administrative task execution.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to fully interact with Odoo ERP instances over XML-RPC, supporting read and write operations on any model without requiring Odoo module installation.5AGPL 3.0
- AlicenseAqualityCmaintenanceEnables AI assistants to manage Odoo development environments by providing tools for server control, module management, database operations, and project navigation.42MIT