npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tesco-grocery-mcp

v1.0.0

Published

MCP server for Tesco grocery shopping — search products, manage your basket, and book delivery slots

Readme

tesco-grocery-mcp

An MCP server that wraps Tesco's grocery APIs, letting AI assistants like Claude search products, manage your basket, and book delivery slots.

Tools

Authentication

| Tool | Description | |------|-------------| | set_auth_token | Set bearer token and customer UUID from your browser session |

Search & Browse

| Tool | Description | |------|-------------| | search_products | Search for grocery products (supports batched multi-query) | | get_product_details | Get detailed info for a specific product | | get_offers | Find products on promotion or Clubcard price | | get_substitutions | Find alternatives for unavailable products | | browse_categories | Get the department/aisle/shelf taxonomy tree | | get_favourites | Get your favourite products | | get_order_history | Get previous orders |

Basket

| Tool | Description | |------|-------------| | get_basket | View current basket contents | | add_to_basket | Add products or change quantities | | remove_from_basket | Remove products from basket |

Delivery Slots

| Tool | Description | |------|-------------| | get_delivery_slots | View available delivery slots for a date range | | get_available_weeks | See which weeks have delivery slots | | get_current_slot | Check if you have a slot booked | | book_delivery_slot | Book or unbook a delivery slot |

Prerequisites

  • Node.js >= 18
  • A Tesco.com account with an active grocery session

Installation

Via npx (recommended)

No installation needed — just configure your MCP client (see below).

Global install

npm install -g tesco-grocery-mcp

From source

git clone https://github.com/GavinAttard/tesco-grocery-mcp.git
cd tesco-grocery-mcp
npm install
npm run build

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "tesco-grocery": {
      "command": "npx",
      "args": ["-y", "tesco-grocery-mcp"]
    }
  }
}

Claude Code

claude mcp add tesco-grocery -- npx -y tesco-grocery-mcp

Other MCP clients

Run the server on stdio:

npx -y tesco-grocery-mcp

Or if installed globally:

tesco-grocery

Authentication

The server requires a bearer token from an active Tesco.com session:

  1. Log in to tesco.com/groceries in your browser
  2. Open DevTools (F12) → Network tab
  3. Find any request to xapi.tesco.com and copy the Authorization header value and x-customer-uuid header value
  4. Use the set_auth_token tool to provide these credentials

Credentials are persisted locally so you only need to do this when your session expires.

See .env.example for the credential format.

Shopping Skill

The skills/SKILL.md file contains an optimised execution guide that teaches AI assistants how to efficiently handle a full weekly grocery shop — from searching to basket management to delivery slot booking. You can use it as a system prompt or reference for your own workflows.

License

MIT