Provides geocoding and routing capabilities using Google Maps API for address-to-GPS conversion and vehicle-specific routing with live traffic data, toll information, and fuel estimates.
Stores and manages delivery orders, driver information, and assignment data with multi-tenant isolation using Neon serverless PostgreSQL database.
title: FleetMind MCP Server emoji: π colorFrom: blue colorTo: purple sdk: docker app_file: app.py pinned: true short_description: AI delivery dispatch MCP server with 29 management tools tags:
mcp
building-mcp-track-enterprise
model-context-protocol
delivery-management
postgresql
fastmcp
gradio
enterprise
logistics
gemini
google-maps
ai-routing
π FleetMind MCP Server
AI-Powered Delivery Dispatch for the Modern Enterprise
The Problem: Delivery dispatch is complexβcoordinating drivers, optimizing routes, handling weather delays, and meeting SLAs requires constant human oversight.
The Solution: FleetMind exposes 29 AI-accessible tools that let Claude (or any MCP client) manage your entire delivery operation through natural conversation.
The Impact: Dispatch managers can now say "Assign this urgent fragile delivery to the best available driver considering weather and traffic" and watch AI handle the complexity.
πΊ See It In Action
Watch Gemini 2.0 Flash AI analyze weather, traffic, and driver capabilities to make intelligent assignment decisions with full reasoning transparency.
β‘ Quick Start (2 Minutes)
Step 1: Get Your API Key
π Generate API Key (copy immediatelyβshown once!)
Step 2: Configure Claude Desktop
Add to your claude_desktop_config.json:
Step 3: Start Dispatching!
π Why FleetMind?
Feature | What It Does | Why It Matters |
π€ Gemini 2.0 Flash AI | Analyzes 10+ parameters for intelligent driver assignment | Better decisions than rule-based systems |
π¦οΈ Weather-Aware Routing | OpenWeatherMap integration for safety-first planning | Reduces weather-related delivery failures |
π Multi-Tenant Auth | Complete data isolation via deterministic user_id | Enterprise-ready security out of the box |
π SLA Tracking | Automatic on-time/late/very-late classification | Built-in performance analytics |
π¦ Real-Time Traffic | Google Routes API with live traffic data | Accurate ETAs, not guesstimates |
ποΈ Vehicle Optimization | Motorcycle, bicycle, car, van, truck routing | Right routes for each vehicle type |
π οΈ The 29 Tools
Tool | Description |
| Convert address β GPS coordinates |
| Vehicle-specific routing with traffic, tolls, fuel estimates |
| AI-powered routing with weather + traffic analysis |
Tool | Description |
| Create delivery with mandatory deadline & SLA tracking |
| Count by status/priority with breakdowns |
| Paginated list with filters |
| Full order info including timing data |
| Find by customer name/email/phone/ID |
| Active deliveries shortcut |
| Modify order with cascading updates |
| Safe deletion with assignment checks |
Tool | Description |
| Onboard with vehicle type, skills, capacity |
| Count by status/vehicle with breakdowns |
| Paginated list with filters |
| Full info with reverse-geocoded location |
| Find by name/plate/phone/ID |
| Ready-for-dispatch shortcut |
| Modify with location auto-timestamp |
| Safe deletion with assignment checks |
Tool | Description |
| Manual driver selection |
| Nearest driver + capacity/skill validation |
| π€ Gemini 2.0 Flash AI with full reasoning |
| Query by assignment/order/driver ID |
| Status transitions with cascading |
| Revert to pending safely |
| Mark done + auto-update driver location |
| Track failure with GPS + structured reason |
Tool | Description |
| Mass delete with status filter & safety checks |
| Mass delete with assignment safety blocks |
ποΈ Architecture
π Authentication & Security
FleetMind uses a 3-layer authentication system for enterprise-grade security:
Layer | Component | Function |
1 | Proxy | Captures API key from URL, links sessions |
2 | Middleware | Validates every tool call, injects user context |
3 | Database | All queries filter by |
Security Features:
β SHA-256 hashed key storage (never plaintext)
β One-time key display (can't retrieve later)
β Deterministic user_id from email (key rotation preserves data)
β Production safeguards (SKIP_AUTH blocked when ENV=production)
π Deployment
Production (HuggingFace Space)
Already deployed at: https://mcp-1st-birthday-fleetmind-dispatch-ai.hf.space
Local Development
π Technical Specifications
Metric | Value |
Tools | 29 |
Resources | 2 (orders://all, drivers://all) |
Database | PostgreSQL (Neon serverless) |
AI Model | Gemini 2.0 Flash (gemini-2.0-flash-exp) |
Transport | SSE (Server-Sent Events) |
Framework | FastMCP 2.13.0 |
Language | Python 3.10+ |
π Links
Resource | URL |
Live Demo | |
MCP Endpoint | |
Generate API Key | https://mcp-1st-birthday-fleetmind-dispatch-ai.hf.space/generate-key |
HuggingFace Space | https://huggingface.co/spaces/MCP-1st-Birthday/fleetmind-dispatch-ai |
π₯ Team
FleetMind Development Team
MCP 1st Birthday Hackathon - Track 1: Building MCP Servers (Enterprise Category)
π License
MIT License - see LICENSE for details.
Built with β€οΈ using