restrackit-pantry-mcp
OfficialClick 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., "@restrackit-pantry-mcpI bought eggs and milk, add them to my pantry."
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.
restrackit-pantry-mcp
A remote MCP server that turns a snapshot of a grocery receipt into an up-to-date household pantry. Talk to Claude, snap a photo of your receipt or just say what you bought or used, and it tracks quantities on your behalf — no barcode scanning, no manual data entry, no rigid expiry-date bookkeeping.
Built on top of restrackit-core, restrackit's own inventory-traceability backend, reused here purely through its public REST API — this project ships no changes to that codebase.
How it works
Claude is multimodal, so it reads the receipt photo itself: no OCR pipeline
to build or maintain. For every line item it estimates a plausible expiry
date and storage location — dispensa (pantry), frigo (fridge), or
congelatore (freezer); other values are accepted but get a generic
fallback shelf life instead of a tuned one — from general knowledge, then
calls this server to persist it.
restrackit-pantry-mcp is a thin, fully stateless translation layer — it
holds no database of its own and defers every fact about inventory to
restrackit-core.
Claude (Desktop/mobile)
│ reads the receipt photo / listens to a spoken update
│ estimates category + plausible expiry date per item
▼
restrackit-pantry-mcp (AWS Lambda + API Gateway, MCP Streamable HTTP)
│ translates tool calls into authenticated REST requests
▼
restrackit-core REST APIRelated MCP server: Kitchen MCP
Tools exposed
Tool | Purpose |
| Record a purchase — creates the product/category/storage method if missing, one batch per unit |
| Return how much of each product is currently on hand |
| Close out units of a product you've used up (oldest first) |
There's no dedicated "shopping list" tool — ask Claude what you're low on
and it reasons over get_pantry_status in the conversation.
Multi-tenancy
A single deployment of this server can serve any number of independent
restrackit-core stores, each isolated from the others: one Lambda, one API
Gateway endpoint, no per-store infrastructure to provision. Each tenant
authenticates with their own Keycloak account (created by
restrackit-core's onboarding flow) — pantry-mcp holds no shared credential
that can address every store, so a routing bug here can misdirect a
request to the wrong store, but it can never authenticate as a different
tenant's account. Isolation is enforced by two per-tenant records, both
keyed by store_id:
a DynamoDB entry (
PantryMcpTenants) mapping the tenant's bearer token to theirstore_id;a Secrets Manager secret (
pantry-mcp/tenants/<store_id>) holding that tenant's own Keycloak username/password.
See pantry_mcp/tenants.py, pantry_mcp/credentials.py, and
docs/superpowers/specs/2026-09-23-multi-tenant-design.md for the design
rationale.
One-time setup (per tenant)
Create the tenant's store on restrackit-core (requires an
ADMIN_ALLaccount):curl -X POST https://api.restrackit.example.com/v1/onboarding/stores \ -H "Authorization: Bearer <admin token>" \ -H "Content-Type: application/json" \ -d '{"store_name": "<store name>", "manager": {"username": "<tenant-username>", "email": "<unique email>"}}'Use a unique email per tenant — Keycloak rejects duplicates. Note down the returned
store_idand the response'stemporary_password.This is the account pantry-mcp will use for this tenant only. Unlike a shared admin account, it has no access to any other store.
The returned password is temporary (
UPDATE_PASSWORDrequired action) — password grant rejects it as-is. Log in once interactively (e.g. via restrackit-core's own login flow) as<tenant-username>to set a permanent password. This one-time step is per tenant, not per deployment.Generate a bearer token and register the tenant — this writes both the DynamoDB entry and the Secrets Manager secret:
TOKEN=$(python -c "import secrets; print(secrets.token_urlsafe(32))") python scripts/add_tenant.py "<tenant name>" <store_id> "$TOKEN" "<tenant-username>" "<permanent-password>"Give the tenant the
ApiUrl(from the CDK output) and their bearer token to register as a Custom Connector in Claude (Desktop/mobile).
Deployment
Infrastructure is defined as AWS CDK (Python) under infra/:
cd infra
uv venv .venv && source .venv/bin/activate
uv pip install --python .venv -r requirements.txt
cdk deploy \
--parameters KeycloakUrl=... \
--parameters KeycloakRealm=... \
--parameters KeycloakClientId=... \
--parameters RestrackitBaseUrl=...Take the ApiUrl output for tenants' connector URLs, and TenantsTableName
for use with scripts/add_tenant.py.
Development
uv sync --extra dev
uv run pytestThis server cannot be deployed
Maintenance
Related MCP Connectors
AI-powered kitchen management — pantry, recipes, meal plans, shopping lists
Household-aware cooking brain: pantry, meal suggestions, dietary safety, recipes, shopping lists.
AI meal plans that fill your Kroger/Instacart cart - pantry-aware lists, all from chat.
Scraps Kitchen gives any AI agent a persistent, household-aware kitchen memory. Unlike generic chatbot recall, Scraps maintains structured cooking data: what's in your fridge (with freshness tracking), who you cook for (with allergens, dietary restrictions, and preferences), your recipe collection (with cook notes and per-diner ratings), your shopping list, and your kitchen equipment. 27 tools across 6 domains let agents read kitchen context, suggest meals that respect dietary safety, update the pantry after cooking, and build a history of what works for your household. Every interaction makes the data richer. Cooking history, preference signals, kitchen awareness = better suggestions next time. All tools work via oAuth and a free scraps.kitchen account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered household management including inventory tracking, restock predictions, meal planning from available ingredients, and baby supply monitoring through natural language commands.Apache 2.0
- FlicenseNot gradedqualityCmaintenanceYour digital kitchen, powered by AI. Track what you have, discover what you can cook, and get guided through every recipe — step by step, timer by timer.-
- AlicenseNot gradedqualityBmaintenanceEnables households to manage appliance inventories, manuals, warranties, and maintenance through natural-language voice interactions, with grounded troubleshooting and consumable reordering.MIT
- AlicenseNot gradedqualityCmaintenanceGives Alexa+ persistent, structured memory of a household kitchen: tracking purchased groceries, flagging items at risk of spoiling, proposing rescue meals from expiring ingredients, and maintaining shopping lists, receipt ingestion, and waste reports through MCP tool calls. Storage, tool logic, and safety controls (consent gates, two-step deletion, rate limiting) are exposed over Streamable HTTP for any MCP client.MIT