Skip to main content
Glama
star-market-shaws-mcp

star-market-shaws-mcp

by swbehan
README.md
# star-market-shaws-mcp

Let Claude help with your Star Market or Shaw's grocery order. Claude can search your
store, compare prices and unit prices, and (in later versions) fill your online cart and
clip the coupons that match it. **It never checks out.** You review the cart and place the
order yourself, or use it as a shopping list.

Not affiliated with Albertsons, Star Market or Shaw's. See [Terms and risk](#terms-and-risk).

## What it can and can't do

| Can                                             | Can't, ever                                            |
| ----------------------------------------------- | ------------------------------------------------------ |
| Search products at your chosen store            | Place an order or pick a pickup/delivery slot          |
| Show price, sale price, unit price, size, stock | Touch payment                                          |
| Look up one product's details                   | See your password (you log in on the store's own site) |
| Check that it's connected and you're logged in  | Send anything anywhere except the store's own website  |

Coming next: read and fill your cart (Phase 2), coupons, "for U" deals and an order
planner with a cost breakdown (Phase 3).

### Tools

| Tool                | What it does                                               |
| ------------------- | ---------------------------------------------------------- |
| `connection_status` | Is the extension connected, which store, are you logged in |
| `search_products`   | Search your store (`query`, optional `limit` 1–30)         |
| `get_product`       | Details for one product by the id from a search            |

## How it works

Two small pieces run on your computer:

1. **A Chrome extension.** It makes requests from inside your own logged-in store tab, the
   same requests the website makes when you click around.
2. **An MCP server** that Claude Code starts. It talks to the extension over a local
   connection (`127.0.0.1`, never the internet) and accepts only this extension.

No passwords, no browser automation, no cloud service. See
[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).

## Setup

You need Node 22 or newer, Chrome, Claude Code, and a Star Market or Shaw's account.

It isn't on npm yet, so for now install from source:

```sh
git clone https://github.com/swbehan/star-market-shaws-mcp.git
cd star-market-shaws-mcp
npm install
npm run build
```

1. **Load the extension.** Run `node packages/server/dist/main.js extension-path` to see
   the folder. In Chrome open `chrome://extensions`, turn on **Developer mode**, click
   **Load unpacked**, and choose that folder.
2. **Add the server to Claude Code:**
   ```sh
   claude mcp add star-market -- node "$PWD/packages/server/dist/main.js"
   ```
3. **Log in** at [starmarket.com](https://www.starmarket.com/) or
   [shaws.com](https://www.shaws.com/) in that Chrome, and pick your store there if you
   haven't. Leave a store tab open.
4. **Ask Claude**, for example: "Check my Star Market connection, then find the cheapest
   bananas per pound."

The extension's toolbar popup shows whether it's connected.

When search runs, the extension opens a pinned background tab on the store's search page
and reads the results the page loads. It reuses that tab.

## Privacy

Only product and price information goes to Claude: names, prices, sizes, stock, coupon
counts, and your store's public name and town. Your name, email, address, ZIP code,
customer IDs and login token stay inside the extension. Details:
[docs/PRIVACY.md](docs/PRIVACY.md).

## Terms and risk

This uses the store website's own requests from your own browser, at a gentle pace (one
request at a time, at least half a second apart). It doesn't try to get around the site's
bot protection. Still, automated use may be against the store's terms of use, and the
website can change at any time and break this. Use it at your own risk.

If you'd rather not install anything, Claude in Chrome can browse the store site for you
directly.

## Contributing

See [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) and [AGENTS.md](AGENTS.md). Guides:
[adding a tool](docs/ADDING-A-TOOL.md), [adding a store](docs/ADDING-A-STORE.md).

## License

MIT