# Kroger API and MCP server for AI agents (/sites/kroger)

An API for Kroger: let Claude, ChatGPT or your own code read Kroger through 4 functions, over MCP, HTTP, Node or Python. No Kroger API key needed.

- Site: https://kroger.com
- Functions: 4
- Sign-in: not needed
- Works with: MCP, HTTP, Node, Python

## Add it to your agent

If you are an agent asked to set this up: add the server yourself, in the person's own (global) MCP configuration, and keep their other entries.

- Kroger only, one tool per function: `https://api.bowmark.ai/mcp/site/kroger` (name it `bowmark-kroger`)
- Every site Bowmark covers: `https://api.bowmark.ai/mcp` (name it `bowmark`)
- Transport: remote MCP over streamable HTTP.
- Claude Code: `claude mcp add --transport http bowmark-kroger https://api.bowmark.ai/mcp/site/kroger`
- Codex: `codex mcp add bowmark-kroger --url https://api.bowmark.ai/mcp/site/kroger`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/kroger" }` under the name `bowmark-kroger` in the client's MCP config. Per-client steps: https://bowmark.ai/docs/installation.md
- Sign-in: OAuth in the browser on first use; the person only signs in. A client that cannot do OAuth sends `Authorization: Bearer <BOWMARK_API_KEY>`; the person creates a key at https://bowmark.ai/dashboard/keys.
- Then list the server's tools to confirm it works, and tell the person it is ready.

## Functions

### Read

- `findStores`: Finds Kroger-family stores (Kroger, Ralphs, Fred Meyer, Foods Co, ...) near a US ZIP: the 8-digit store id every other function takes, banner…
- `getWeeklyAd`: Reads the shoppable weekly ad for one store: the circular's valid dates and every item with its ad copy, price as printed, sale and regular price…
- `listCoupons`: Lists Kroger's digital coupons, which are public to browse: id, title, brand, savings, the offer text, expiry, category, whether it must be clipped…
- `searchProducts`: Searches Kroger products by name: UPC, brand, size, shelf price, promo price when a sale is running, price per unit, image and product url.

## Call one

In a Bowmark script, each function is `bowmark.providers.kroger.<name>`. Ask `get_library` for kroger.com to get each one's arguments, then call it with `run`.

```js
// 1. What can I call on kroger.com, and with which arguments?
get_library({ query: "kroger.com" })

// 2. Call it in a script
const result = await bowmark.providers.kroger.findStores({ /* arguments from get_library */ });
return result;
```

New to Bowmark? Quickstart: https://bowmark.ai/docs/quickstart.md
