Connects to an Odoo ERP instance to provide comprehensive inventory analysis, including stock level monitoring, demand forecasting, ABC/XYZ classification, and inventory turnover and aging reports.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Inventory Analysis MCP ServerWhich items are currently low on stock and need reordering?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Inventory Analysis MCP Server
An MCP (Model Context Protocol) server that connects to Odoo ERP to provide comprehensive inventory analysis, forecasting, and reporting capabilities.
Features
1. Stock Levels & Reorder Points
Current stock levels with status classification (out of stock, critical, low, normal, overstock)
Reorder alerts based on stock levels and reorder rules
Days of stock calculations
Stock summary statistics
2. Demand Forecasting
Multiple forecasting methods:
Moving Average
Exponential Smoothing
Linear Regression
Holt-Winters (for seasonal data)
Auto-selection (best method based on data)
Trend detection (increasing, decreasing, stable)
Seasonality detection
Confidence intervals for predictions
Accuracy metrics (MAE, RMSE, MAPE)
3. ABC/XYZ Analysis
ABC Classification (by annual consumption value):
A: High value items (~20% of items, ~80% of value)
B: Medium value items (~30% of items, ~15% of value)
C: Low value items (~50% of items, ~5% of value)
XYZ Classification (by demand variability):
X: Stable demand (CV < 0.5)
Y: Variable demand (0.5 <= CV < 1.0)
Z: Highly unpredictable demand (CV >= 1.0)
Combined matrix with management recommendations
4. Turnover & Aging Reports
Turnover Analysis:
Turnover ratio calculation
Days of inventory
Classification: fast-moving, normal, slow-moving, dead stock
Aging Analysis:
Inventory age buckets (0-30, 31-60, 61-90, 91-180, 181-365, >365 days)
Obsolescence risk assessment
Slow-moving and high-risk item identification
Installation
Prerequisites
Python 3.10 or higher
Access to an Odoo instance (v14+)
Setup
Clone or download this repository
Install dependencies:
cd inventory_mcp_server pip install -e .Or using requirements.txt:
pip install -r requirements.txtConfigure Odoo connection:
cp .env.example .env # Edit .env with your Odoo credentials
Configuration
Environment Variables
Variable | Description | Default |
| Odoo server URL |
|
| Database name |
|
| Username/email |
|
| API key for authentication | (required) |
Claude Desktop Configuration
Add to your claude_desktop_config.json:
Or using uv:
Available Tools
Stock Level Tools
Tool | Description |
| Get current stock levels with status classification |
| Get products needing reorder |
| Get summary statistics |
Forecasting Tools
Tool | Description |
| Generate demand forecasts |
| Get forecast summary statistics |
ABC/XYZ Tools
Tool | Description |
| Perform ABC/XYZ classification |
| Get classification summary |
Turnover & Aging Tools
Tool | Description |
| Analyze inventory turnover |
| Analyze inventory aging |
| Get turnover summary |
| Get aging summary |
| Get slow-moving/dead stock |
| Get high obsolescence risk items |
Usage Examples
Get Stock Alerts
Forecast Demand
ABC/XYZ Analysis
Identify Problem Stock
Odoo Requirements
The server requires the following Odoo modules:
stock(Inventory)product(Products)
Optional for full functionality:
purchase(for reorder rules)sale(for sales history)
Required Odoo User Permissions
Read access to:
product.productproduct.categorystock.quantstock.movestock.locationstock.warehouse.orderpoint
Development
Running Tests
Code Formatting
Type Checking
License
MIT License