Skip to main content
Glama

What it is

Swiggy runs three official remote MCP servers (mcp.swiggy.com/{food,im,dineout}), each with its own connection. swiggy-lyr aggregates all ~35 upstream tools into one server your agent connects to once:

Stream

Prefix

Covers

Food

food_

restaurant search, menus, cart, ordering, tracking

Instamart

instamart_

product search, cart, checkout

Dineout

dineout_

discovery, details, slots, free bookings

Upstream tool schemas are discovered dynamically at startup — Swiggy schema changes propagate without code changes here.

Related MCP server: wolt-mcp

Quick start

# Install
curl -sSL https://raw.githubusercontent.com/ishan-parihar/swiggy-lyr/main/install.sh | bash

# Authenticate (browser OAuth consent, ~5 day token)
swiggy-lyr --login

# Check status
swiggy-lyr --status

# Run the MCP server (stdio)
swiggy-lyr

Agent config

{
  "mcpServers": {
    "swiggy": {
      "command": "swiggy-lyr",
      "args": []
    }
  }
}

No token yet? SWIGGY_LYR_TOKEN=<bearer> env var works too.

Order safety

Swiggy's COD orders cannot be cancelled, so swiggy-lyr ships gated by default:

  1. Cart mutations / bookings require env SWIGGY_LYR_ALLOW_ORDERS=1 on the server process.

  2. Checkout / place-order tools additionally require the agent to pass confirm=true.

Reads (search, menus, slots, cart view) always work.

Architecture

┌────────────────────── swiggy-lyr (stdio FastMCP) ──────────────────────┐
│  food_*        instamart_*        dineout_*      ← generated proxies   │
│        └──────────────┴───────────────────┘                            │
│              dynamic tools/list → local registration                   │
│                        Bearer (OAuth 2.1 + PKCE)                       │
└────────────────────────────────┬───────────────────────────────────────┘
                                 ▼
     mcp.swiggy.com/food    mcp.swiggy.com/im    mcp.swiggy.com/dineout

CLI

swiggy-lyr --login            OAuth consent via browser
swiggy-lyr --login --token X  store a bearer token manually
swiggy-lyr --status           auth state + expiry countdown (TOON)
swiggy-lyr                    start MCP server on stdio
swiggy-lyr --transport http --port 8000

Environment

Var

Purpose

SWIGGY_LYR_TOKEN

bypass stored token (CI / manual)

SWIGGY_LYR_ALLOW_ORDERS

enable mutating tools (default off)

SWIGGY_LYR_CLIENT_ID

pre-registered client if DCR unavailable

SWIGGY_REDIRECT_URI

override callback URI

LOG_LEVEL

DEBUG/INFO/WARNING

Notes

  • Keep the Swiggy app closed while agents use this (session conflicts).

  • Third-party development is in Swiggy's security-review window; treat this as personal-use tooling.

  • Development: see AGENTS.md. Install from source with uv sync.

License

MIT

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that enables AI agents to discover restaurants and place food delivery orders on Uber Eats and Thuisbezorgd (Just Eat Takeaway). It provides tools for restaurant discovery and order management through normalized platform APIs.
    2
    2
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    A thin MCP server that exposes Wolt's public consumer endpoints to AI agents, enabling discovery of nearby venues and fetching their menus with live prices and deal signals.
    2
    MIT
  • F
    license
    B
    quality
    F
    maintenance
    Aggregates quick commerce platforms like Zepto, Swiggy Instamart, and BigBasket for searching, comparing prices, and ordering through a single MCP interface.
    7
    2

View all related MCP servers

Related MCP Connectors

  • MCP Hub: AI service discovery, per-user OAuth, and multi-service workflow orchestration

  • Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ishan-parihar/swiggy-lyr'

If you have feedback or need assistance with the MCP directory API, please join our Discord server