StockPilot-MCP-Server
Provides inventory analysis, risk assessment, demand forecasting, and recommendation generation tools for retail inventory optimization via a FastMCP stdio server.
README
<p align="center"> <img src="Assets/Cover.png" alt="StockPilot AI Cover Banner" width="100%"> </p>
<h1 align="center">✈️ StockPilot AI</h1>
<h3 align="center"> Enterprise Multi-Agent Inventory Intelligence Platform </h3>
<p align="center"> AI-powered inventory optimization built with <b>Google Agent Development Kit (ADK)</b>, <b>Gemini 2.5 Flash</b>, <b>Model Context Protocol (MCP)</b>, <b>FastMCP</b>, <b>Python</b>, and <b>Streamlit</b>. </p>
<p align="center">
</p>
🚀 Overview
Modern retailers lose significant revenue due to stockouts, overstocking, inaccurate demand forecasting, and slow inventory decision-making. Traditional inventory management systems often rely on static rules and manual analysis, making it difficult to respond quickly to changing business conditions.
StockPilot AI is an Enterprise Multi-Agent Inventory Intelligence Platform that transforms raw inventory data into actionable business insights using a collaborative swarm of AI agents. Built with Google Agent Development Kit (ADK), Gemini 2.5 Flash, and the Model Context Protocol (MCP), the platform enables specialized AI agents to work together to analyze inventory, detect operational risks, forecast demand, optimize procurement decisions, and generate executive-ready business reports.
By combining modular AI orchestration with reusable business intelligence skills, StockPilot AI demonstrates how enterprise organizations can leverage collaborative AI systems to build scalable, explainable, and production-ready decision support applications.
📚 Table of Contents
- 🚀 Overview
- ✨ Key Features
- 🏗️ System Architecture
- 🤖 AI Agent Responsibilities
- 🔄 Multi-Agent Workflow
- 🛠️ Technology Stack
- 📈 Business Impact
- 🚀 Quick Start
- 📂 Repository Structure
- 🗺️ Future Roadmap
- 🤝 Contributing
- 📄 License
✨ Key Features
- 🤖 Multi-Agent Swarm Intelligence powered by Google ADK
- 🧠 Root Coordinator with Specialized AI Agents
- 🔌 Model Context Protocol (MCP) Integration
- 📊 AI-Powered Inventory Health Analysis
- 📈 Demand Forecasting & Sales Velocity Analysis
- ⚠️ Stockout & Overstock Risk Detection
- 💰 Working Capital Optimization
- 📦 Intelligent Procurement Recommendations
- 📄 Executive Business Report Generation
- 🔒 Enterprise-Grade Security & Input Validation
- 🎨 Modern Interactive Dashboard built with Streamlit
🌟 Project Highlights
✔ Enterprise Multi-Agent AI Architecture
✔ Built using Google Agent Development Kit (ADK)
✔ Powered by Gemini 2.5 Flash
✔ MCP-based Tool Communication
✔ FastMCP Integration
✔ Inventory Health Intelligence
✔ AI Procurement Recommendations
✔ Executive Business Reporting
✔ Interactive Streamlit Dashboard
✔ Modular & Scalable Design
🏗️ System Architecture
<p align="center"> <img src="Assets/Architecture.png" alt="StockPilot AI Architecture" width="100%"> </p>
StockPilot AI follows a modular, enterprise-grade multi-agent architecture where AI reasoning, business logic, and tool execution are cleanly separated. The platform leverages Google Agent Development Kit (ADK) to orchestrate specialized AI agents, while FastMCP exposes reusable business intelligence skills through the Model Context Protocol (MCP).
The Root Coordinator Agent delegates tasks to domain-specific AI agents responsible for inventory analysis, demand forecasting, inventory risk detection, procurement recommendation generation, and executive reporting. Each agent performs a specialized responsibility before collaboratively producing a unified business decision.
This modular architecture improves scalability, maintainability, explainability, and allows new AI capabilities to be integrated with minimal changes to the existing system.
🤖 AI Agent Responsibilities
| AI Agent | Primary Responsibility |
|---|---|
| 🧠 Root Coordinator | Orchestrates all AI agents and consolidates final responses |
| 📊 Data Analyzer | Profiles uploaded datasets and computes inventory statistics |
| 📈 Demand Trend Detector | Forecasts demand and analyzes sales velocity |
| ⚠️ Risk Detector | Identifies stockout risks, overstock, and inventory bottlenecks |
| 📦 Recommender | Generates AI-powered procurement recommendations |
| 📄 Report Writer | Produces executive-ready business summaries |
🔄 Multi-Agent Workflow
<p align="center"> <img src="Assets/Workflow.png" alt="StockPilot AI Workflow" width="100%"> </p>
The workflow begins with an uploaded inventory dataset. The Root Coordinator distributes analysis tasks across specialized AI agents, each calling reusable inventory intelligence skills through the Model Context Protocol (MCP). Once all analyses are complete, the Coordinator aggregates the results into an executive report containing inventory insights, demand forecasts, procurement recommendations, and business intelligence.
🛠️ Technology Stack
| Layer | Technology |
|---|---|
| AI Framework | Google Agent Development Kit (ADK) |
| Large Language Model | Gemini 2.5 Flash |
| Agent Communication | Model Context Protocol (MCP) |
| MCP Server | FastMCP |
| Backend | Python |
| Frontend | Streamlit |
| Data Processing | Pandas |
| Data Visualization | Plotly |
| Styling | Custom CSS |
| Environment | Python 3.13 |
📈 Business Impact
<p align="center"> <img src="Assets/business-impact.png" alt="Business Impact" width="100%"> </p>
StockPilot AI is designed to support data-driven inventory decision-making by combining AI reasoning with business intelligence. Rather than simply analyzing inventory records, the platform helps organizations identify operational risks, optimize procurement strategies, and improve inventory performance through collaborative AI agents.
Key Business Benefits
- 📉 Reduce inventory stockouts through proactive demand analysis
- 📦 Minimize excess inventory and carrying costs
- 💰 Improve working capital utilization
- 📈 Forecast future inventory demand using AI insights
- ⚠️ Detect inventory risks before they impact operations
- 🤖 Automate procurement recommendations
- 📊 Generate executive-ready business reports
- 🚀 Accelerate strategic inventory decision-making
🌟 Why StockPilot AI?
Unlike traditional inventory management systems that rely on static business rules, StockPilot AI combines multiple specialized AI agents that collaborate to solve complex inventory challenges.
Traditional Inventory Systems
- Manual inventory analysis
- Static business rules
- Limited forecasting capability
- Reactive decision-making
- Fragmented reporting
StockPilot AI
- Multi-Agent AI Collaboration
- Intelligent Demand Forecasting
- AI-Based Risk Detection
- Automated Procurement Recommendations
- Executive Business Intelligence
- Modular & Scalable Architecture
- Explainable AI Decision Support
✨ Enterprise Features
| Feature | Description |
|---|---|
| 🤖 Multi-Agent Swarm | Specialized AI agents collaborate to solve inventory problems |
| 📊 Inventory Intelligence | Analyze inventory health and operational performance |
| 📈 Demand Forecasting | Forecast demand trends and sales velocity |
| ⚠️ Risk Detection | Identify stockouts, overstock, and inventory bottlenecks |
| 💰 Working Capital Optimization | Improve capital allocation through AI recommendations |
| 📄 Executive Reporting | Generate executive-ready business summaries |
| 🔒 Secure Processing | Input validation, secure API key handling, and safe execution |
| 🚀 Modular Architecture | Easily extendable through MCP tools and reusable skills |
🚀 Quick Start
Follow the steps below to run StockPilot AI locally.
📦 Clone the Repository
git clone https://github.com/ankitachotaliya2310/StockPilot-AI.git
cd StockPilot-AI
📥 Install Dependencies
Install all required Python packages.
pip install -r requirements.txt
🔑 Configure Environment
Create a .env file using .env.example.
GEMINI_API_KEY=YOUR_GEMINI_API_KEY
GEMINI_MODEL=gemini-2.5-flash
✅ Verify Installation
Run the verification suite to validate MCP tools, AI agents, and reusable skills.
python -X utf8 verify_system.py
▶️ Launch StockPilot AI
Start the Streamlit application.
streamlit run app.py
Open your browser and navigate to:
http://localhost:8501
📂 Repository Structure
StockPilot-AI
│
├── Assets/
│ ├── Cover.png
│ ├── Logo.png
│ ├── Architecture.png
│ ├── Architecture Overview.png
│ ├── Workflow.png
│ └── business-impact.png
│
├── Datasets/
│ ├── sample_inventory.csv
│ ├── test_dataset_balanced.csv
│ ├── test_dataset_overstocks.csv
│ └── test_dataset_shortages.csv
│
├── doc/
│ └── architecture.md
│
├── agents.py
├── app.py
├── data_generator.py
├── mcp_server.py
├── skills.py
├── tools.py
├── style.css
├── verify_system.py
├── requirements.txt
├── walkthrough.md
├── README.md
├── LICENSE
└── .gitignore
🎥 Demo
📺 Demo Video: https://youtu.be/xFnFT3Dh_GI?si=VXuZpmO2-REyzuWL
💻 GitHub Repository: https://github.com/ankitachotaliya2310/StockPilot-AI
The application is designed to run locally using the setup instructions below. A complete demonstration of all features is available in the video above.
🗺️ Future Roadmap
StockPilot AI is designed as a scalable enterprise inventory intelligence platform. Future enhancements may include:
- 🌐 Multi-Warehouse Inventory Management
- 📡 Real-Time ERP & SAP Integration
- 🤖 AI Supplier Recommendation Engine
- 📈 Advanced Predictive Demand Forecasting
- 📦 Automated Purchase Order Generation
- 🔐 Role-Based User Authentication
- ☁️ Cloud-Native Deployment
- 📊 Real-Time Business Intelligence Dashboard
- 🔔 Smart Inventory Alerts & Notifications
- 🌍 Multi-Language Enterprise Support
🤝 Contributing
Contributions are welcome!
If you would like to improve StockPilot AI, feel free to:
- Fork the repository
- Create a feature branch
- Submit a Pull Request
- Report bugs or suggest improvements through GitHub Issues
🙏 Acknowledgements
This project was built using modern AI and data engineering technologies, including:
- Google Agent Development Kit (ADK)
- Gemini 2.5 Flash
- Model Context Protocol (MCP)
- FastMCP
- Streamlit
- Pandas
- Plotly
- Python
Special thanks to the Google × Kaggle AI Agents Capstone program for inspiring the development of this project.
📄 License
This project is licensed under the MIT License.
See the LICENSE file for details.
<div align="center">
⭐ If you found this project useful, please consider giving it a star on GitHub.
Built with ❤️ using Google Agent Development Kit (ADK), Gemini, and Streamlit
</div>
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。