Skip to main content
Glama
ankitachotaliya2310

StockPilot-MCP-Server

Python

Google ADK

Gemini

MCP

FastMCP

Streamlit

License


πŸš€ 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.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.


⭐ 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

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

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

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