PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversecommerce-and-retailkroger-mcp
返回「ecommerce-and-retail」

kroger-mcp

modelscope·@CupOfOwls/kroger-mcp

ecommerce-and-retail0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

Kroger MCP Server -- FastMCP for Kroger Shopping

Logo

A FastMCP server that provides AI assistants like Claude with access to Kroger's grocery shopping functionality through the Model Context Protocol (MCP). This server enables AI assistants to find stores, search products, manage shopping carts, and access Kroger's comprehensive grocery data via the kroger-api python library.

Demo

Using Claude with this MCP server to search for stores, find products, and add items to your cart:

https://github.com/user-attachments/assets/69055f5f-04f5-4ec1-96ac-330aa288fbd1

Changelog

A changelog with recent changes is here.

Quick Start

Prerequisites

You will need Kroger API credentials (free from Kroger Developer Portal). Visit the Kroger Developer Portal to:

  1. Create a developer account
  2. Register your application
  3. Get your CLIENT_ID, CLIENT_SECRET, and set your REDIRECT_URI

The first time you run a tool requiring user authentication, you'll be prompted to authorize your app through your web browser. You're granting permission to your own registered app, not to any third party.

Installation

macOS users must use installation Option 2

Option 1: Using uvx with Claude Desktop (Recommended)

Once published to PyPI, you can use uvx to run the package directly without cloning the repository:

Edit Claude Desktop's configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Linux: ~/.config/Claude/claude_desktop_config.json

Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "kroger": {
      "command": "uvx",
      "args": [
        "kroger-mcp"
      ],
      "env": {
        "KROGER_CLIENT_ID": "your_client_id",
        "KROGER_CLIENT_SECRET": "your_client_secret", 
        "KROGER_REDIRECT_URI": "http://localhost:8000/callback",
        "KROGER_USER_ZIP_CODE": "10001"
      }
    }
  }
}

Benefits of this method:

  • Automatically installs the package from PyPI if needed
  • Creates an isolated environment for running the server
  • Makes it easy to stay updated with the latest version
  • Doesn't require maintaining a local repository clone

Option 2: Using uv with a Local Clone

First, clone locally:

git clone https://github.com/CupOfOwls/kroger-mcp

Then, edit Claude Desktop's configuration file:

{
  "mcpServers": {
    "kroger": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/cloned/kroger-mcp",
        "run",
        "kroger-mcp"
      ],
      "env": {
        "KROGER_CLIENT_ID": "your_client_id",
        "KROGER_CLIENT_SECRET": "your_client_secret", 
        "KROGER_REDIRECT_URI": "http://localhost:8000/callback",
        "KROGER_USER_ZIP_CODE": "10001"
      }
    }
  }
}

Option 3: Installing From PyPI

# Install with uv (recommended)
uv pip install kroger-mcp

# Or install with pip
pip install kroger-mcp

Option 4: Installing From Source

# Clone the repository
git clone https://github.com/CupOfOwls/kroger-mcp
cd kroger-mcp

# Install with uv (recommended)
uv sync

# Or install with pip
pip install -e .

Configuration

Create a .env file in your project root or pass in env values via the JSON config:

# Required: Your Kroger API credentials
KROGER_CLIENT_ID=your_client_id_here
KROGER_CLIENT_SECRET=your_client_secret_here
KROGER_REDIRECT_URI=http://localhost:8000/callback

# Optional: Default zip code for location searches
KROGER_USER_ZIP_CODE=90274

Running the Server

# With uv (recommended)
uv run kroger-mcp

# With uvx (directly from PyPI without installation)
uvx kroger-mcp

# Or with Python directly
python server.py

# With FastMCP CLI for development
fastmcp dev server.py --with-editable .

Features

Built-In MCP Prompts

  • Shopping Path: Find optimal path through store for a grocery list
  • Pharmacy Check: Check if pharmacy at preferred location is open
  • Store Selection: Help user set their preferred Kroger store
  • Recipe Shopping: Find recipes and add ingredients to cart

Available Tools

Location Tools

ToolDescriptionAuth Required
search_locationsFind Kroger stores near a zip codeNo
get_location_detailsGet detailed information about a specific storeNo
set_preferred_locationSet a preferred store for future operationsNo
get_preferred_locationGet the currently set preferred storeNo
check_location_existsVerify if a location ID is validNo

Product Tools

ToolDescriptionAuth Required
search_productsSearch for products by name, brand, or other criteriaNo
get_product_detailsGet detailed product information including pricingNo
search_products_by_idFind products by their specific product IDNo
get_product_imagesGet product images from specific perspective (front, back, etc.)No

Cart Tools

ToolDescriptionAuth Required
add_items_to_cartAdd a single item to cartYes
bulk_add_to_cartAdd multiple items to cart in one operationYes
view_current_cartView items currently in your local cart trackingNo
remove_from_cartRemove items from local cart trackingNo
clear_current_cartClear all items from local cart trackingNo
mark_order_placedMove current cart to order historyNo
view_order_historyView history of placed ordersNo

Information Tools

| Tool | Description | Auth Required | |------|----------…

相关 MCP Servers(来自「ecommerce-and-retail」)

对话购物MCP

一种MCP服务器,它将人工智能助手连接到SearchAgora,使用户能够通过自然语言对话在网页上搜索、发现和购买产品。

@Fewsats/agora-mcp

多平台商品搜索

一个服务器,它通过BigGo的价格比较API,实现跨多个电子商务平台搜索产品、追踪价格历史以及比较产品规格的功能。

@Funmula-Corp/BigGo-MCP-Server

优步外卖AI下单助手

一个概念验证的模型上下文协议服务器,使大型语言模型应用程序能够与Uber Eats互动,允许人工智能代理通过自然语言浏览和订购食物。

@ericzakariasson/uber-eats-mcp-server

Actors 微云服务器

使用 Apify 提供的 3,000 多种预构建云工具(称为 Actors),从网站、电子商务平台、社交媒体、搜索引擎、地图等提取数据。

@apify/actors-mcp-server

bayarcash-mcp-server

暂无描述。

@khairulimran-97/bayarcash-mcp-server

bayarcash-mcp-server

暂无描述。

@webimpianteam/bayarcash-mcp-server

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/cupofowls-kroger-mcp/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

Benefits of this method: - Automatically installs the package from PyPI if needed - Creates an isolated environment for running the server - Makes it easy to stay updated with the latest version - Doesn't require maintaining a local repository clone #### Option 2: Using uv with a Local Clone First, clone locally: ```bash git clone https://github.com/CupOfOwls/kroger-mcp

基本信息

分类
ecommerce-and-retail / app-automation
运行方式
No
许可证
MIT License
详情文件
cupofowls-kroger-mcp.md