Family Grocery MCP
MCP server for family meal planning and Kroger/King Soopers shopping. It helps generate weekly dinner plans, consolidate grocery lists, flag allergy risks, estimate costs, search live products, and add approved items to a Kroger cart.
README
Family Grocery MCP
An MVP proof of concept for a family meal-planning and Kroger/King Soopers shopping assistant.
The project is intentionally split into two layers:
references/kroger-mcp/: cloned upstream Kroger MCP reference.src/family_grocery_mcp/: our family-specific planning, allergy review, shopping-list, budget, and cart-prep layer.
Current MVP
This first pass works without Kroger credentials by using a small mock catalog. It can:
- Load a household profile from
data/household_profile.json - Suggest a Mediterranean-leaning weekly dinner plan
- Generate leftover lunches
- Consolidate a grocery list from selected meals
- Match grocery items to mock products
- Flag egg, peanut, and tree-nut allergy risks
- Estimate total cost against a monthly budget
- Search live Kroger/King Soopers locations and products
- Prepare a conservative approved-cart list from live product matches
- Start and complete Kroger cart OAuth
- Add only approved, non-review items to the Kroger cart after explicit confirmation
- Expose the workflow as MCP tools when dependencies are installed
Quick Demo
python3 -m family_grocery_mcp.cli demo
If running directly from the repo without installing, use:
PYTHONPATH=src python3 -m family_grocery_mcp.cli demo
Live Kroger Public API Checks
After creating .env, validate credentials without printing secrets:
PYTHONPATH=src python3 -m family_grocery_mcp.cli validate-kroger
Search nearby stores:
PYTHONPATH=src python3 -m family_grocery_mcp.cli locations --zip 80005
Search products at a selected store:
PYTHONPATH=src python3 -m family_grocery_mcp.cli products "greek yogurt" --location-id "YOUR_LOCATION_ID"
Preview the seed meal plan with live Kroger product matches:
PYTHONPATH=src python3 -m family_grocery_mcp.cli preview-live --location-id "YOUR_LOCATION_ID"
Live compact product search does not reliably include full ingredient lists, so packaged foods are marked for review by default. Raw produce, meat, and seafood can be treated as lower-risk matches, but checkout still remains manual.
MCP Server
Install dependencies once:
uv sync
Run the MCP server:
uv run family-grocery-mcp
Claude Desktop/Codex MCP config can use:
{
"mcpServers": {
"family-grocery": {
"command": "uv",
"args": [
"--directory",
"/Users/kkaminky/Documents/Grocery Shopper",
"run",
"family-grocery-mcp"
]
}
}
}
Current MCP tools include:
plan_weekpreview_shoppingvalidate_krogersearch_kroger_locationssearch_krogerpreview_live_shoppingstart_kroger_cart_authcomplete_kroger_cart_authkroger_cart_auth_statusprepare_kroger_cartadd_approved_items_to_kroger_cartadd_single_item_to_kroger_cart
Cart OAuth and Add-To-Cart
Start cart authentication:
uv run family-grocery cart-auth-start
Open the returned URL, log in, then copy the final redirected URL and run:
uv run family-grocery cart-auth-complete "PASTE_FULL_REDIRECT_URL_HERE"
Preview what would be added:
uv run family-grocery cart-preview --dinners 2
Add only approved, non-review items to the real Kroger cart:
uv run family-grocery cart-add-approved --dinners 2 --confirm
Add one explicit test item by UPC:
uv run family-grocery cart-add-item 0000000094053 --quantity 1 --confirm
Items flagged for missing ingredient data, egg, peanut, or tree-nut risk are skipped.
Kroger Developer Setup
Create a Kroger developer app before live cart testing:
-
Go to Kroger Developer.
-
Sign in or create a developer account.
-
Open My Apps / Manage Apps and create a new application.
-
Set the OAuth redirect URI exactly to:
http://localhost:8000/callback -
Enable/request these scopes:
product.compact cart.basic:write profile.compact -
Copy the client ID and client secret into a local
.envfile:cp .env.example .envThen edit
.envlocally. Do not commit secrets.
The public Kroger API can add items to a cart, but it cannot fully view or remove cart contents. This assistant keeps local tracking and expects a human to review the real cart before checkout.
MCP Configuration
Once dependencies are installed, point Claude Desktop or another MCP client at:
{
"mcpServers": {
"family-grocery": {
"command": "uv",
"args": [
"--directory",
"/Users/kkaminky/Documents/Grocery Shopper",
"run",
"family-grocery-mcp"
],
"env": {
"FAMILY_GROCERY_PROFILE": "/Users/kkaminky/Documents/Grocery Shopper/data/household_profile.json",
"KROGER_USER_ZIP_CODE": "80005"
}
}
}
}
Next Build Steps
- Import recipes from PDFs and URLs.
- Persist approved products, substitutions, and rejected products.
- Improve quantity/package math for produce and meat.
- Add a small review UI for allergy uncertainty and budget tradeoffs.
- Add recipe/meal-plan editing instead of only seed meals.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.