Texas Grocery

io.github.mgwalkerjr95由 GitHub 账号 mgwalkerjr95 发布v0.1.3更新于 Oct 24, 2026

MCP server for HEB grocery store integration - search products, manage carts, clip coupons, and more

已验证STDIO仅桌面浏览器自动化商业与电商

概览

AI 生成的概览

将 AI 助手连接到 H-E-B 超市,可搜索门店与商品、管理购物车并领取电子优惠券。

可以做什么
  • 按地址或邮编查找 H-E-B 门店并设置默认门店
  • 搜索商品及价格与库存,支持批量搜索,并查看配料、营养、过敏原和膳食属性
  • 查看、添加、批量添加和移除购物车商品,修改需确认
  • 列出、搜索、领取并查看已领取的电子优惠券
  • 检查、刷新、保存凭据和清除 H-E-B 会话
适用场景
适合在 H-E-B 购物的用户,希望助手通过对话查询商品与价格、核对配料或过敏原、组建购物车或收集优惠券,而不必手动浏览网站。
运行要求
以本地 Python 包运行(pip install texas-grocery-mcp);安装 browser 附加组件和 Playwright Chromium 可加快会话刷新。购物车与会话管理还需通过 npm 安装 Playwright MCP 服务器。可选环境变量 HEB_DEFAULT_STORE、REDIS_URL 和 LOG_LEVEL。购物车与优惠券操作需要 H-E-B 账户。
安装前请注意
使用针对 HEB.com 的非官方网页接口和浏览器自动化,与 H-E-B 无关联,使用方式可能与网站条款冲突。购物车和优惠券工具会改动真实账户数据,coupon_clip 与 cart_add 需传入 confirm 参数。session_save_credentials 会把 H-E-B 邮箱和密码存入系统钥匙串以便自动登录。H-E-B 的机器人检测会使会话约每 11 分钟失效。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Texas Grocery,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

🛒 Texas Grocery MCP

[PyPI version] [License: MIT] [CI]

🤖 Let AI do your grocery shopping! An MCP server that connects Claude to H-E-B grocery stores.

Search products, manage your cart, clip coupons, and more — all through natural conversation.

⚠️ This project is not affiliated with H-E-B. It uses unofficial web APIs and browser automation against HEB.com; use responsibly and ensure your usage complies with applicable terms and laws.


✨ Features

FeatureDescription
🏪 Store SearchFind HEB stores by address or zip code
🔍 Product SearchSearch products with pricing and availability
🛒 Cart ManagementAdd/remove items with human-in-the-loop confirmation
📋 Product DetailsIngredients, nutrition facts, allergens, warnings
🎟️ Digital CouponsList, search, and clip coupons to save money
🔄 Auto Session RefreshHandles bot detection automatically (~15 seconds)

📦 Installation

Quick Start

bash
pip install texas-grocery-mcp

Full Installation (Recommended) 🚀

bash
pip install texas-grocery-mcp[browser]playwright install chromium

This enables fast auto-refresh (~15 seconds) using an embedded browser.

Prerequisites

For cart operations and session management, you'll also need Playwright MCP:

bash
npm install -g @anthropic-ai/mcp-playwright

⚙️ Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "playwright": {      "command": "npx",      "args": ["@anthropic-ai/mcp-playwright"]    },    "heb": {      "command": "uvx",      "args": ["texas-grocery-mcp"],      "env": {        "HEB_DEFAULT_STORE": "590"      }    }  }}

Environment Variables

VariableDescriptionDefault
HEB_DEFAULT_STOREDefault store IDNone
REDIS_URLRedis cache URLNone (in-memory)
LOG_LEVELLogging levelINFO

🎯 Usage Examples

🏪 Finding a Store

User: Find HEB stores near Austin, TX
Agent uses: store_search(address="Austin, TX", radius_miles=10)

🔍 Searching Products

User: Search for organic milk
Agent uses: store_change(store_id="590")Agent uses: product_search(query="organic milk")

📋 Getting Product Details

User: What are the ingredients in H-E-B olive oil?
Agent uses: product_search(query="heb olive oil")Agent uses: product_get(product_id="127074")# Returns: ingredients, nutrition facts, warnings, dietary attributes

The product_get tool returns:

  • 🥗 Ingredients - Full ingredient statement
  • 📊 Nutrition Facts - Complete FDA panel
  • ⚠️ Safety Warnings - Allergen info and precautions
  • 🌿 Dietary Attributes - Gluten-free, organic, vegan, kosher, etc.
  • 📍 Store Location - Aisle or section

🛒 Adding to Cart

User: Add 2 gallons of milk to my cart
Agent uses: cart_add(product_id="123456", quantity=2)# Returns preview for confirmation
Agent uses: cart_add(product_id="123456", quantity=2, confirm=true)# ✅ Added to cart!

🎟️ Clipping Coupons

User: Find coupons for cereal
Agent uses: coupon_search(query="cereal")Agent uses: coupon_clip(coupon_id="ABC123", confirm=true)# ✅ Coupon clipped!

🔐 Session Management

HEB uses bot detection that expires every ~11 minutes. This MCP handles it automatically!

⚡ Fast Auto-Refresh (Recommended)

With [browser] support installed:

Agent uses: session_refresh()# ✅ Completes in ~10-15 seconds

🔑 Auto-Login

Save your credentials once for automatic login:

Agent uses: session_save_credentials(email="[email protected]", password="...")# Credentials stored securely in system keyring# Future session refreshes will auto-login!

🧰 Available Tools

🏪 Store Tools

ToolDescription
store_searchFind stores by address
store_changeSet preferred store
store_get_defaultGet current default store

🔍 Product Tools

ToolDescription
product_searchSearch products with pricing
product_search_batchSearch multiple products (up to 20)
product_getGet detailed product info

🛒 Cart Tools

ToolDescription
cart_check_authCheck authentication status
cart_getView cart contents
cart_addAdd item (requires confirmation)
cart_add_manyBulk add multiple items
cart_removeRemove item

🎟️ Coupon Tools

ToolDescription
coupon_listList available coupons
coupon_searchSearch coupons by keyword
coupon_clipClip a coupon
coupon_clippedList your clipped coupons

🔐 Session Tools

ToolDescription
session_statusCheck session health
session_refreshRefresh/login session
session_save_credentialsSave credentials for auto-login
session_clearLogout

📚 Documentation


🛠️ Development

bash
# Clone repositorygit clone https://github.com/mgwalkerjr95/texas-grocery-mcpcd texas-grocery-mcp
# Install with dev dependenciespip install -e ".[dev]"playwright install chromium
# Run testspytest tests/ -v
# Linting & type checkingruff check src/mypy src/

🐳 Docker

bash
docker-compose up --build

🏗️ Architecture

┌─────────────────────────────────────────────────────────────┐│                    User's MCP Environment                    ││                                                             ││  ┌─────────────────────┐    ┌─────────────────────────────┐ ││  │  🎭 Playwright MCP  │    │   🛒 Texas Grocery MCP      │ ││  │  (Browser Auth)     │───▶│   (Grocery Logic)           │ ││  └─────────────────────┘    └─────────────────────────────┘ ││                                        │                     │└────────────────────────────────────────┼─────────────────────┘                                         │                                         ▼                                   🌐 HEB GraphQL API

📄 License

MIT © Michael Walker


Made with ❤️ in Texas 🤠

来源:README.md,提交 13de41c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分