Foran Delivery MCP
Foran Delivery MCP lets you browse Foran's live grocery/restaurant catalogue, manage a customer account and cart, and place, track, or cancel orders in Bahria Town Karachi and Hyderabad, plus staff-assisted custom orders.
Get service facts, policies, buying guide, delivery coverage, and find delivery locations.
Search Mart/Bites products, list stores/restaurants, view store/product details, and browse categories.
Log in and view profile, wallet balance/history, saved addresses, coupons, and cart contents.
Add, update, or remove cart items and place orders with confirmation via cash on delivery or Foran Money.
View running/past orders, order details, live status/rider info, and cancel pending orders.
Track guest orders with order ID + phone, or account orders with a session key.
Use staff login for custom orders and order status for any customer.
Use ChatGPT-compatible search/fetch for read-only product lookup.
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., "@Foran Delivery MCP Find Milkpak 1L and eggs near Precinct 10 in Bahria Town"
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.
Foran Delivery MCP
Order groceries and food from Foran Delivery inside Claude, ChatGPT and any AI assistant that speaks the Model Context Protocol.
Foran Delivery is a quick-commerce service for groceries (Mart) and restaurant food (Bites) from trusted local stores. It is live in Bahria Town Karachi and Hyderabad, Pakistan. Delivery usually takes 40 to 60 minutes.
This is the official customer MCP server. It uses the same customer API as the Foran app and website, so prices, stock, stores and orders are live. It is built for customers. The only extra is a small set of Foran-team tools (custom orders and order status for any customer), locked behind a staff key; there is no admin-panel, store-owner or rider access.
Hosted endpoint: https://mcp.forandelivery.com/mcp (Streamable HTTP, no install needed)What you can ask
"What's Foran's delivery time in Bahria Town?" "Find Milkpak 1L and eggs near Precinct 10." "Which stores in Hyderabad are open right now?" "Log me in, add 2 Milkpak 1L and a dozen eggs from Foran Bazar, and deliver to my Home address — cash on delivery." "Where is my order 102584?" "Here's a photo of my list: Panadol, 2 kg milk, a dozen eggs. Order it to House 29, Precinct 10A."
The assistant always shows the order summary first and only places the order after you say yes.
Related MCP server: wegmans-mcp-cloudflare-workers
Fees
Orders placed through this MCP server (Claude, ChatGPT or any AI assistant) carry an MCP fee of Rs 150, shown in the order summary before you confirm. It replaces the processing fee charged in the Foran app. Delivery charge, store minimum order and Foran's free-delivery rules apply as usual.
Tools
Tool | Login | What it does |
| – | Live areas, hours, delivery time, cashback, first-order promo, contact, app links |
| – | Turn an address or area into coordinates and check delivery coverage |
| – | Search Mart or Bites items near you (price in Rs, stock, store, link) |
| – | Stores / restaurants that deliver to you: open now, minimum order, distance |
| – | One store plus its popular items |
| – | Full product info, including options needed before adding to cart |
| – | Browse categories or the items in one category |
| – | Terms, privacy, refund, cancellation, delivery policies |
| optional | Order status and rider position |
| – | ChatGPT-compatible catalogue search and document fetch |
| – | Log in with your Foran phone + password, returns a |
| ✔ | Name, Foran Money balance, loyalty points |
| ✔ | Saved delivery addresses |
| ✔ | Foran Money transactions (top-ups, points conversions, payments) |
| ✔ | Coupons you can use |
| ✔ | Manage your cart (one store per order) |
| ✔ | Summary first, then place the order with |
| ✔ | Running orders and history |
| ✔ | Cancel a pending order (with confirmation) |
| – | How to buy from Foran: one-store rule, delivery charges, free delivery, payment, Foran Money, cashback, refunds |
| ✔ or staff | Claude order: order from a shopping list, product names or photos, mixing catalogue items with custom items (estimated price, confirmed by the Foran team). Quote first, then |
| ✔ or staff | Live order stage, timeline, rider, items and total |
| – | Foran team only: unlocks custom orders and status for any customer (e.g. WhatsApp orders) |
Connect it
Claude (claude.ai, Claude Desktop, mobile)
Settings → Connectors → Add custom connector.
Name:
Foran Delivery, URL:https://mcp.forandelivery.com/mcp.Turn it on in a chat from the tools menu.
Claude Code
claude mcp add --transport http foran-delivery https://mcp.forandelivery.com/mcpChatGPT
Settings → Apps & Connectors → Advanced settings → turn on Developer mode.
Create a connector: name
Foran Delivery, MCP server URLhttps://mcp.forandelivery.com/mcp, authentication No authentication (you log in to Foran inside the chat).In a chat, choose Developer mode and enable Foran Delivery.
ChatGPT deep research can use the read-only search and fetch tools.
Cursor, Windsurf, VS Code and other clients
Add a remote MCP server with the URL https://mcp.forandelivery.com/mcp (transport: Streamable HTTP).
Run it locally (stdio)
Requires Node.js 20+.
git clone https://github.com/forandeliverypk-source/foran-delivery-mcp.git
cd foran-delivery-mcp && npm install && npm run buildClaude Desktop claude_desktop_config.json:
{
"mcpServers": {
"foran-delivery": {
"command": "node",
"args": ["/absolute/path/to/foran-delivery-mcp/dist/index.js"],
"env": { "FORAN_PHONE": "03001234567", "FORAN_PASSWORD": "your-password" }
}
}
}FORAN_PHONE / FORAN_PASSWORD are optional. They let foran_login work without typing your password into the chat.
Accounts, privacy and safety
Create your account in the Foran app (Android · iOS) or on forandelivery.com. Add your delivery address there too.
Login. Your password goes only to Foran's own API. It is never stored. You get an encrypted
session_key(AES-256-GCM) that expires after 7 days. The server keeps no database and does not log your requests or credentials. Note that anything you type in a chat is also visible to your AI provider. Prefer the localFORAN_PHONE/FORAN_PASSWORDsetup if you don't want to type your password into a chat.No surprise orders.
foran_place_orderandforan_cancel_orderdo nothing until called again withconfirm=trueafter you approve the summary.Customer only. No store, rider or admin endpoints are included.
Store owners' contact details are never passed to the AI.
Good to know
One store per order: everything in a basket comes from the same store.
4% back as Foran Points on every delivered order (customers convert points to Foran Money in the app). New customers get free delivery on their first order with code
FORANDELIVERY.Payment: cash on delivery, or Foran Money. To top up Foran Money, send JazzCash, Easypaisa or NayaPay to 0333-9988891, then WhatsApp the screenshot to the same number.
Support: WhatsApp +92 333 998 8891 · contact@forandelivery.com
Self-hosting (HTTP)
cp .env.example .env # set FORAN_MCP_SECRET to 32+ random characters
npm install && npm run build
node dist/index.js --http # → http://127.0.0.1:8095/mcp , health: /healthA hardened systemd unit is in deploy/foran-mcp.service. Put it behind HTTPS (for example Cloudflare Tunnel or nginx).
Smoke test (public tools only): node test/smoke.mjs (stdio) or node test/smoke.mjs http://127.0.0.1:8095/mcp.
License
MIT © 2026 Foran Private Limited. "Foran" and "Foran Delivery" are trademarks of Foran Private Limited.
Available Tools
28 toolsfetchFetch a Foran productARead-only
Fetch full details for an id returned by search (format product:<item_id>:).
Inputs: id (required).
foran_aboutAbout Foran DeliveryARead-only
Facts about Foran Delivery: live areas, delivery time, hours, cashback, first-order promo, payment options, contact and app links. Call this first when a user asks what Foran is or where it delivers.
Inputs: no named parameters.
foran_buying_guideHow to buy from ForanARead-only
Practical guide to buying from Foran Delivery: how ordering works, one-store rule, delivery charges, free delivery, minimum order, payment, Foran Money top-up, cashback, custom orders from photos/lists, cancellation and refunds. Use it whenever a customer asks how Foran works or how to order.
Inputs: no named parameters.
foran_cancel_orderCancel orderADestructiveIdempotent
Cancel an order that the store has not started yet (status pending). Ask the customer to confirm first, then call with confirm=true.
Inputs: reason (required), order_id (required), session_key (required), confirm.
foran_cart_addAdd to cartA
Add a product to the customer's cart. All items in one order must come from the same store. If the product has options, pass them (see foran_product_details).
Inputs: item_id (required), session_key (required), module, options, +2 more.
foran_cart_removeRemove from cartADestructiveIdempotent
Remove one cart line (cart_id) or empty the whole cart (all=true).
Inputs: session_key (required), all, module, cart_id.
foran_cart_updateChange quantity in cartAIdempotent
Set a new quantity for one cart line (cart_id from foran_cart_view). Quantity 0 removes it.
Inputs: cart_id (required), quantity (required), session_key (required), module.
foran_cart_viewView cartARead-only
Show the customer's current Foran cart for Mart or Bites, with line totals and subtotal.
Inputs: session_key (required), module.
foran_categoriesBrowse categoriesARead-only
List product categories (e.g. Milk & Dairy, Fruits & Vegetables) or, with category_id, the items inside one category.
Inputs: city, limit, module, latitude, +2 more.
foran_couponsAvailable couponsARead-only
Coupons the logged-in customer can use (code, discount, minimum order).
Inputs: session_key (required), module.
foran_custom_orderCustom order (Claude order)A
Create a Foran order from what the customer sent: product names, a shopping list, or photos. Mix catalogue items (item_id) with custom items that are not in the app (name + estimated_price_rs). All items must be bought from ONE store: pick the nearest open store that has most items (foran_list_stores / foran_search_products). The order lands in the Foran admin panel as a pending 'Claude order' with the photos attached; the team confirms custom prices before dispatch. Who can use it: a logged-in customer (session_key; the order goes on their account) or Foran staff (staff_session; any customer name + phone, e.g. a WhatsApp customer). ALWAYS call first WITHOUT confirm: it returns the quote (items, delivery charge, MCP fee Rs 150, total, warnings). Show it to the user, and only after a clear yes call again with the same inputs and confirm=true. Cash on delivery.
Inputs: items (required), address (required), store_id (required), note, +12 more.
foran_find_locationFind a delivery locationARead-only
Turn an address or area name (e.g. 'Precinct 10 Bahria Town', 'Qasimabad Hyderabad') into coordinates and check whether Foran delivers there.
Inputs: query (required).
foran_list_storesList stores near the customerBRead-only
Stores (Mart) or restaurants (Bites) that deliver to the customer's area, with open status, minimum order and distance.
Inputs: city, limit, filter, module, +2 more.
foran_loginLog in as a Foran customerAIdempotent
Log in with the customer's own Foran phone number and password (the same as the Foran app). Returns a session_key for cart, order and account tools. Only use credentials the customer typed themselves in this conversation. On a local install, credentials may instead come from FORAN_PHONE / FORAN_PASSWORD environment variables (call with no arguments).
Inputs: phone, password.
foran_my_accountMy Foran accountCRead-only
Customer profile: name, phone, Foran Money (wallet) balance, loyalty points and order count.
Inputs: session_key (required).
foran_my_addressesMy saved addressesARead-only
The customer's saved delivery addresses (address_id is needed to place an order). New addresses are added in the Foran app or website.
Inputs: session_key (required).
foran_my_ordersMy ordersBRead-only
The customer's running (active) orders or past order history.
Inputs: session_key (required), limit, which.
foran_order_detailsOrder detailsCRead-only
Items, prices and status of one of the customer's orders.
Inputs: order_id (required), session_key (required).
foran_order_statusLive order statusARead-only
Real-time status of a Foran order: stage with plain-language meaning, timeline, store, rider name and phone, items, delivery charge, total and payment. Customers: pass session_key (only their own orders). Staff: pass staff_session plus order_id or the customer's phone (latest 5 orders). Use this whenever someone asks 'where is my order?'.
Inputs: phone, order_id, session_key, staff_session.
foran_place_orderPlace orderA
Check out the current cart to a saved address. First call WITHOUT confirm to get the order summary and show it to the customer. Only after the customer clearly says yes, call again with confirm=true to place the real order. Payment: cash_on_delivery or wallet (Foran Money). Orders placed here carry the MCP fee (Rs 150) instead of the app's processing fee; always show it in the summary.
Inputs: address_id (required), session_key (required), note, module, +4 more.
foran_policyForan policiesARead-only
Read a Foran policy: terms, privacy, refund, cancellation, delivery, or about.
Inputs: policy (required).
foran_product_detailsProduct detailsARead-only
Full details of one product, including required options (size, flavour, add-ons) needed before adding it to the cart.
Inputs: item_id (required), city, module, latitude, +1 more.
foran_search_productsSearch productsARead-only
Search Foran's catalogue (groceries in Mart, food in Bites) near the customer. Returns item_id, price in Rs, store, stock and a link. Prices include current discounts.
Inputs: query (required), city, limit, module, +3 more.
foran_staff_loginForan staff loginAIdempotent
For the Foran team only. Unlock staff tools (custom orders for any customer, e.g. from WhatsApp, and order status for any order) with the Foran staff key. Returns a staff_session valid for 7 days. Only use a key the user typed in this conversation.
Inputs: staff_key (required).
foran_store_detailsStore detailsCRead-only
Details of one store plus its popular items.
Inputs: store_id (required), city, module, latitude, +1 more.
foran_track_orderTrack an orderBRead-only
Status of an order. Logged-in customers pass session_key; guest orders need the phone number used on the order.
Inputs: order_id (required), phone, session_key.
foran_walletForan Money historyBRead-only
Recent Foran Money (wallet) transactions: cashback, top-ups and payments.
Inputs: session_key (required), limit.
searchSearch ForanBRead-only
Search Foran products in all live areas (Bahria Town Karachi and Hyderabad). Returns ids usable with fetch.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
Several clusters overlap meaningfully: foran_track_order vs foran_order_status vs foran_order_details all return order status/contents, and the generic search/fetch duplicate foran_search_products/foran_product_details with a different id scheme. foran_cart_remove vs foran_cart_update (quantity 0 removes) and foran_about vs foran_policy (which includes an 'about' topic) vs foran_buying_guide also blur together. Descriptions do give hints (guest vs logged-in, all-areas vs near-customer), so an agent can usually recover, but misselection is likely.
Most tools follow foran_<verb>_<noun> (foran_cart_add, foran_place_order, foran_track_order), but the set mixes noun-only names (foran_wallet, foran_coupons, foran_about, foran_policy), a 'my_' family (foran_my_account, foran_my_orders, foran_my_addresses), and two bare verbs (search, fetch) with no server prefix. Similar functions use different conventions (foran_track_order vs foran_order_status), so the pattern is readable but not predictable.
28 tools is heavy and sits just above the range where an agent can scan the surface comfortably, though a delivery app domain (cart, catalogue, orders, account, policies, staff) legitimately needs many operations. Some slots are redundant (search/fetch duplicating the foran_search_products / foran_product_details pair, and track_order/order_status), so trimming would help.
Coverage is broad: full cart CRUD, search/discovery, store and product details, checkout with confirmation, order listing, details, cancellation, tracking, wallet/coupons/account, staff and custom-order flows. The main gaps are address creation (explicitly punted to the app, a dead end for agents) and wallet top-up, neither of which blocks the core ordering lifecycle.
Related MCP Connectors
Search live store shelves, verify delivery windows, and run instant AI agent checkouts.
Order food, groceries & pharmacy delivery in Kurdistan & Iraq: search, menus, cart, checkout.
Order food on ChowDeck: browse restaurants, set your delivery address, build a cart, and check out…
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Milkbasket for grocery shopping, including OTP authentication, product search, cart management, wallet balance checks, and order summaries through natural language.1623 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables users to search grocery products and stores, manage a cart, sync purchase history, and predict needed items through MCP tools. It also stores food preferences as server instructions so connected agents can respect them automatically.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to search, compare, and create orders for daily consumer goods through MCP, with a handoff checkout flow where users complete payment themselves.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to search grocery products, manage shopping carts, and access account and order information across multiple online grocery platforms. It also supports smart shopping suggestions, deals, delivery slots, and order history.MIT