SmartCommute
Uses the OpenStreetMap Nominatim API to geocode natural-language origins and destinations into latitude/longitude coordinates for live commute routing.
Click on "Deploy 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., "@SmartCommuteI need to get from IIT Kanpur to Z Square Mall in 35 minutes. What's fastest and cheapest?"
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.
🚖 SmartCommute: Live Multimodal Travel & Fare Optimizer (Alexa+ MCP Server)
SmartCommute is a real-time Model Context Protocol (MCP) Server and interactive Alexa+ Smart Display Simulator built for the Build, Ship, Shape: Amazon Developer Hackathon (Alexa+ Track).
🎥 Video Demo
🔗 Watch the Full Demo Video Here: [PASTE YOUR YOUTUBE OR LOOM VIDEO LINK HERE]
Related MCP server: Beckn Mobility MCP Server
💡 The Problem
Every day, commuters waste time switching between 3 to 4 separate apps—Google Maps for traffic, Uber/Ola for cab fares, Rapido for bike taxis, and Metro apps for train timings—just to answer one simple question:
"How do I reach my destination before my deadline without overspending?"
🚀 The Solution
With SmartCommute, a user asks a single natural-language question to Alexa+ or any MCP-enabled AI agent:
"Alexa, I need to reach Z Square Mall from IIT Kanpur in 35 minutes. What is my fastest and cheapest option?"
The AI agent invokes the find_best_commute tool on our live HTTP MCP server, which executes a 4-stage pipeline in real time:
Live GPS Geocoding: Converts any real-world origin and destination into exact latitude/longitude coordinates via the OpenStreetMap Nominatim API.
Real Road Routing: Fetches the actual road network distance (in km) and live driving duration via the OSRM (Open Source Routing Machine) API.
Multimodal Fare & Time Engine: Computes travel times and dynamic INR (
₹) fares across four Indian transit modes:🛵 Bike Taxi (Rapido): Cuts through urban traffic congestion directly.
🚇 Metro Rail: High-speed transit corridor calculation with station walk buffer.
🚕 AC Cab (Uber / Ola): Full road distance with city traffic multiplier.
🚌 City AC Bus: Economical public transit factoring in scheduled stop delays.
Deadline Filtering & Voice Synthesis: Filters out transit modes that will make the user late, returning both a structured JSON payload for visual cards and a conversational voice response for Alexa+.
🏛️ System Architecture
Component | Technology Used | Role in Architecture |
MCP Client | VS Code Copilot / Alexa+ Simulator | Sends JSON-RPC 2.0 |
MCP Server ( | Python | Multi-threaded Streamable HTTP server listening on |
Geocoding Layer | OpenStreetMap Nominatim API | Resolves natural-language place names into live |
Routing Engine | Project OSRM Driving API | Computes real-world road distance (km) and base driving time (minutes). |
Multimodal UI ( | HTML5 / JS + Web Speech API | Renders visual route comparison cards and speaks the Alexa+ response aloud. |
Protocol Flow:
Client Request $\rightarrow$
POST http://localhost:8000/mcp(method: "tools/call",name: "find_best_commute")MCP Server $\rightarrow$ Queries
nominatim.openstreetmap.org&router.project-osrm.orgDecision Engine $\rightarrow$ Evaluates
Bike Taxi,Metro Rail,AC Cab, andCity AC Busagainstmax_time_minutesStrict MCP Response $\rightarrow$ Returns JSON-RPC 2.0
result.contentback to the AI Agent & Smart Display UI
📂 Repository Structure
server.py— Multi-threaded, zero-dependency Python MCP Server implementing MCP Spec2025-11-25+(initialize,tools/list,tools/call).index.html— Interactive Alexa+ Smart Display web simulator with live voice synthesis (window.speechSynthesis).mcp.json— Configuration file for connecting the HTTP MCP server directly to VS Code Copilot / MCP clients.requirements.txt— Environment documentation (runs natively on Python 3.8+ standard library with zero external C++ build dependencies).LICENSE— MIT Open Source License.
⚙️ How to Run Locally (Quick Start)
Step 1: Clone the Repository & Start the MCP Server
No pip install is required! server.py uses Python's standard library for instant cross-platform execution:
git clone [https://github.com/AnantM2007/alexa-smart-commute-mcp.git](https://github.com/AnantM2007/alexa-smart-commute-mcp.git)
cd alexa-smart-commute-mcp
python server.pyThe server will start at: http://localhost:8000/mcp
Step 2: Test with an AI Agent (VS Code MCP Client)
Move mcp.json into a .vscode/mcp.json folder in your workspace and ask Copilot Chat in Agent Mode:
"Using my MCP server, tell me the cheapest mode of transport from IIT Kanpur to Z Square Mall Kanpur."
Step 3: Launch the Alexa+ Smart Display Simulator
Open index.html in any modern browser, enter any two real-world locations and your deadline in minutes, and click Ask Alexa+.
This server cannot be deployed
Maintenance
Related MCP Connectors
Get date-specific quotes and book private UK airport and cruise-port transfers through your AI assistant. Compare vehicle options, validate flights, retrieve bookings, amend details and cancel with customer confirmation. No registration required to start, subject to service limits; optional API-key and OAuth access for registered integrations. Transfer fares are payable separately and cancellation conditions apply. Live demo and connection instructions: https://ai.airport-pickups-london.com/ Technical documentation: https://mcp.airport-pickups-london.com/docs
Grounded, multilingual travel data + a cited travel concierge. 12+ languages, deep India coverage.
Mobility, geocoding and nearby urban services for AI agents.
Search places, compare ride-hailing options, and plan trotro minibus journeys.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables cab booking and management through natural conversation, allowing users to book rides, cancel bookings, and view driver details. Works with Google Maps MCP to provide comprehensive travel planning with automatic route optimization and cab arrangements between destinations.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to search for cabs, view prices, and book rides through the open Beckn Protocol by connecting to Beckn-compliant mobility providers like Namma Yatri and ONDC.-
- AlicenseNot gradedqualityDmaintenanceEnables multi-modal travel planning for India, aggregating flights, trains, buses, cabs, and personal vehicles across 117 cities with multi-leg routing and weighted scoring.2 npmApache 2.0
- AlicenseAqualityBmaintenanceEnables AI assistants to access real-time and scheduled public transit data, including routes, stops, departures, and service alerts, across multiple US metropolitan areas.5MIT