Odoo AI Telegram MCP
Exposes 104 Odoo tools across CRM, Sales, Inventory, Accounting, and Helpdesk, enabling natural-language control of an Odoo instance via a Telegram assistant with user-level authentication and multi-step orchestration.
README
Odoo AI Telegram Assistant
Drive a full Odoo instance from Telegram, in plain language. Backed by a custom MCP server exposing 104 Odoo tools across CRM, Sales, Inventory, Accounting and Helpdesk.
I built this because the Odoo web client is a lot of clicking for operations that are conceptually one sentence. Creating a lead, converting it, quoting it, confirming, delivering and invoicing is six screens and a dozen clicks. It should be one message.
> Create a lead for Northwind Traders, convert it to an opportunity,
quote 10 units of Product A, confirm it and invoice it.
The orchestrator resolves that into a tool sequence, runs it, and reports back with the record IDs:
crm_create_lead → crm_convert_to_opportunity → crm_create_sale_order
→ sale_confirm_order → stock_validate_delivery → account_create_invoice
If the result is tabular, it renders a styled PNG or PDF instead of dumping text into the chat.
How it works
Telegram
│
├─ bot.py transport, commands, media
│
├─ ai_processor.py planning and multi-step execution
│ ├─ openrouter.py provider abstraction
│ └─ mcp_client.py tool discovery and invocation
│ │
│ ▼
│ odoo_crm_mcp.py ── XML-RPC ──▶ Odoo
│ (104 MCP tools)
│
└─ brand_renderer.py / pdf_generator.py PNG and PDF output
The MCP server is the part worth looking at. Rather than giving the model one generic "call Odoo" function and hoping it constructs valid domains, every operation is a typed tool with its own schema. crm_create_lead knows what a lead needs. account_invoice_reconcile knows what reconciliation requires. The model selects tools and fills arguments; it never writes raw ORM calls.
| Area | Coverage |
|---|---|
| CRM | Leads, opportunities, stages, activities, chatter, won/lost, lead→SO conversion |
| Sales | Quotations, order confirmation, order lines, pricing |
| Inventory | Deliveries, validation, stock moves |
| Accounting | Invoices, credit notes, payment terms, reconciliation, payment registration |
| Helpdesk | Tickets and ticket workflow |
Authentication
Users log in with their own Odoo credentials, and every tool call executes as that user. Odoo's access rights and record rules apply unchanged, so the bot cannot do anything the user could not do in the web client.
That matters more than it sounds. It means permissions never get reimplemented in the bot, and a compromised session is bounded by one user's access rather than the whole database.
Privileged operations route through a separate admin bot with an approval step, so destructive actions need a human to sign off instead of being one sentence away in normal chat.
LLM providers
| Provider | Notes |
|---|---|
| OpenRouter, Groq, Gemini, Anthropic | Hosted. Reliable tool calling. |
| Ollama | Fully local. No data leaves the network. |
Switching is one environment variable — the tool-calling layer is provider-agnostic.
The Ollama path exists because ERP data is usually the last thing a business wants leaving its network. It works, but tool-calling reliability on small local models is noticeably worse than on hosted ones. Expect more retries and occasional malformed arguments. Use a hosted provider unless you have a reason not to.
Setup
git clone https://github.com/prashantk8ursrvc-ux/odoo-ai-telegram-mcp.git
cd odoo-ai-telegram-mcp
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env # fill in your values
python bot.py
Python 3.10+, and an Odoo instance reachable over XML-RPC.
Configuration
Everything is environment variables — see .env.example.
| Variable | Purpose |
|---|---|
BOT_TOKEN, ADMIN_BOT_TOKEN |
The two Telegram bots |
LLM_PROVIDER + provider key |
Model backend |
ODOO_URL, ODOO_DB, ODOO_VERSION |
Target instance |
BRAND_* |
Report branding (optional) |
Report output is branded through brand_config.py. Company name, colours, typography and the signature block all read from environment variables with neutral defaults, so rebranding needs no code changes.
Known limitations
- Credentials are stored in a local JSON file. Fine for a personal deployment, not fine for anything else. Encrypt them at rest before putting this in front of real users.
- No test suite. Built iteratively against a live Odoo instance.
- 104 tools is enough that some models pick wrong on ambiguous prompts. Narrowing the exposed set per user role would help.
- Only tested against Odoo 18.
Status
Personal project, published as a reference for building MCP integrations against an ERP. No warranty — read the code before deploying it anywhere that matters.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。