Odoo OSI MCP
Enables coding agents to search, inspect, and recommend open-source Odoo/OCA modules before writing custom code, with source-backed evidence and version/migration guidance.
README
Odoo Open Source Intelligence
Odoo Open Source Intelligence, or Odoo OSI, is an enterprise-grade platform for discovering, evaluating, comparing, and recommending open-source Odoo modules before teams write custom code.
The AI-facing interface is Odoo OSI MCP, an unofficial MCP server that lets coding agents search and inspect indexed OCA and trusted open-source Odoo repositories.
Odoo OSI is not affiliated with, endorsed by, or sponsored by the Odoo Community Association (OCA) or Odoo S.A. OCA and Odoo names are used only to identify public open-source repositories and ecosystem references.
Current Build Stage
This repository now has the first working backend and MCP vertical slice:
- FastAPI API for health, repositories, modules, search, code search, and solution finding
- PostgreSQL schema and Alembic migration for repositories, branches, modules, dependencies, source files, and symbols
- GitHub/OCA ingestion for repositories, Odoo version branches, manifests, metadata, dependencies, and selected source files
- Odoo-aware Python, XML, CSV security, and README extraction
- requirement-to-module search with version, license, manifest, and indexed document signals
- source-backed recommendation evidence
- cross-version recommendation candidates with migration/backport guidance
- live GitHub/OCA fallback for likely modules that are not indexed yet
- MCP server with search, solution, code, module, and dependency tools
- persisted indexing job ledger surfaced through
/indexing/status - local PostgreSQL and Redis configuration
- linting and test coverage
Quick Start
Follow these steps to run Odoo OSI locally from a fresh clone.
1. Prerequisites
Install:
- Python 3.11 or newer
- Docker and Docker Compose
- Git
- A GitHub personal access token for practical indexing and fallback search
2. Clone The Repository
git clone https://github.com/krishnakantjoshi/odoo-osi-mcp.git
cd odoo-osi-mcp
3. Create Local Configuration
cp .env.example .env
Open .env and set your own GitHub token:
ODOO_OSI_GITHUB_TOKEN=YOUR_GITHUB_TOKEN
.env is ignored by git. Do not commit real tokens.
4. Start PostgreSQL And Redis
docker compose up -d postgres redis
5. Create A Python Environment
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,mcp]"
On Windows PowerShell, activate the virtual environment with:
.\.venv\Scripts\Activate.ps1
6. Run Database Migrations
alembic upgrade head
7. Start The API Server
uvicorn odoo_osi.api.app:create_app --factory --reload
Check the API:
curl http://127.0.0.1:8000/health
curl http://127.0.0.1:8000/indexing/status
8. Discover And Index A Small Sample
In another terminal, activate the virtual environment again:
source .venv/bin/activate
Discover module manifests from one OCA repository:
odoo-osi discover-oca \
--repository purchase-workflow \
--odoo-version 18.0 \
--branch-limit 1 \
--module-limit 20 \
--persist
Index source evidence for a small set of modules:
odoo-osi index-source \
--repository purchase-workflow \
--odoo-version 18.0 \
--module-limit 10 \
--file-limit 30
Check coverage:
odoo-osi coverage
curl http://127.0.0.1:8000/indexing/coverage
9. Search For Modules
curl -X POST http://127.0.0.1:8000/solutions/find \
-H "Content-Type: application/json" \
-d '{"requirement":"multi level purchase approval","odoo_version":"18.0","limit":5}'
10. Run The MCP Server
For a local MCP client, use stdio:
odoo-osi run-mcp
Most MCP clients use a config like this:
{
"mcpServers": {
"odoo-osi": {
"command": "/absolute/path/to/odoo-osi-mcp/.venv/bin/odoo-osi",
"args": ["run-mcp"],
"cwd": "/absolute/path/to/odoo-osi-mcp",
"env": {
"ODOO_OSI_GITHUB_TOKEN": "REPLACE_WITH_YOUR_OWN_GITHUB_TOKEN"
}
}
}
}
The same example is in mcp.json.example. If your MCP client does not support
env, put the token in your local .env instead.
11. Run Tests
python -m ruff check .
python -m pytest
Example Prompts
After configuring the MCP server in your AI coding tool, try these prompts.
Check Index Coverage
Use the odoo-osi MCP server.
Before searching for modules, call get_coverage_report and summarize:
1. how many modules are indexed
2. how many modules have source evidence
3. whether results should be treated as complete or partial
4. what indexing step I should run next
Find An Existing Module Before Custom Development
Use the odoo-osi MCP server.
I am developing on Odoo 18 Community.
Requirement:
I need a multi-level purchase approval workflow.
Before writing custom code, check whether an existing open-source Odoo/OCA module satisfies
this requirement.
Return exact-version matches first, then older-version migration candidates, then discovered
but not indexed candidates. Include module name, repository, license warning, evidence level,
version status, migration effort, source evidence, README evidence, security-rule evidence,
and indexing guidance.
Do not generate custom code until I review the MCP result.
Inspect A Candidate Module
Use the odoo-osi MCP server.
Inspect the module purchase_request from OCA/purchase-workflow for Odoo 18.0.
Summarize:
1. manifest metadata
2. dependencies
3. license warnings
4. models and inherited models
5. views, actions, and menus
6. security access rules
7. README evidence
8. whether it is safe to use as implementation reference
Search For A Code Pattern
Use the odoo-osi MCP server.
Search indexed OCA source for modules that extend purchase.order in Odoo 18.0.
Return the repository, module, file path, symbol type, model name, inherited model, and any
useful XML IDs.
Prepare A Development Brief
Use the odoo-osi MCP result as the primary reference.
Target:
- Odoo version: 18.0
- Edition: Community
- Organization/developer: Your Org
- Technical module prefix: your_org
- New module technical name: your_org_purchase_approval
Produce a development brief, branding brief, exact file plan, and minimal test plan.
Do not write code until the brief and file plan are approved.
For full prompt templates, see AI Development Brief Guide.
Troubleshooting
- Database connection fails: run
docker compose up -d postgres redis, then rerunalembic upgrade head. - GitHub rate limits: set
ODOO_OSI_GITHUB_TOKENin.env. - MCP client cannot find
odoo-osi: use the absolute path to.venv/bin/odoo-osiin your MCP config. - Search returns few results: run discovery and source indexing first. A fresh database has no indexed modules.
Local Credentials
There are two different GitHub credentials you may use:
- GitHub personal access token: used by Odoo OSI to call the GitHub API for indexing and fallback search.
- SSH key: used by git itself when you push or pull repositories over SSH.
GitHub API Token
Create a fine-grained personal access token in GitHub:
- Open GitHub.
- Go to Settings.
- Open Developer settings.
- Open Personal access tokens.
- Choose Fine-grained tokens.
- Generate a new token.
- Use the minimum access needed. For public OCA indexing, read-only public repository access is enough.
Put that token in your local .env file:
ODOO_OSI_GITHUB_TOKEN=YOUR_GITHUB_TOKEN
.env is ignored by git. If your MCP client uses a private mcp.json, that file is ignored too.
Do not put real tokens in mcp.json.example, docs, tests, or committed source.
GitHub docs:
Git SSH Key
For git push/pull access over SSH, keep your SSH key outside the repo, usually in ~/.ssh, and
add the public key to your Git hosting provider.
On macOS/Linux:
ssh-keygen -t ed25519 -C "your_email@example.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub
Copy the public key output and add it in GitHub under Settings > SSH and GPG keys > New SSH key. Never copy or commit the private key file.
GitHub docs:
API Endpoints
The health endpoint:
GET /health
Key working endpoints:
GET /repositories
GET /modules
POST /search
POST /search/code
POST /solutions/find
Roadmap
See ROADMAP.md.
Ingestion
See docs/ingestion.md for GitHub token setup and indexing commands.
MCP
See docs/mcp.md for the Odoo OSI MCP server commands and tools.
Project Status And Notices
- This project is unofficial; see NOTICE.md.
- Contributions are welcome; see CONTRIBUTING.md.
- Security reporting and credential guidance are in SECURITY.md.
- Privacy and hosted deployment notes are in PRIVACY.md.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。