Setup · about ten minutes
Set up kroger-mcp
These steps run the server on your own machine for Claude Code. To use it from claude.ai, the desktop app or your phone, see Hosting it for other devices.
- Docker
- Kroger shopping account
- Kroger developer app (free)
-
Create a Kroger developer app
Sign up at developer.kroger.com. This developer account is separate from your shopping account.
Open My Apps → Create App and give the app the Product, Cart, Profile and Locations APIs. Add this redirect URI:
REDIRECT URIhttp://localhost:8080/kroger/callbackThen copy the app's Client ID and Client Secret.
-
Configure
Download docker-compose.yml into a new folder and create a
.envfile next to it:.ENVKROGER_CLIENT_ID=your-client-id KROGER_CLIENT_SECRET=your-client-secret -
Run it
TERMINAL$ docker compose up -dThis pulls
ghcr.io/philosowaffle/kroger-mcp:latest(amd64 and arm64) and keeps the linked account's tokens in a Docker volume. The sample file only listens on127.0.0.1. -
Connect Claude
TERMINAL$ claude mcp add --transport http kroger http://localhost:8080 -
Link your Kroger account
Ask Claude to “link my Kroger account”. Open the URL it gives you, sign in with your shopping account and approve. Kroger sends you back to the server, which stores and refreshes the tokens. A link lasts about six months.
Then ask Claude to find your store and make it your default, and you're ready to shop.
Optional
Hosting it for other devices
claude.ai, the desktop app and the mobile apps connect from Anthropic's servers, so they need a public HTTPS URL for the server. Before you expose it:
- Turn on MCP auth with your own identity provider (for example Authelia), so only you can use the server. See Security.
- Register
https://your-host/kroger/callbackas a redirect URI on the Kroger app and setKROGER_REDIRECT_URIto match it exactly. - Add a custom connector in Claude pointing at your server's URL.
The full configuration reference is in the README, and identity provider setup is in docs/authentication.md.