wegmans-mcp-cloudflare-workers
Provides search capabilities over Wegmans product catalog and store information via Algolia APIs, enabling tools to search products, browse categories, and retrieve details such as prices, aisles, and ratings.
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., "@wegmans-mcp-cloudflare-workerssearch Wegmans for oat milk"
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.
wegmans-mcp-cloudflare-workers
A remote Model Context Protocol server for Wegmans, hosted on Cloudflare Workers. It searches products and stores, manages one user's cart, syncs purchase history, and predicts what may be needed next.
One Worker serves a bearer-protected, stateless /mcp endpoint. A Durable Object owns the Wegmans access and refresh tokens, while KV stores purchase history.
MCP client ──Bearer──▶ Worker ──▶ Wegmans and Algolia APIs
│
├── Durable Object: login tokens
└── KV: purchase historySetup
npm install
npx wrangler login
npx wrangler kv namespace create DATA # prints the namespace idCopy wrangler.jsonc to wrangler.local.jsonc (gitignored) and fill in three values: the custom domain (a hostname on a zone you manage in Cloudflare), the KV namespace id from above, and your default WEGMANS_STORE number (use the find_stores tool to look it up). Deploy with WRANGLER_CONFIG=wrangler.local.jsonc npm run deploy — or edit wrangler.jsonc in place if you don't care about keeping those out of git. The custom-domain route creates the DNS record on first deploy.
Your Wegmans customer ID is a UUID assigned to your account. Log into wegmans.com, open DevTools (F12), select the Network tab, find a request to algolia.net, and copy the userToken value from its request body.
Related MCP server: pantry-agent
Deploy
npm run deploy
npx wrangler secret put WEGMANS_EMAIL
npx wrangler secret put WEGMANS_PASSWORD
npx wrangler secret put WEGMANS_CUSTOMER_ID
openssl rand -hex 32 | tee /dev/stderr | npx wrangler secret put MCP_BEARERThe first authenticated tool call logs in through Microsoft Azure B2C. Check status with:
curl -s https://wegmans.example.com/healthThen call sync_purchase_history once before using the purchase-pattern tools.
Tools
Tool | Auth | Description |
| No | Search products, prices, aisles, and ratings |
| No | Get one product by ID |
| No | Browse a department or category |
| No | Find stores by name, city, state, ZIP, or number |
| No | List frequently purchased products from synced history |
| Yes | Add a product to the Wegmans cart |
| Yes | Paste a grocery list; adds only what's missing from the cart, preferring products you've bought before ( |
| No | A markdown note of your food preferences ("Wegmans brand when available", "no pork", …). Stored in KV and sent to every MCP client as server instructions on connect, so agents respect it without being told. |
| Yes | View the current cart |
| Yes | Sync receipts, online orders, and rankings |
| No | Analyze purchase intervals and urgency |
| No | Predict items needed soon |
| No | Show one product's purchase timeline |
Raw HTTP
The endpoint uses stateless Streamable HTTP and returns SSE-framed MCP responses.
curl -s https://wegmans.example.com/mcp -X POST \
-H 'Authorization: Bearer <MCP_BEARER>' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'Local development
cp .dev.vars.example .dev.vars
npm run check
npx wrangler devDummy local secrets are enough for /health, product search, and authorization checks. Cart calls return an MCP error result until valid Wegmans credentials are supplied.
Limits and notes
The Wegmans password is a Worker secret and is sent only to Microsoft's Wegmans Azure B2C login endpoint.
/mcprequiresMCP_BEARER;/and/healthare public.One sync runs inline. Cloudflare Workers Paid permits 1,000 subrequests per request; split syncing into Durable Object alarm batches if an account exceeds that order ceiling.
Product availability, pricing, and aisle locations depend on
WEGMANS_STORE, which defaults to133.
License
MIT. See LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Household-aware cooking brain: pantry, meal suggestions, dietary safety, recipes, shopping lists.
Turn any shopping list into a ready-to-checkout grocery cart across 26 European supermarkets.
AI-powered kitchen management — pantry, recipes, meal plans, shopping lists
Unlock the power of food transparency with our Open Food Facts MCP server. Easily look up any food
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables agentic grocery shopping on Oda (Norway) and Mathem (Sweden) platforms through an MCP-compatible interface. Users can search for products, manage their shopping cart, and access order history using natural language commands.1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server for grocery shopping at Kroger-owned stores, enabling product search, store finder, cart management, and more through AI assistants.7 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage a shared shopping list by adding, viewing, updating, and deleting products for different people via MCP tools.-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to read current pantry inventory and low-stock shopping needs, export a shopping queue, and perform idempotent inventory adjustments and catalog link management through remote MCP tools.MIT