zoodex-mcp
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., "@zoodex-mcp Find the cheapest discounted pizza near Azadi Square and add two to my cart."
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.
zoodex-mcp
An MCP server for Zoodex, the food and grocery delivery app. It lets Claude (or any MCP client) search restaurants and food, find the best discounts, build a cart, log in, check out, top up the wallet, and track or rate orders. It covers the ordering features of the Zoodex web app.
It calls the Zoodex REST API (https://api.zoodex.ir/api/), with the same headers, query encoding and auth flow.
"Find me the cheapest discounted pizza near Azadi Square, add two to my cart and show me the checkout."
Features
Search: food, products and vendors, with filters (discounted, Golden Off, specials, pickup, vendor type) and sorting (rating, newest, distance). Also browse vendor lists, read menus, search inside supermarkets, and see product details, reviews and pre-order slots.
Best discounts:
zoodex_find_best_dealsscans Food Party, pickup parties, discounted items, specials, cash back, Pack Land and Golden Off in one call. With an optional query it also searches for discounted products. It ranks the results by discount %, money saved, or final price. Personal discount codes, vendor coupons for your cart, store credit and discount-code checks are separate tools.Login: SMS one-time code or password, with captcha support. You can also import an existing browser session. Items added to the cart while logged out are merged into your account when you log in.
Refresh tokens: the access token is refreshed automatically shortly before it expires and whenever the API returns 401. Concurrent requests share one refresh, and the original request is replayed with its real method and body. If the refresh token is revoked, you get a clear "log in again" message.
Cart: add, update or remove items (varieties, additionals, notes), remove a vendor, empty the cart, pre-order, vendor notes, delivery fee, order again, and Zoodex Plus.
Checkout: lists payment options (online, cash, wallet keys), courier or pickup, discount codes, wallet use and store credit.
zoodex_place_ordershows a preview first and only places the order when called withconfirm=true. Online payments return abank_urlthat you open to pay; you can then check the payment status.Wallet: balances (Zoodex credit, other wallets, third-party and store credits), top-up through the bank gateway or a credit provider, top-up status, and history.
Orders: current and past orders, details and tracking, support topics and tickets, and rating the vendor, courier and Zoodex.
Location: cities, place search (geocoding), set your location (with a service-area check), and manage saved addresses.
All prices returned by the tools are in toman. The API itself uses rials (1 toman = 10 rials), and the tools convert for you.
Related MCP server: grubhub-mcp
Install
Requires Node.js 18.17 or newer.
Claude Code
claude mcp add zoodex -- npx -y github:MrMohebi/zoodex-mcpClaude Desktop / other MCP clients
{
"mcpServers": {
"zoodex": {
"command": "npx",
"args": ["-y", "github:MrMohebi/zoodex-mcp"],
"env": { "ZOODEX_CITY": "kerman" }
}
}
}From source
git clone https://github.com/MrMohebi/zoodex-mcp.git
cd zoodex-mcp
npm install # also builds dist/
node dist/index.js # stdio serverThen point your client at node /path/to/zoodex-mcp/dist/index.js.
Usage
Location: "set my city to Kerman" / "I'm at Azadi Square". This uses
zoodex_set_city,zoodex_search_placeandzoodex_set_location.Find food: "what are the best food deals right now?" or "cheapest burger with a discount".
Cart: "add 2 of the first one". Browsing and the cart work without logging in.
Log in: "log me in with 0912xxxxxxx". An SMS code is sent; tell Claude the code.
Checkout: "check out with online payment to my home address". You see a preview and confirm, then you get a payment link.
Wallet: "add 200,000 toman to my Zoodex wallet". You get a payment link.
The server also provides an order_food prompt that runs this whole flow.
More example prompts
"What's in Food Party today and until when?"
"Cheapest discounted pizza under 300,000 toman, sorted by final price."
"Show the menu of
cafeafel, only discounted items.""Find kebab places with Golden Off that also allow pickup, top rated first."
"Do I have any discount codes? Is code
ABC123valid on my cart?""Add 2 pistachio waffles with the note 'extra syrup' and apply the best coupon."
"Pay from my company credit wallet instead of online."
"Reorder my last order and show the new total. Don't pay yet."
"Where is my order? It's late, what support options do I have?"
"Rate my last order 5 stars for the restaurant and 4 for the courier."
Persian works too: «بهترین تخفیفهای غذا الان چیه؟», «۲۰۰ هزار تومن کیف پولم رو شارژ کن.»
See docs/EXAMPLES.md for many more prompts (English and Persian) and worked tool-call flows with sample responses.
Using your existing browser login
You can skip SMS login. On zoodex.ir, open DevTools → Application → Local Storage → token and copy accessToken and refreshToken. Then ask Claude to call zoodex_set_tokens with them, or set ZOODEX_ACCESS_TOKEN / ZOODEX_REFRESH_TOKEN.
Configuration
Variable | Default | Description |
|
| API base URL |
|
| Web app URL that payment gateways redirect back to |
|
| Initial city slug |
|
| Where tokens, cart token, city and location are stored |
| – | Optional tokens to start the session with |
| web app's public client | OAuth client used for |
|
|
|
|
| Request timeout |
Tools
Tool | What it does |
Auth | |
| Send an SMS code (or start password login) for a mobile number |
| Get a captcha image when login asks for one |
| Verify the code or password and store tokens |
| Login state, token expiry, city, location, address, cart |
| Force a token refresh (normally automatic) |
| Import tokens from a browser session |
| Forget tokens and cart |
| Identity and profile |
Location & addresses | |
| Cities and city selection |
| Geocode a place name |
| Set location (reverse geocode + service-area check) |
| Saved addresses and the delivery address |
| Manage addresses |
Discovery | |
| Search food, products or vendors (filters, sorts, paging) |
| Popular and recent searches, available filters and sorts |
| Browse vendors by type |
| Status, hours, minimum order, delivery fee |
| Menu with prices and discounts (filterable) |
| Supermarket categories and product search |
| Varieties and additionals |
| Reviews and pre-order slots |
| Favorites |
Deals & discounts | |
| Ranked best deals across all discount sections |
| Browse Food Party, Golden Off, campaigns… |
| Vendors with Golden Off |
| Personal discount codes and prizes |
| Vendor coupons for the cart |
| How much a discount code saves |
Cart | |
| Cart with totals |
| Add, update or remove items |
| Remove a vendor's items or empty the cart |
| Pre-order and vendor note |
| Delivery fee to an address |
| Order again |
| Zoodex Plus plans, status, add or remove in cart, savings |
Checkout | |
| Payment methods, delivery options, wallet, addresses |
| Preview, then place the order ( |
| Payment result for an order |
Orders | |
| Order history and tracking |
| Support options, answers and tickets |
| Rate the vendor, courier or Zoodex |
Wallet | |
| All balances |
| Top up the wallet (returns a payment link) |
| Top-up providers and status |
| Wallet transactions |
Safety
The server never pays on its own. Orders need an explicit
confirm=trueafter a preview. Online payments and wallet top-ups only return a bank link, and you complete the payment in your browser.Tokens are stored only on your machine, in
~/.zoodex-mcp/session.json(file mode0600). Delete the file or callzoodex_logoutto sign out.
Development
npm run build # compile to dist/
npm test # unit tests (token refresh, query encoding) against a mock API
node test/smoke.mjs # live end-to-end smoke test (public endpoints + a guest cart)The code is organised like this:
src/client.ts: HTTP client (headers,qsbracket encoding, Bearer auth, refresh flow)src/session.ts: the stored sessionsrc/format.ts: compact views of API responses (rial → toman)src/tools/*: tool definitions, grouped by feature
License
MIT
Available Tools
59 toolszoodex_add_addressAdd addressB
Save a new delivery address and select it for checkout.
Inputs: title (required), latitude (required), longitude (required), address_text (required), +5 more.
zoodex_cart_clearEmpty cartADestructive
Remove everything from the cart.
Inputs: no named parameters.
zoodex_cart_remove_itemRemove cart itemBDestructive
Remove one line from the cart (by product_cart_id or variety_id).
Inputs: variety_id, product_cart_id.
zoodex_cart_remove_vendorRemove vendor from cartADestructive
Remove all items of one or more vendors from the cart. Pass vendor slugs or cart_vendor_id values from zoodex_cart_view.
Inputs: vendor_slugs, cart_vendor_ids.
zoodex_cart_set_itemAdd / update cart itemA
Set the quantity of a product variety in the cart (quantity is absolute, not a delta; 0 removes it). Use variety_id from search/menu results. If the product has additionals (extras/options), pass their ids. To change an existing line (e.g. with different additionals) pass its product_cart_id from zoodex_cart_view. Works logged out (guest cart, merged on login).
Inputs: quantity (required), variety_id (required), note, additionals, +2 more.
zoodex_cart_set_preorderSchedule (pre-order)A
Schedule a vendor's part of the cart for later. Date is Jalali 'YYYY/MM/DD HH:mm:ss' (e.g. '1405/09/08 13:00:00'); pick one from zoodex_preorder_times.
Inputs: vendor_slug (required), specified_date (required).
zoodex_cart_shippingDelivery fee for cartARead-only
Calculate delivery fees for the cart to a saved address (defaults to the selected address). Prices are in toman (the API uses rials; 1 toman = 10 rials).
Inputs: address_id.
zoodex_cart_vendor_noteNote for the vendorC
Attach an order note for one vendor (e.g. 'please ring twice').
Inputs: comment (required), vendor_slug (required).
zoodex_cart_viewView cartARead-only
Show the cart: items per vendor, quantities, prices, discounts, selected coupons, totals and any warnings. Prices are in toman (the API uses rials; 1 toman = 10 rials).
Inputs: no named parameters.
zoodex_check_offer_codeCheck a discount codeARead-only
Check how much a discount (offer) code takes off the current cart before ordering. Prices are in toman (the API uses rials; 1 toman = 10 rials).
Inputs: code (required).
zoodex_checkout_optionsCheckout optionsARead-only
Everything needed before placing an order: cart summary, allowed payment methods (online / cash / wallet keys), delivery vs pickup, pickup discount, minimum payment, Zoodex wallet balance, other wallets/credit providers and saved addresses. Prices are in toman (the API uses rials; 1 toman = 10 rials).
Inputs: no named parameters.
zoodex_credit_payment_statusTop-up payment statusBRead-only
Check the result of a wallet top-up payment by payment_item_id (status 1 = success).
Inputs: payment_item_id (required).
zoodex_credit_providersCredit providersARead-only
List credit providers that can be used to top up the wallet (in addition to the bank gateway).
Inputs: no named parameters.
zoodex_deal_sectionBrowse a deal sectionARead-only
List all items of one home-page deal section. Sections: food_parties = Food Party: limited-time deep discounts (delivery); pickup_parties = Pickup Food Party: discounts for in-person pickup; zoodex_offers = Discounted items across vendors; specials = Special offers; golden = Golden Off vendors (time-limited vendor-wide discount); cash_back = Cash back: part of the price returns to your wallet; packland = Pack Land: bundle deals; discounts = Public discount codes. Prices are in toman (the API uses rials; 1 toman = 10 rials).
Inputs: section (required), limit, offset.
zoodex_delete_addressDelete addressCDestructive
Delete a saved address.
Inputs: address_id (required).
zoodex_favoritesMy favoritesCRead-only
List favorite vendors or products.
Inputs: kind.
zoodex_find_best_dealsFind the best discountsARead-only
Scan Zoodex for the best current deals and rank them. Combines Food Party, pickup parties, discounted items, specials, cash back, Golden Off vendors and, if query is given, a discounted-product search (e.g. query='پیتزا' to find the cheapest discounted pizza). Returns ranked product deals (with variety_id ready for zoodex_cart_set_item) and discounted vendors. Prices are in toman (the API uses rials; 1 toman = 10 rials).
Inputs: limit, query, sort_by, sections, +5 more.
zoodex_get_captchaGet login captchaARead-only
Fetch a captcha image. Only needed when zoodex_login_start fails asking for a captcha. Show the image to the user, then pass the text and the key to zoodex_login_start.
Inputs: no named parameters.
zoodex_golden_off_vendorsGolden Off vendorsBRead-only
Vendors that currently have a Golden Off (time-limited, vendor-wide discount), by vendor type.
Inputs: limit, offset, vendor_type.
zoodex_home_sectionsHome page sectionsARead-only
List the sections shown on the Zoodex home page for the selected city (campaigns, Food Party, Golden Off, specials...). Open any of them with zoodex_deal_section.
Inputs: no named parameters.
zoodex_increase_creditTop up wallet (increase credit)A
Add money to the Zoodex wallet. Amount is in TOMAN. Returns bank_url for the user to open and pay; then call zoodex_credit_payment_status. Optionally pass a credit provider key (from zoodex_credit_providers) to top up via that provider. Confirm the amount with the user first.
Inputs: amount_toman (required), provider.
zoodex_list_addressesList my addressesARead-only
List saved delivery addresses. The selected one is used at checkout.
Inputs: no named parameters.
zoodex_list_citiesList citiesARead-only
List the cities Zoodex serves (slug, title, center coordinates).
Inputs: no named parameters.
zoodex_list_vendorsBrowse vendorsARead-only
List vendors of a type near the current location, e.g. type='resturant' (sic), 'fastfood', 'cafe', 'supermarket', or 'all'. Set include_filters=true to see the filters/sub-categories this list supports, then pass them in filters (as query params, e.g. {plus:1}).
Inputs: type, limit, offset, filters, +1 more.
zoodex_login_startStart Zoodex loginA
Step 1 of login. Checks the mobile number and (by default) sends an SMS one-time code. Then call zoodex_login_verify with the code. Use method='password' for an existing account that has a password (no SMS sent). If the API asks for a captcha, call zoodex_get_captcha and pass its key and the solved text here.
Inputs: mobile (required), method, captcha, referrer, +1 more.
zoodex_login_verifyFinish Zoodex loginA
Step 2 of login. Verifies the SMS code (or password) and stores the access + refresh tokens in the local session. Any items added to the cart while logged out are merged into the account cart.
Inputs: code, mobile, password, invitation_code.
zoodex_logoutLog outADestructive
Forget the stored tokens and cart token. City and location are kept.
Inputs: no named parameters.
zoodex_market_searchSupermarket search & categoriesARead-only
Search products inside a supermarket vendor, or list its categories (omit query). Use category_id to list a category's products.
Inputs: vendor_slug (required), limit, query, offset, +1 more.
zoodex_my_discount_codesMy discount codes & prizesARead-only
Personal discount codes ('offer' tab in the app) and prize coupons ('coupon' tab, e.g. lucky-wheel or campaign rewards) on the account. Use a code with zoodex_check_offer_code or pass it as offer_code to zoodex_place_order. Expired coupons are hidden unless include_expired=true.
Inputs: limit, include_expired.
zoodex_order_detailsOrder details & trackingBRead-only
Full details of an order: items, prices, payment, delivery status/tracking and courier info.
Inputs: order_id (required).
zoodex_ordersMy ordersARead-only
List orders. status='current' for active orders, 'history' for past ones.
Inputs: limit, offset, status.
zoodex_order_supportOrder supportA
Get help with an order. action='options' lists support topics for the order; 'chat' opens a support answer for an option (option_id, optional question_id); 'ticket' files a ticket with a description (comment_type_id from the options).
Inputs: order_id (required), action, option_id, description, +2 more.
zoodex_payment_statusOrder payment statusARead-only
Check whether an order's payment succeeded (after the user paid via bank_url). Status is SUCCESSFUL, UNSUCCESSFUL or CANCELED.
Inputs: order_id (required).
zoodex_place_orderPlace orderADestructive
Place the order for the current cart. ALWAYS show the user the final summary and get explicit confirmation first: call with confirm=false to get a preview, then call again with confirm=true. For online payment the result contains bank_url, which the user must open to pay; afterwards call zoodex_payment_status. Requires a name on the account and, for courier delivery, a selected address.
Inputs: confirm, delivery, address_id, offer_code, +3 more.
zoodex_plusZoodex PlusB
Zoodex Plus membership (discounts + free delivery). action='plans' lists plans, 'status' shows plus details for the current cart, 'add_to_cart' adds a plan to the cart (bought with the order), 'remove_from_cart' removes it, 'profits' shows what Plus saved you.
Inputs: action (required), plan_id, vendor_id.
zoodex_preorder_timesPre-order time slotsARead-only
Available pre-order (scheduled delivery) slots for a vendor. Pass one to zoodex_cart_set_preorder.
Inputs: vendor_slug (required).
zoodex_product_detailsProduct detailsARead-only
Full details of one product (varieties, required/optional additionals, vendor). Use before adding items that have additionals.
Inputs: product_id (required).
zoodex_profileGet my profileARead-only
Get the logged-in user's identity and profile (name, mobile, default address, Zoodex Plus status, order count, invitation info).
Inputs: no named parameters.
zoodex_rate_orderRate an orderA
Rate a delivered order. First call with target='details' to get the vendor slug, courier id, rating reasons and products. Then submit target='vendor' (rate 1-5, optional product ratings), 'courier' (rate 1-5) or 'zoodex' (comment only).
Inputs: order_id (required), rate, target, comment, +4 more.
zoodex_refresh_tokenRefresh access tokenA
Force a refresh of the access token using the stored refresh token. Normally not needed: tokens are refreshed automatically before expiry and on any 401.
Inputs: no named parameters.
zoodex_reorderOrder againA
Copy the items of a previous order into the cart. Set verify_only=true to only check what is still available.
Inputs: order_id (required), verify_only.
zoodex_searchSearch food, products and vendorsARead-only
Search Zoodex in the selected city. scope='all' returns top vendors and products, 'products' or 'vendors' are paged. Use only_discounted=true for items on sale. Product results include variety_id, which is what zoodex_cart_set_item needs. Prices are in toman (the API uses rials; 1 toman = 10 rials).
Inputs: query (required), kind, limit, scope, +5 more.
zoodex_search_optionsSearch optionsARead-only
Popular searches, tags, your recent searches, vendor types and the filters/sorts the search API accepts.
Inputs: no named parameters.
zoodex_search_placeSearch a place on the mapARead-only
Geocode a street/neighbourhood/landmark name (Persian works best) to coordinates near the current city. Use the result with zoodex_set_location or zoodex_add_address.
Inputs: text (required).
zoodex_select_addressSelect delivery addressA
Use a saved address for delivery: sets the session location/city to it and optionally makes it the account default.
Inputs: address_id (required), make_default.
zoodex_select_couponSelect a vendor couponA
Apply a vendor coupon (from zoodex_vendor_coupons) to the cart and return the recalculated cart. Use coupon_id=-1 to remove the coupon.
Inputs: coupon_id (required), vendor_slug (required).
zoodex_sessionShow session statusARead-only
Show login state, token expiry, selected city, location, delivery address and cart token stored by this MCP server.
Inputs: no named parameters.
zoodex_set_citySelect cityA
Select the city used for search, vendor lists and checkout. Clears a location that belongs to another city.
Inputs: city_slug (required).
zoodex_set_locationSet my locationA
Set the current location (used for nearby vendors, delivery fees and in-area checks). Reverse-geocodes it and switches city if needed.
Inputs: latitude (required), longitude (required), label.
zoodex_set_tokensImport tokensA
Use an existing web session instead of SMS login: paste the accessToken/refreshToken from the zoodex.ir browser localStorage key token. The token is validated by fetching the identity.
Inputs: access_token (required), refresh_token.
zoodex_toggle_favoriteToggle favoriteA
Add or remove a vendor (by slug) or product (by id) from favorites.
Inputs: product_id, vendor_slug.
zoodex_update_addressUpdate addressA
Edit a saved address. Only pass the fields to change.
Inputs: address_id (required), title, mobile, latitude, +6 more.
zoodex_vendor_couponsVendor coupons for my cartARead-only
List coupons a vendor offers for the current cart contents (selectable / auto-selected / why not applicable), plus vendor store credit and Golden Off. Select one with zoodex_select_coupon.
Inputs: vendor_slug (required).
zoodex_vendor_detailsVendor detailsCRead-only
Information about a vendor: open status, working hours, minimum order, delivery fee to the current location, rating, coupons, address.
Inputs: vendor_slug (required), level.
zoodex_vendor_reviewsVendor reviewsCRead-only
Customer reviews and ratings for a vendor.
Inputs: vendor_slug (required), limit, offset.
zoodex_vendor_typesVendor typesARead-only
Vendor categories in the selected city (restaurant, fast food, cafe, supermarket, ...). Use the slug with zoodex_list_vendors.
Inputs: no named parameters.
zoodex_walletWallet balancesARead-only
Zoodex wallet (credit) balance, other wallets (e.g. BNPL / partner wallets), third-party credits and per-vendor store credits. Amounts in toman.
Inputs: no named parameters.
zoodex_wallet_historyWallet historyBRead-only
Wallet transaction history. kind: increases (credit added), decreases (credit spent), bank (bank transactions), conversions, refunds.
Inputs: end, kind, limit, start, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 59 tools
Most tools target distinct resources or lifecycle steps, and the descriptions provide strong guidance for choosing between similar-looking areas such as search, vendor listing, cart, checkout, and wallet. Some overlap remains among deal-discovery tools and payment-status tools, but the boundaries are generally recoverable from the descriptions.
All tools share the zoodex_ prefix and snake_case style, making the set easy to scan. There is a minor mix of verb_noun names (e.g. zoodex_list_vendors) and noun-only names (e.g. zoodex_wallet, zoodex_orders), but the convention is still predictable overall.
With 59 tools, the surface is far beyond a typical well-scoped MCP server and imposes a high selection burden on the agent. Even for a broad food-delivery domain, many session, deal-discovery, cart, and wallet operations could be consolidated into fewer tools.
The tool set covers the full commerce lifecycle: authentication, cities and addresses, search, vendor menus, cart management, coupons, checkout, payment, orders, support, ratings, wallet, and Plus membership. The main notable gap is explicit order cancellation/refund handling, though support tools may partially cover that path.
Maintenance
Related MCP Connectors
Real-time data APIs for 50+ commerce, grocery, social and maps platforms over one OAuth MCP server
Unified MCP server for 70+ eCommerce platforms: products, orders, customers, and more.
An MCP server that exposes functionalities to use Zomato's services.
Multi-tenant MCP gateway for AI commerce. One connection, every store.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server and app that enables users to browse restaurants, view menus, manage shopping carts, and place food orders with live status tracking. It serves as a reference implementation for MCP Apps SDK patterns like tool visibility, lifecycle hooks, and structured content.-
- AlicenseBqualityBmaintenanceProvides programmatic access to Grubhub's food delivery platform, enabling restaurant search, menu browsing, cart management, order placement, and delivery tracking through MCP tools.362MIT
- AlicenseBqualityDmaintenanceMCP server for AI agents to interact with the Ninja/AnaNinja mobile API, enabling mobile-compatible auth, address management, retail/grocery product search, draft order validation, and checkout/payment flows.19MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to search restaurants, publish and maintain store data, submit verified freshness feedback, and query demand or updates through MCP tools. It provides both read-only and full administrative endpoints backed by open restaurant data.1AGPL 3.0