StockPilot-MCP-Server
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., "@StockPilot-MCP-Serveranalyze inventory and generate restock recommendations"
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.
π 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
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
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
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.
Related MCP server: KPI-Lens
π¦ 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.pyOpen 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.
β 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ankitachotaliya2310/StockPilot-AI'
If you have feedback or need assistance with the MCP directory API, please join our Discord server