AI Chatbot with MCP Tools
MCP Tool Configuration and Advanced Prompts
This module integrates an intelligent chatbot into Odoo, allowing users to interact with language models such as OpenAI (GPT), Gemini (Google) and Claude (Anthropic), with extended support for custom tools based on the Model Context Protocol (MCP). Additionally, the chatbot maintains per-user conversation memory and responds in each user's predefined language.
Extra: It also supports processing attachments in PDF, CSV, XLSX, JSON and TXT formats.


MCP Integration
Run external tools and extend chatbot capabilities in real time using the Model Context Protocol.

File Processing
Supports attachments in PDF, CSV, XLSX, JSON, and TXT. Analyze and answer about documents directly in chat.

Security and Control
Access restricted by groups, permission configuration, and usage control to protect your information.

Multi-Model AI Support
Compatible with OpenAI (GPT), Gemini (Google), Claude (Anthropic), and easy integration of new models or providers.

Memory and Multilanguage
Remembers each user's context and responds in their preferred language for a personalized experience.

Friendly UI & Responsive Design
Enjoy an intuitive and modern interface, fully responsive and optimized for mobile devices.
Prerequisites
- Node.js installed in the environment
- Install the following external libraries:
mcp-use==1.3.7
fastembed==0.7.1
langchain_google_genai==2.1.8
langchain_anthropic==0.3.16
langchain_openai==0.3.28
Installation
Run:
pip install mcp-use==1.3.7 fastembed==0.7.1 langchain_google_genai==2.1.8 langchain_anthropic==0.3.16 langchain_openai==0.3.28
Also make sure node
is available to run MCP clients. See Node Download
Configuration
- In Settings > Users, enable the
AI Chat
group to allow access. - Group members will see the AI CHAT button at the top-right of the main view.
- Administrators will be able to configure:
- The language model to use (OpenAI, Gemini or Claude)
- The provider API key
- Prompt templates and instructions
- Available tools via MCP


Using the Chatbot
Once enabled, users with access will see the AI CHAT button at the top. Clicking it opens a conversational interface with the preconfigured settings.
Enable the Streaming option for a better real-time response experience.


MCP Tool Support
This integration uses the Model Context Protocol (MCP) to run external tools. This extends the chatbotâs capabilities with real-time data and actions.
Useful references:
- Official MCP Website
- MCP Server Directory
- MCP Servers GitHub

Additional Notes
This module is designed to be easily extensible. You can add new tools, AI models, or prompt templates and dynamic configuration.
Note: Tested only with mcp-use
version 1.3.7
.
To get better results modify the prompt using ##Rules o extra ##Context
**Important: When using task that required tools no-streaming mode get better result. Use streaming for regular tasks
Please log in to comment on this module