A fully autonomous CLI agent that coordinates group food orders using the Vercel AI SDK and the official Swiggy Food MCP Server.
Instead of manually asking everyone what they want, checking their dietary restrictions, calculating the budget, and painstakingly adding items to the cart, this agent does it all for you. You just provide a CSV of what your team wants, and the AI handles the rest!
- Smart Preference Parsing: Reads your team's food cravings, spice tolerances, and dietary restrictions.
- Intelligent Budgeting: Automatically splits large teams into smaller sub-groups so you never hit max cart limits.
- AI Cart Building: Uses Claude 3.5 Sonnet to search for open restaurants, pick the perfect dishes for everyone, and apply the best COD coupons.
- Interactive CLI: Reviews the AI's plan with you in the terminal before placing the actual order via Swiggy.
-
Install the dependencies:
npm install
-
Configure your environment: Create a
.envfile in the root directory and add your Anthropic API key along with the MCP configuration:ANTHROPIC_API_KEY=your-api-key-here SWIGGY_MCP_COMMAND=npx SWIGGY_MCP_ARGS=-y @swiggy/mcp-server
-
Set up the preferences: Edit the
preferences.csvfile with your team's names, dietary needs, and cravings.
Start the interactive CLI:
npm start