foodpanda-mcp
Lets AI assistants order food from foodpanda.ph on the user's behalf: search restaurants by name/cuisine near a delivery address, fetch restaurant details and browse menus with prices and customization options, build and edit an in-memory cart with real-time price validation against foodpanda, preview the order (items, totals, delivery address, payment methods), and place Cash-on-Delivery orders after explicit user confirmation.
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., "@foodpanda-mcp Search for Jollibee near me and show me their menu"
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.
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_tokentool 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 for restaurants by name or cuisine |
| Get restaurant info (hours, delivery fee, minimum order) |
| Browse a restaurant's menu organized by category |
| Get full item details including topping/customization options |
| Add items to your cart (validates prices with foodpanda) |
| View current cart contents and totals |
| Remove items from cart |
| Preview order summary with delivery address and payment methods |
| Place the order after user confirmation |
| Open a browser to log in and refresh the session token |
Environment Variables
Variable | Required | Description |
| No | JWT bearer token (optional — use |
| Yes | Latitude of your delivery address |
| Yes | Longitude of your delivery address |
Order Safety
The checkout flow is designed with a human-in-the-loop pattern:
preview_ordershows the full order summary (items, totals, delivery address, payment methods)The AI is instructed to always show this to you and ask for confirmation
place_orderonly 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/calculatefor price validation on every changeCheckout fetches your saved addresses and payment methods, then submits to
/api/v5/cart/checkoutPrices 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 buildThen 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_tokentool 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 toolsadd_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_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
Scored across 11 tools
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.
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.
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.
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
Related MCP Connectors
Order food from Cordering white-label restaurants: browse menus, confirm, then place an order.
Pickup orders at Japanese restaurants for AI agents: find stores, read menus, place orders. No auth.
Manage Shipday orders, drivers, driver earnings, reports from your AI assistants.
Related MCP Servers
- FlicenseAqualityDmaintenanceAllows AI assistants to browse menus, manage carts, and place orders on Uber Eats through natural language commands.343-
- FlicenseNot gradedqualityCmaintenanceEnables 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.-
- AlicenseAqualityCmaintenanceEnables 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.111MIT
- AlicenseAqualityCmaintenanceEnables 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.13MIT