Kroger MCP Server
Kroger MCPサーバー
Krogerの公開APIとClaudeを統合し、ミールプランの買い物リストをKrogerのカートに直接追加できるようにします。
ツール
ツール | 機能 |
| 郵便番号から近くのKroger店舗を検索し、 |
| 商品カタログを検索し、UPC、価格、通路を返します |
| UPCを指定して商品をカートに追加します |
| 買い物リスト全体を一度に検索して追加します |
| 保存されたトークンをクリアします(再認証が必要な場合) |
Related MCP server: Tiv Taam MCP Server
セットアップ
ステップ 1 — Kroger Developer Portalでアプリを登録する
https://developer.kroger.com にアクセスします
Register App をクリックします
以下を入力します:
App Name:
Meal Plan Assistant(任意)Redirect URI:
http://localhost:8080/callbackScopes:
product.compact,cart.basic:write,profile.compact
Client ID と Client Secret をコピーします
ステップ 2 — 依存関係のインストール
cd kroger_mcp
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txtステップ 3 — 環境変数の設定
export KROGER_CLIENT_ID=your_client_id_here
export KROGER_CLIENT_SECRET=your_client_secret_here
export KROGER_REDIRECT_URI=http://localhost:8080/callbackこれらをシェルプロファイル(~/.zshrc または ~/.bashrc)に追加して永続化します。
ステップ 4 — Claudeへの接続
ClaudeのMCP設定(Macの場合は通常 ~/Library/Application Support/Claude/claude_desktop_config.json)に追加します:
{
"mcpServers": {
"kroger": {
"command": "/path/to/kroger_mcp/venv/bin/python",
"args": ["/path/to/kroger_mcp/server.py"],
"env": {
"KROGER_CLIENT_ID": "your_client_id",
"KROGER_CLIENT_SECRET": "your_client_secret",
"KROGER_REDIRECT_URI": "http://localhost:8080/callback"
}
}
}
}保存後、Claude Desktopを再起動してください。
初回利用 — OAuthログイン
Claudeに初めてカートへの商品追加を依頼すると:
ブラウザがKrogerのログインページを開きます
Krogerアカウントでログインします
リダイレクトURLをターミナルに貼り付けます
完了 — トークンが
~/.kroger_mcp_tokens.jsonに保存されます
その後は、保存されたリフレッシュトークンを使用して、Claudeがバックグラウンドでカートに追加できるようになります。
使用例
接続が完了したら、Claudeに次のように話しかけることができます:
「近くのKroger店舗を探して、今週の買い物リストをカートに追加して」
Claudeは以下の処理を行います:
郵便番号を使用して
kroger_find_storeを呼び出しますすべてのアイテムを指定して
kroger_add_grocery_listを呼び出します追加されたもの、スキップされたもの、および発生した問題を報告します
セキュリティに関する注意点
Client IDとSecretはあなた自身のものです(あなたのアカウントで登録されます)
トークンはローカルの
~/.kroger_mcp_tokens.jsonに保存されます(権限: 600)サードパーティのコードは介在せず、Krogerの公式APIを直接呼び出します
必要に応じて
kroger_clear_authで保存されたすべてのトークンを削除できます
トラブルシューティング
「Missing environment variables」 — KROGER_CLIENT_ID と KROGER_CLIENT_SECRET を設定してください
「Authorization expired」 — 操作を再試行してください。サーバーが自動的にリフレッシュします
「No matching product found」 — 検索語を短くしてみてください(例: 「Private Selection Baby Spinach」ではなく「spinach」)
レート制限 (HTTP 429) — Krogerはリクエスト数を制限しています。30秒待ってから再試行してください
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
AI meal plans that fill your Kroger/Instacart cart - pantry-aware lists, all from chat.
Your recipes, family meal plan and shopping list from Foodie, in ChatGPT, Claude and Codex.
Log meals, water, and weight to Garmin Connect from Claude or ChatGPT.
AnyList MCP server for ChatGPT, Claude and any AI agent: list shopping lists, add list item, cross off item, read recipe, create recipe, add recipe to meal plan and add meal plan ingredients to list in your own AnyList account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to AnyList yourself; Cotlet does not store your password and you need no AnyList API key. About the official AnyList API: AnyList has no public API, developer docs or official MCP server (checked 25 Oct 2026). The official connections are voice entry with Siri and Amazon Alexa, and an iCalendar link that shows your meal plan in a calendar app. Setup and FAQ: https://cotlet.dev/integrations/anylist-api-mcp-server
Related MCP Servers
- AlicenseCqualityDmaintenanceAutomated grocery shopping assistant with intelligent unit pricing and automatic coupon clipping, enabling AI to search products, manage carts, and plan grocery runs via Claude Desktop or CLI.181-
- FlicenseNot gradedqualityDmaintenanceEnables shopping at Tiv Taam grocery store through Claude, including recipe parsing and cart population.-
- AlicenseNot gradedqualityBmaintenanceEnables AI models to manage Kroger/QFC shopping lists, search products, and plan meals via the Kroger API.1MIT
- AlicenseAqualityDmaintenanceEnables AI agents to search products, manage shopping carts, clip digital coupons, check fuel points, schedule delivery/pickup, and place grocery orders with Kroger.1551 npm2MIT