Skip to main content
Glama
foodpanda-mcp
by johnwhoyou

foodpanda-mcp

An MCP server that lets AI assistants order food from foodpanda.ph on your behalf.

Tell your AI assistant what you want to eat, and it handles the rest — searching restaurants, browsing menus, building a cart, and placing orders through your foodpanda account.

Features

  • Search restaurants by name or cuisine near your delivery address

  • Browse full menus with prices, descriptions, and customization options

  • Build a cart with real-time price validation from foodpanda

  • Two-step checkout with order preview and explicit confirmation

  • Checkout with Cash on Delivery (credit card and GCash require browser-based payment flows and are not supported)

  • Automatic token refresh via browser login (no more copying tokens from DevTools)

Related MCP server: Zomato MCP Server

Quick Start

1. Get your delivery coordinates

Get the latitude and longitude of your delivery address (right-click on Google Maps → copy coordinates).

Note: You no longer need to manually copy a session token. The refresh_token tool handles authentication by opening a browser window for you to log in.

2. Configure your MCP client

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "foodpanda": {
      "command": "npx",
      "args": ["-y", "foodpanda-mcp"],
      "env": {
        "FOODPANDA_LATITUDE": "14.5623",
        "FOODPANDA_LONGITUDE": "121.0137"
      }
    }
  }
}

Other MCP Clients

Any MCP-compatible client that supports stdio transport will work. Set the two coordinate environment variables and run npx foodpanda-mcp. On first use, the AI will open a browser for you to log in to foodpanda.

3. Try it out

Ask your AI assistant:

"Search for Jollibee near me and show me their menu"

"Add 1 Chickenjoy to my cart"

"Preview my order and let me confirm before placing it"

Available Tools

Tool

Description

search_restaurants

Search for restaurants by name or cuisine

get_restaurant_details

Get restaurant info (hours, delivery fee, minimum order)

get_menu

Browse a restaurant's menu organized by category

get_item_details

Get full item details including topping/customization options

add_to_cart

Add items to your cart (validates prices with foodpanda)

get_cart

View current cart contents and totals

remove_from_cart

Remove items from cart

preview_order

Preview order summary with delivery address and payment methods

place_order

Place the order after user confirmation

refresh_token

Open a browser to log in and refresh the session token

Environment Variables

Variable

Required

Description

FOODPANDA_SESSION_TOKEN

No

JWT bearer token (optional — use refresh_token tool instead)

FOODPANDA_LATITUDE

Yes

Latitude of your delivery address

FOODPANDA_LONGITUDE

Yes

Longitude of your delivery address

Order Safety

The checkout flow is designed with a human-in-the-loop pattern:

  1. preview_order shows the full order summary (items, totals, delivery address, payment methods)

  2. The AI is instructed to always show this to you and ask for confirmation

  3. place_order only executes after you explicitly approve

This prevents accidental orders — the AI cannot skip the confirmation step.

How It Works

  • Search uses foodpanda's GraphQL API with Apollo persisted queries

  • Restaurant details and menus use the REST API at /api/v5/vendors/{code}

  • Cart is stateless on foodpanda's side — this server maintains cart state in memory and sends the full cart to /api/v5/cart/calculate for price validation on every change

  • Checkout fetches your saved addresses and payment methods, then submits to /api/v5/cart/checkout

  • Prices are in PHP (Philippine Peso)

Building from Source

git clone https://github.com/johnwhoyou/foodpanda-mcp.git
cd foodpanda-mcp
npm install    # also installs Google Chrome via postinstall
npm run build

Then use the local build in your MCP client config:

{
  "mcpServers": {
    "foodpanda": {
      "command": "node",
      "args": ["/absolute/path/to/foodpanda-mcp/build/index.js"],
      "env": {
        "FOODPANDA_LATITUDE": "14.5623",
        "FOODPANDA_LONGITUDE": "121.0137"
      }
    }
  }
}

Agent Skill

This project includes an Agent Skill at foodpanda-ordering/SKILL.md that teaches AI agents the full ordering workflow — from searching restaurants to placing orders. If your agent supports the Agent Skills format, it can use this skill to order food autonomously via the MCP server.

Limitations

  • Session tokens expire. The refresh_token tool handles this automatically — the AI opens a browser for you to log in when needed.

  • No official API. This server reverse-engineers foodpanda's internal web API. It may break if foodpanda changes their API.

  • Philippines only. Targets foodpanda.ph specifically. Other regions use different API endpoints and may not work.

  • Payment methods. Only Cash on Delivery is supported. Credit card and GCash require browser-based payment flows (Adyen SDK / app redirect) that cannot be completed through API calls. See #2.

  • Single delivery address. Uses the saved address closest to your configured coordinates.

Available Tools

11 tools
add_to_cartAdd to CartA

Add one or more items to the cart. If items are from a different restaurant than the current cart, the cart is cleared first. Sends the full cart to foodpanda for price validation and returns updated totals.

Inputs: items (required), restaurant_id (required).

get_cartGet CartA

View the current in-memory cart contents including items, quantities, prices, delivery fee, service fee, and totals. Returns 'Cart is empty.' if no items have been added.

Inputs: no named parameters.

get_item_detailsGet Item DetailsA

Get full details for a menu item including all topping groups and customization options. Use this when you need to know what toppings/variations are available before adding to cart.

Inputs: item_code (required), restaurant_id (required).

get_menuGet MenuA

Get the menu for a restaurant, organized by category. Returns a compact list with each item's code, name, price, and sold-out status. Use the item code when adding to cart. Use get_item_details if you need topping/customization options for a specific item.

Inputs: restaurant_id (required).

get_restaurant_detailsGet Restaurant DetailsA

Get detailed information about a specific restaurant including address, opening hours, minimum order, and delivery info.

Inputs: restaurant_id (required).

list_outletsList Chain OutletsA

List all outlet branches for a restaurant chain. Use the chain_code from search_restaurants results (only available when total_outlets > 1). Returns all outlets with their individual vendor codes, names, delivery fees, and distances so the user can pick a specific branch.

Inputs: chain_code (required).

place_orderPlace OrderA

Place the current cart as an order. You MUST call preview_order first and get explicit user confirmation before calling this. Only 'payment_on_delivery' (Cash on Delivery) is supported. Credit card and GCash require browser-based payment flows that cannot be completed via MCP.

Inputs: payment_method (required), delivery_instructions.

preview_orderPreview OrderA

Preview the current cart as an order. Returns a summary of items, totals, delivery address, and available payment methods. IMPORTANT: After calling this, you MUST show the full summary to the user and ask them to explicitly confirm before calling place_order. Never place an order without user confirmation.

Inputs: no named parameters.

refresh_tokenRefresh Session TokenA

Opens a browser window to foodpanda.ph so the user can log in. Intercepts the session token from network requests and updates the server. Call this when: (1) other tools return a 'session token expired' or 'No session token configured' error, or (2) the user wants to switch accounts. The browser window is visible — the user logs in manually (handling any CAPTCHAs or MFA). Once logged in, the token is captured automatically and saved for future sessions.

Inputs: timeout.

remove_from_cartRemove from CartA

Remove an item from the cart by its cart item ID (e.g. 'cart-1'). Re-calculates totals with remaining items.

Inputs: cart_item_id (required).

search_restaurantsSearch RestaurantsA

Search for restaurants on foodpanda.ph near the configured delivery address. Returns a list of matching restaurants with id (vendor code), name, cuisine, rating, delivery fee, estimated delivery time, and minimum order amount. Chain restaurants (e.g. Jollibee, McDonald's) include chain_code, chain_name, and total_outlets fields. When total_outlets > 1, use list_outlets with the chain_code to see all branches.

Inputs: query (required), limit, cuisine.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool maps to a distinct resource+action: restaurant search vs. outlet listing vs. restaurant details are cleanly separated, and get_menu vs. get_item_details is clearly distinguished by the descriptions. Cart operations (add/remove/get/preview/place) have explicit boundaries, with preview_order vs. place_order differentiated by the required confirmation flow.

    Naming Consistency5/5

    All tools use snake_case verb_noun (or verb_preposition_noun) patterns: search_restaurants, get_menu, add_to_cart, place_order, refresh_token. No mixing of camelCase or opaque nouns.

    Tool Count5/5

    11 tools is well within the ideal 3-15 range and each earns its place: discovery, browsing, cart, checkout, and auth are all covered without redundancy.

    Completeness3/5

    The browse-to-checkout lifecycle is complete, but post-order operations are absent: no order tracking/status, order history, or cancellation, and no way to update item quantities in the cart (only add or remove). Payment is limited to COD, which is acknowledged but leaves GCash/card users at a dead end.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Allows AI assistants to browse menus, manage carts, and place orders on Uber Eats through natural language commands.
      34
      3
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables voice-driven food ordering by providing tools to search restaurants, browse menus, check item availability, manage carts, calculate optimal coupon discounts, confirm and place orders, and track deliveries. It also supports long-term preference memory and order history for natural, multi-turn conversational commerce.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to search restaurants, browse menus, build a cart, and place foodpanda orders in Hong Kong (or other configured regions) on the user's behalf.
      11
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables an AI assistant to browse restaurants and menus, manage a cart, reorder past orders, review checkout details, and place food delivery orders, returning a payment link to complete payment.
      13
      MIT