StockPilot-MCP-Server

StockPilot-MCP-Server

Provides inventory analysis, risk assessment, demand forecasting, and recommendation generation tools for retail inventory optimization via a FastMCP stdio server.

Category
Visit 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">

Python

Google ADK

Gemini

MCP

FastMCP

Streamlit

License

</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>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured