Spaces:
Running
Running
File size: 14,461 Bytes
8f677b8 390d6bf 8f677b8 390d6bf 8f677b8 390d6bf 8f677b8 390d6bf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 |
---
title: "MCP Server Odoo - First AI-Native ERP Integration"
emoji: π€
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.33.0
app_file: app.py
pinned: false
license: mit
tags: ["mcp-server-track", "odoo", "ai", "crm", "sales"]
---
# π MCP Server Odoo: Where AI Meets Enterprise ERP
> **π MCP Hackathon Participation - Track: MCP Server**
> **Innovation**: First native MCP server for Odoo ERP enabling AI to directly interact with critical business data
## π― Hackathon Challenge Solved
**Problem**: Companies use Odoo ERP but AI has no direct access
**Innovative Solution**: An MCP server that transforms Odoo into a data source accessible to AI via Model Context Protocol
### π Why is this revolutionary?
- β¨ **First MCP server for Odoo** - Connects AI directly to ERP data
- π₯ **Integrated Gradio interface** - Live demo + MCP server in single deployment
- π **Production ready** - Native CRM/Sales tools + ML analysis via Modal
- π― **MCP Server Track** - Exposes 15+ Odoo tools via Model Context Protocol
## π€ MCP Innovation: AI Understands Your Business
```python
# Claude can now do this automatically:
"Analyze my leads this week and suggest priority actions"
"Create a Q4 sales report with ML predictions"
"Identify at-risk customers in my CRM pipeline"
```
**Before**: Manual data extraction β Analysis β Action
**After**: AI directly accesses Odoo and provides actionable insights
## π Hackathon Architecture
```
π― MCP Client (Claude/Cursor)
β Model Context Protocol
π Gradio Interface + MCP Server
β XML-RPC
πΌ Odoo ERP (CRM/Sales/Data)
β REST API
π Modal ML (Predictive Analytics)
```
## π§ Exposed MCP Features
### πͺ **Gradio Interface** - Interactive Demo
- **Live demo** on HuggingFace Spaces
- **Real-time testing** of MCP tools
- **User-friendly interface** for non-developers
### π€ **MCP Server** - 15 exposed tools
```python
# CRM MCP Tools
- get_crm_statistics() # Real-time pipeline stats
- analyze_leads_advanced() # AI lead analysis
- monitor_crm_performance() # KPI monitoring
- search_leads_by_criteria() # Smart search
# Sales MCP Tools
- get_sales_statistics() # Sales metrics
- analyze_quotations_advanced() # AI quote analysis
- send_quotation_email() # Personalized emails
- predict_sales_success() # ML predictions
```
### π **Modal ML** - Cloud Computing
- **Predictive analytics**: Automatic lead scoring
- **Customer clustering**: Smart segmentation
- **Sales forecasting**: Advanced ML models
## π Instant Demo
**HuggingFace Link**: [Live Interface](https://huggingface.co/spaces/aktraiser/mcp-server-odoo)
### Claude Desktop Configuration (1 minute)
```json
{
"mcpServers": {
"gradio-odoo": {
"command": "npx",
"args": [
"mcp-remote",
"https://aktraiser-mcp-server-odoo.hf.space/gradio_api/mcp/sse"
]
}
}
}
```
**Result**: Claude instantly accesses your Odoo data!
## ποΈ Hackathon Strengths
### β
**Technical Innovation**
- **MCP Server Track**: Complete protocol implementation
- **SSE Transport**: Real-time streaming for AI
- **Gradio MCP**: First functional MCP-Gradio wrapper
### β
**Business Impact**
- **Enterprise Ready**: Compatible with all Odoo (SaaS/On-premise)
- **Immediate ROI**: CRM/Sales analysis automation
- **Scalability**: Cloud-native architecture with Modal
### β
**Developer Experience**
- **1-click deployment**: HuggingFace Spaces ready
- **Complete documentation**: Step-by-step guides
- **Integrated tests**: Automatic validation
## π Project Architecture
```
MCP_server_Odoo/
βββ π€ app.py # Gradio Interface + MCP Server
βββ βοΈ config.py # Secure Odoo configuration
βββ π§ crm_gradio_tools.py # 8 CRM tools for MCP
βββ πΌ sales_gradio_tools.py # 7 Sales tools for MCP
βββ π modal_gradio_wrapper.py # Modal Cloud interface
βββ π§ modal_ml_analysis.py # Predictive ML analysis
βββ π requirements.txt # Optimized Python stack
βββ π README.md # Hackathon documentation
```
## π οΈ Express Installation (< 5 min)
### Option 1: HuggingFace Spaces (Recommended)
1. **Fork** the space: [aktraiser/mcp-server-odoo](https://huggingface.co/spaces/aktraiser/mcp-server-odoo)
2. **Configure** your Odoo credentials in the interface
3. **Copy** the SSE URL into Claude Desktop
### Option 2: Local
```bash
git clone https://github.com/[your-username]/MCP_server_Odoo
cd MCP_server_Odoo
pip install -r requirements.txt
python app.py
```
## π‘ Revolutionary Use Cases
### π― **For Sales Managers**
```
"Claude, analyze my Q1 opportunities and identify at-risk deals"
β AI accesses Odoo, analyzes 200+ deals, outputs actionable insights
```
### π― **For Executives**
```
"Predict our Q2 revenue based on current pipeline"
β AI combines Odoo data + Modal ML β Accurate forecasts
```
### π― **For Developers**
```python
# AI can now code directly with your Odoo data
leads = await mcp_call("search_leads_by_criteria", {"stage": "qualified"})
analysis = await mcp_call("analyze_leads_advanced", {"leads": leads})
```
## π Unique MCP Innovation
### What didn't exist before:
- β No MCP server for Odoo
- β AI disconnected from ERP data
- β Time-consuming manual analysis
### What our MCP server brings:
- β
**First integration** AI β Odoo native
- β
**15 business tools** ready to use
- β
**Live demo** functional on HuggingFace
- β
**Scalable architecture** with Modal ML
## πͺ Demo Scenarios
### Scenario 1: Smart CRM Analysis
```bash
curl -X POST "https://aktraiser-mcp-server-odoo.hf.space/gradio_api/mcp/sse" \
-d '{"method": "tools/call", "params": {"name": "get_crm_statistics"}}'
```
### Scenario 2: ML Sales Prediction
```python
# Via Claude Desktop + MCP
"Use Modal ML to predict which leads will convert this week"
β AI orchestrates Odoo + Modal automatically
```
## π Why Vote for Us?
### Innovation Impact
- **π₯ First** Odoo MCP server in the world
- **π₯ First** functional Gradio-MCP wrapper
- **π₯ 1-click deployment** on HuggingFace Spaces
### Business Impact
- **π° Immediate ROI**: Business analysis automation
- **β‘ 10x productivity**: AI directly accesses ERP data
- **π― Target market**: 7M+ Odoo users worldwide
### Technical Impact
- **π 15 MCP tools** exposed and documented
- **π Cloud-native** with Modal integration
- **π Production-ready** with enterprise security
## π§ Technical Configuration
### Environment Variables
```bash
# Odoo Configuration (required)
ODOO_URL="https://your-instance.odoo.com"
ODOO_DB="your-database"
ODOO_USERNAME="your-email"
ODOO_PASSWORD="your-password"
# Modal Configuration (optional for ML)
MODAL_TOKEN="your-modal-token"
# MCP Configuration (auto)
GRADIO_MCP_SERVER="True" # Activates MCP server
```
### Detailed MCP Architecture
```python
# Server exposes these MCP capabilities:
{
"capabilities": {
"tools": {
"listChanged": true
},
"resources": {
"subscribe": true
},
"prompts": {
"listChanged": true
}
}
}
```
## π Post-Hackathon Roadmap
### V2.0 - Expansion
- [ ] Multi-instance Odoo support
- [ ] Marketing/Inventory MCP tools
- [ ] Integrated BI dashboard
### V3.0 - Enterprise
- [ ] SSO/OAuth integration
- [ ] API rate limiting
- [ ] Advanced monitoring
### V4.0 - Ecosystem
- [ ] Odoo MCP tools marketplace
- [ ] Third-party integrations (Salesforce, HubSpot)
- [ ] Autonomous AI agents
## π Support & Contribution
- **Live Demo**: [HuggingFace Space](https://huggingface.co/spaces/aktraiser/mcp-server-odoo)
- **Documentation**: Integrated step-by-step guides
- **Issues**: GitHub community support
- **Contributions**: PRs welcome!
---
**π― MCP Hackathon 2025 - Track: MCP Server**
*Transforming Enterprise ERP with AI-Native Model Context Protocol*
**Made with β€οΈ for the MCP community**
# π
Hackathon Timeline
Here are the key dates for the Gradio Agents & MCP Hackathon:
* **May 20 β 26, 2025**: Pre-Hackathon announcements period
* **June 2 β 10, 2025**: Official hackathon window (sign-ups remain open)
* **June 3, 2025 β 9 AM PST / 4 PM UTC**: Live kickoff YouTube event
* **June 4 β 5, 2025**: Gradio Office Hours with MCP Support, MistralAI, LlamaIndex, Custom Components team, and Sambanova
* **June 10, 2025 β 11:59 PM UTC**: Final submission deadline
* **June 11 β 16, 2025**: Judging period
* **June 17, 2025**: Winners announced
# π₯ Key Players
## Sponsors
* **Modal Labs**: $250 GPU/CPU credits to every participant ([modal.com](https://modal.com))
* **Hugging Face**: $25 API credits to every participant ([huggingface.co](https://huggingface.co))
* **Nebius**: $25 API credits to first 3,300 participants ([nebius.com](https://nebius.com))
* **Anthropic**: $25 API credits to first 1,000 participants ([anthropic.com](https://www.anthropic.com))
* **OpenAI**: $25 API credits to first 1,000 participants ([openai.com](https://openai.com))
* **Hyperbolic Labs**: $15 API credits to first 1,000 participants ([hyperbolic.xyz](https://hyperbolic.xyz))
* **MistralAI**: $25 API credits to first 500 participants ([mistral.ai](https://mistral.ai))
* **Sambanova.AI**: $25 API credits to first 250 participants ([sambanova.ai](https://sambanova.ai)) ([huggingface.co](https://huggingface.co/Agents-MCP-Hackathon))
## Panel of Judges
Judging will be conducted by representatives from sponsor partners and the Hugging Face community team, including Modal Labs, MistralAI, LlamaIndex, Sambanova.AI, and Hugging Face. To be properly judged, ensure the project is in the [proper space](https://huggingface.co/Agents-MCP-Hackathon) on hugging face, not just in a personal space. Click join organization, then click new to create a space that will be judged.
## Office Hours Hosts
* **Abubakar Abid** (MCP Support) β [@abidlabs](https://huggingface.co/abidlabs)
* **MistralAI Office Hours** β [Watch on YouTube](https://www.youtube.com/watch?v=TkyeUckXc-0)
* **LlamaIndex Office Hours** β [Watch on YouTube](https://www.youtube.com/watch?v=Ac1sh8MTQ2w)
* **Custom Components Office Hours** β [Watch on YouTube](https://www.youtube.com/watch?v=DHskahJ2e-c)
* **Sambanova Office Hours** β [Watch on YouTube](https://www.youtube.com/watch?v=h82Z7qcjgnU)
## Primary Organizers
* **Yuvraj Sharma (Yuvi)** (@yvrjsharma) β Machine Learning Engineer & Developer Advocate, Gradio Team at Hugging Face
* **Abubakar Abid** (@abidlabs) β Developer Advocate & MCP Support Lead at Hugging Face
* **Gradio Team at Hugging Face** β Core organizing team providing platform infrastructure, logistics, and community coordination
# π Resources
* **Hackathon Org & Registration**: [Agents-MCP-Hackathon](https://huggingface.co/Agents-MCP-Hackathon)
* **Discord**: [discord.gg/agents-mcp-hackathon](https://discord.gg/agents-mcp-hackathon)
* **Slides from Kickoff**: [PDF](https://huggingface.co/spaces/Agents-MCP-Hackathon/README/blob/main/Gradio%20x%20Agents%20x%20MCP%20Hackathon.pdf)
* **Code of Conduct**: [Contributor Covenant](https://huggingface.co/code-of-conduct)
* **Submission Guidelines**: See "Submission Guidelines" on the hackathon page
* **MCP Guide**: [How to Build an MCP Server](https://huggingface.co/blog/gradio-mcp)
* **Gradio Docs**: [https://www.gradio.app/docs](https://www.gradio.app/docs)
* **LlamaIndex Docs**: [https://llamaindex.ai/docs](https://llamaindex.ai/docs)
* **Mistral Model Hub**: [https://huggingface.co/mistral-ai/mistral-small](https://huggingface.co/mistral-ai/mistral-small)
## π Free Credits!
**Modal Labs Compute Credits** ($250 per participant)
Monitor your GPU/CPU credit usage by logging into your Modal account and navigating to **Dashboard β Billing**:
[https://modal.com/dashboard](https://modal.com/dashboard)
**Hugging Face API Credits** ($25 per participant)
View your remaining credits and invoices on the Hugging Face billing dashboard:
[https://huggingface.co/settings/billing](https://huggingface.co/settings/billing)
**Nebius AI Cloud Credits** ($25 to first 3,300 participants)
Check your Nebius "Grants and promocodes" balance and detailed billing reports at:
[https://nebius.com/services/billing](https://nebius.com/services/billing)
**Anthropic Claude API Credits** ($25 to first 1,000 participants)
Track your Claude usage and remaining credits in the Anthropic Console under **Settings β Billing**:
[https://console.anthropic.com/settings/billing](https://console.anthropic.com/settings/billing)
**OpenAI API Credits** ($25 to first 1,000 participants)
Monitor your API calls, token usage, and spend on the OpenAI Usage dashboard:
[https://platform.openai.com/account/usage](https://platform.openai.com/account/usage)
**Hyperbolic Labs API Credits** ($15 to first 1,000 participants)
After logging in at the Hyperbolic AI Dashboard, go to **Settings β Billing** to view your credit balance and transaction history:
[https://app.hyperbolic.xyz](https://app.hyperbolic.xyz)
**Mistral AI API Credits** ($25 to first 500 participants)
Sign in at the Mistral Console and navigate to **Workspace β Billing** to activate and monitor your credits:
[https://console.mistral.ai](https://console.mistral.ai)
**SambaNova AI Cloud Credits** ($25 to first 250 participants)
Log in to SambaNova Cloud and check your **Billing & Usage** in the plans section:
[https://cloud.sambanova.ai/plans/billing](https://cloud.sambanova.ai/plans/billing)
# π€ About the Author
**Graham Paasch** is an AI realist passionate about the coming AI revolution.
* LinkedIn: [https://www.linkedin.com/in/grahampaasch/](https://www.linkedin.com/in/grahampaasch/)
* YouTube: [https://www.youtube.com/channel/UCg3oUjrSYcqsL9rGk1g\_lPQ](https://www.youtube.com/channel/UCg3oUjrSYcqsL9rGk1g_lPQ)
Graham is currently looking for work. Inspired by Leopold Aschenbrenner's "AI Situational Awareness" ([https://situational-awareness.ai/](https://situational-awareness.ai/)), he believes AI will become a multi-trillion-dollar industry over the next decadeβwhat we're seeing now is the equivalent of ARPANET in the early days of the internet. He's committed to aligning his work with this vision to stay at the forefront of the AI revolution. |