About Basketeer
Basketeer is an MCP server published by tobyandrews1985 in the Healthcare category: typed, pure-HTTP TypeScript SDK for your own Tesco grocery account — search, basket, nutrition, delivery slots, and orders over plain fetch. Browser only for login + payment. Conduid read 21 tools from its source: basketeer_basket_get, basketeer_basket_remove, basketeer_basket_set, basketeer_checkout, basketeer_favourites, basketeer_last_order and 15 more. No package is published for it, so it installs from a source checkout.
The repository has 21 stars and 6 forks, is licensed MIT, and its last commit was on 26 Nov 2026. The latest release is v0.2.0. It follows v0.1.2, and the 3 most recent releases go back to v0.1.1. It passes all 5 static checks Conduid ran on the repository. Its topics include automation, graphql, groceries, grocery, nutrition and sdk.
Install
git clone https://github.com/tobyandrews1985/basketeerTools (21)
basketeer_basket_getGet the current basket: line items, quantities, and guide price.basketeer_basket_removeRemove a SKU from the basket entirely. Returns a compact receipt; call basketeer_basket_get for full basket contents.| Parameter | Type | Description |
|---|---|---|
| sku * | string | The product SKU (tpnc) to remove. |
basketeer_basket_setSet a SKU's basket line to an exact quantity (set-not-increment). quantity 0 removes the line. Returns a compact receipt; call basketeer_basket_get for full basket contents.| Parameter | Type | Description |
|---|---|---|
| quantity * | number | Exact quantity to set; 0 removes. |
| sku * | string | The product SKU (tpnc) to set. |
basketeer_checkoutPrepare checkout: returns the current basket and the URL where a HUMAN completes payment in a browser. This server never places or pays for an order — Tesco's 3-D Secure payment step is browser-bound by design. Two-step: call once with no args to preview the basket and get a confirmToken; call again with confirm set to that token to get the payment URL for the human to complete.| Parameter | Type | Description |
|---|---|---|
| confirm | string |
basketeer_favouritesList the signed-in customer's favourites ('my usuals') including price, offers, and quantityRules. Requires a saved session.| Parameter | Type | Description |
|---|---|---|
| limit | number |
basketeer_last_orderReturn the last delivered (fulfilled) order and its items, e.g. for 'reorder my usual shop'. Returns null if there is none. This is a read — to reorder, add its items via basketeer_basket_set.basketeer_list_add_itemsAdd items to a shopping list, keeping everything already on it (reads, merges, writes). An unticked item gets the quantity added; a ticked (bought) item is reset to the new quantity and unticked.| Parameter | Type | Description |
|---|---|---|
| listId * | string |
basketeer_list_readRead one shopping list and its items. Item `tpnb` is the product TPNB; `checked` is whether it is ticked off (null on older lists).| Parameter | Type | Description |
|---|---|---|
| listId * | string | A list id from basketeer_lists_get. |
basketeer_list_set_itemsREPLACE a shopping list's entire contents with `items`: anything not sent is removed (an empty array clears the list). Prefer basketeer_list_add_items. Two-step: call once to get a confirmToken and a preview of the current list; call again with confirm set to that token.| Parameter | Type | Description |
|---|---|---|
| confirm | string | |
| listId * | string |
basketeer_lists_getList the account's Tesco shopping lists ({ id, name }). The Tesco app's in-store list is the INSTORE list named 'Default list'. Requires a saved session.basketeer_nutritionNormalized nutrition (typed macros + micros) for a product by SKU.| Parameter | Type | Description |
|---|---|---|
| sku * | string | The product SKU (tpnc). |
basketeer_orders_amendOpen an upcoming order for changes (only before its amendExpiry). While it is open, basketeer_basket_set / basketeer_basket_remove edit THAT order instead of a new basket. Changes are only saved once the human completes basketeer_checkout's URL (paying any difference); otherwise call basketeer_orders_amend_discard. Returns the order's working basket.| Parameter | Type | Description |
|---|---|---|
| orderNo * | string | The order number from basketeer_orders_list. |
basketeer_orders_amend_discardAbandon an order opened with basketeer_orders_amend, dropping unsaved changes and leaving the order as it was. Two-step: call once with just orderNo to get a confirmToken; call again with confirm set to that token.| Parameter | Type | Description |
|---|---|---|
| confirm | string | |
| orderNo * | string | The order number currently open for amendment. |
basketeer_orders_cancelCancel an upcoming order outright (only before its amend/cancel cutoff). Two-step: call once with just orderNo to get a confirmToken and a preview; call again with confirm set to that token to actually cancel. Cancelling is irreversible.| Parameter | Type | Description |
|---|---|---|
| confirm | string | |
| orderNo * | string | The order number to cancel. |
basketeer_orders_listList upcoming (pending) orders with their items, slot, and amend window.basketeer_productFetch one product by SKU (tpnc), including price, pack size, promotions, quantityRules (weight/bulk buy/catch weight options), and nutrition.| Parameter | Type | Description |
|---|---|---|
| sku * | string | The product SKU (tpnc), e.g. from a search result. |
basketeer_searchSearch the Tesco grocery catalogue. Returns matching products with SKU, title, price, offers, and quantityRules (weight/bulk buy limits).| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| query * | string | Search terms, e.g. 'semi skimmed milk'. |
basketeer_search_by_nutritionSearch products by keyword, then filter/rank by nutrition (per 100g/ml). Hydrates each candidate with a throttled product fetch; bounded by `hydrate`.| Parameter | Type | Description |
|---|---|---|
| hydrate | number | Max candidates to fetch nutrition for (default 20). |
| limit | number | Max results to return after filtering. |
| maxSugar | number | Maximum sugars (g per 100g/ml). |
| minProtein | number | Minimum protein (g per 100g/ml). |
| query * | string | Search terms, e.g. 'greek yogurt'. |
| sortBy | string | Macro to sort by descending, e.g. 'protein'. |
basketeer_slots_bookReserve a delivery slot by ID from basketeer_slots_list. Replaces any slot already reserved for the basket. The hold lapses at reservationExpiry unless the order is checked out. Does not place or pay for an order.| Parameter | Type | Description |
|---|---|---|
| slotId * | string | The delivery slot ID returned by basketeer_slots_list. |
basketeer_slots_listList delivery slots over a date window (defaults to today..+6 days). Dates are YYYY-MM-DD.| Parameter | Type | Description |
|---|---|---|
| end | string | Window end, YYYY-MM-DD. |
| start | string | Window start, YYYY-MM-DD. |
basketeer_slots_releaseRelease a reserved delivery slot by ID (the slot with status 'Booked' in basketeer_slots_list). Once released, the slot may be taken by another customer.| Parameter | Type | Description |
|---|---|---|
| slotId * | string | The reserved delivery slot ID to release. |
Security checks
- ✓README presentThe repository's README runs to about 2.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 22 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README