Swiggy Skill
Order food, groceries, and book restaurants in India via Swiggy's MCP servers.
Installation
The skill includes a swiggy CLI binary. After installing the skill:
CODEBLOCK0
This creates a global swiggy command. Verify with: INLINECODE2
When to Use
- - Food delivery: "Order biryani", "What's open late?", "Team lunch for 8"
- Groceries (Instamart): "Get eggs and milk", "Weekly groceries", "Recipe ingredients"
- Restaurant bookings (Dineout): "Book dinner Saturday 8pm", "Italian in Koramangala"
Available Commands
Food Delivery
CODEBLOCK1
Instamart (Groceries)
CODEBLOCK2
Dineout (Restaurant Bookings)
CODEBLOCK3
CRITICAL: Safety Rules
⚠️ NEVER Auto-Order
ALWAYS get explicit confirmation before placing orders.
- 1. Show cart preview first:
- All items with quantities and prices
- Total amount
- Delivery address
- Estimated delivery time (food/groceries)
- 2. Ask for confirmation:
CODEBLOCK4
- 3. Only after user says YES:
- Run the order command with
--confirm flag
- Log to INLINECODE4
COD Warning
Swiggy MCP currently supports
Cash on Delivery only. Orders
cannot be cancelled once placed. Always double-check before confirming.
Address Handling
- - User may say "home", "office", etc. - map to actual addresses from USER.md or ask
- Always confirm delivery location in preview
- For Dineout, location is used for search only (not delivery)
Workflow Examples
Food Order Flow
CODEBLOCK5
Grocery Shopping Flow
CODEBLOCK6
Restaurant Booking Flow
CODEBLOCK7
Error Handling
- - No results: Suggest broader search or different location
- Out of stock: Show alternatives
- No slots available: Suggest different times/dates
- Authentication required: User needs to authenticate via OAuth (handled by MCP)
Tips
- - For team orders: build cart iteratively, ask for preferences
- For budget shopping: filter results by price, show running total
- For recipe-to-cart: search each ingredient, add progressively
- For late night: mention delivery time in search criteria
Order Logging
After successful order, append to memory/swiggy-orders.json:
CODEBLOCK8
Authentication
Swiggy MCP uses OAuth. First use will trigger auth flow. The swiggy CLI handles this via mcporter.
Dependencies
- - Requires
mcporter skill (uses it under the hood) - Node.js runtime for the CLI wrapper
Known Limitations
- - COD only (no online payment yet)
- Orders cannot be cancelled
- Dineout: free bookings only
- Don't open Swiggy app while using MCP (session conflicts)
Remember: Confirmation BEFORE ordering. Every. Single. Time. 🐾
Swiggy 技能
通过 Swiggy 的 MCP 服务器在印度订餐、购买杂货和预订餐厅。
安装
该技能包含一个 swiggy CLI 二进制文件。安装技能后:
bash
cd skills/swiggy
npm link
这将创建一个全局的 swiggy 命令。验证方式:which swiggy
使用场景
- - 外卖配送:点一份印度香饭、哪些店还在营业?、8人团队午餐
- 杂货(Instamart):买鸡蛋和牛奶、每周杂货采购、食谱食材
- 餐厅预订(Dineout):预订周六晚上8点的晚餐、Koramangala的意大利餐厅
可用命令
外卖配送
bash
搜索餐厅
swiggy food search biryani --location Koramangala, Bengaluru
获取菜单
swiggy food menu
购物车管理
swiggy food cart add --quantity 2
swiggy food cart show
swiggy food cart clear
下单(需确认)
swiggy food order --address home --confirm
Instamart(杂货)
bash
搜索商品
swiggy im search eggs --location HSR Layout, Bengaluru
购物车操作
swiggy im cart add --quantity 3
swiggy im cart show
swiggy im cart clear
结算(需确认)
swiggy im order --address home --confirm
Dineout(餐厅预订)
bash
搜索餐厅
swiggy dineout search Italian Indiranagar
获取详情
swiggy dineout details
检查可用时段
swiggy dineout slots --date 2026-01-30
预订餐桌(仅限免费预订,需确认)
swiggy dineout book --date 2026-01-30 --time 20:00 --guests 2 --confirm
关键:安全规则
⚠️ 切勿自动下单
在下单前务必获得明确确认。
- 1. 首先显示购物车预览:
- 所有商品及其数量和价格
- 总金额
- 配送地址
- 预计配送时间(食品/杂货)
- 2. 请求确认:
准备下单:
- 2份鸡肉印度香饭(₹500)
- 1份酸奶沙拉(₹60)
总计:₹560 + 配送费
配送至:家(HSR Layout)
预计送达:30-40分钟
确认下单?(是/否)
- 3. 仅在用户确认后:
- 使用 --confirm 标志运行下单命令
- 记录到 memory/swiggy-orders.json
货到付款警告
Swiggy MCP 目前仅支持货到付款。订单一旦下达无法取消。确认前务必仔细核对。
地址处理
- - 用户可能说家、办公室等——映射到 USER.md 中的实际地址或询问
- 始终在预览中确认配送位置
- 对于 Dineout,位置仅用于搜索(非配送)
工作流程示例
食品订购流程
bash
1. 搜索
swiggy food search biryani near Koramangala
2. 浏览菜单(使用搜索结果的餐厅ID)
swiggy food menu rest_12345
3. 加入购物车
swiggy food cart add item_67890 --quantity 1
4. 预览购物车
swiggy food cart show
5. 向用户展示预览,请求确认
6. 如确认,下单
swiggy food order --address HSR Layout, Sector 2, Bengaluru --confirm
杂货购物流程
bash
1. 搜索商品
swiggy im search eggs --location Koramangala
swiggy im search milk --location Koramangala
2. 加入购物车
swiggy im cart add item_11111 --quantity 2
swiggy im cart add item_22222 --quantity 1
3. 预览
swiggy im cart show
4. 与用户确认
5. 结算
swiggy im order --address Koramangala, Bengaluru --confirm
餐厅预订流程
bash
1. 搜索
swiggy dineout search Italian Indiranagar
2. 查看详情
swiggy dineout details rest_99999
3. 检查可用时段
swiggy dineout slots rest_99999 --date 2026-01-30
4. 向用户展示选项,确认选择
5. 预订
swiggy dineout book rest_99999 --date 2026-01-30 --time 20:00 --guests 2 --confirm
错误处理
- - 无结果: 建议扩大搜索范围或更换位置
- 缺货: 显示替代商品
- 无可用时段: 建议不同的时间/日期
- 需要认证: 用户需通过 OAuth 认证(由 MCP 处理)
提示
- - 团队订餐:逐步构建购物车,询问偏好
- 预算购物:按价格筛选结果,显示累计金额
- 食谱转购物车:逐一搜索每种食材,逐步添加
- 深夜订餐:在搜索条件中提及配送时间
订单记录
成功下单后,追加到 memory/swiggy-orders.json:
json
{
timestamp: 2026-01-28T21:16:00+05:30,
type: food,
items: [...],
total: ₹560,
address: HSR Layout,
orderId: ...
}
认证
Swiggy MCP 使用 OAuth。首次使用将触发认证流程。swiggy CLI 通过 mcporter 处理此过程。
依赖项
- - 需要 mcporter 技能(底层使用)
- Node.js 运行时用于 CLI 包装器
已知限制
- - 仅支持货到付款(暂不支持在线支付)
- 订单无法取消
- Dineout:仅限免费预订
- 使用 MCP 时请勿打开 Swiggy 应用(会话冲突)
记住:下单前务必确认。每一次。都如此。 🐾