Walmart

io.github.markswendsen-code由 GitHub 账号 markswendsen-code 发布v0.1.1更新于 Oct 24, 2026

MCP server for Walmart - search products, manage cart, track orders

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

概览

AI 生成的概览

本地 MCP 服务器,通过浏览器操作 Walmart.com,让助手搜索商品、管理购物车并查看订单。

可以做什么
  • 搜索与查看商品:按价格、排序和结果数量筛选搜索,并通过链接或商品 ID 获取详情
  • 设置配送或自提地址,影响商品可售范围与价格
  • 管理购物车:加入商品、查看内容与合计、修改数量、移除商品
  • 结算预览:返回含小计、税费和总计的订单摘要,但不实际下单
  • 订单跟踪:列出最近的订单记录
  • 管理账户会话:查看登录状态、用邮箱和密码登录、退出并清除已存 Cookie
适用场景
适合让助手协助 Walmart 的食品杂货或日用品采购:按预算或饮食偏好搭建购物车、比较商品,并汇总金额或订单状态供你确认。
运行要求
通过 npx 或全局 npm 安装后在本地运行;需要 Node.js 18 或更高版本,以及由 Playwright 自动安装的 Chromium。登录工具需要 Walmart 账户的邮箱和密码。会话 Cookie 与认证信息保存在用户主目录下的本地目录中。
安装前请注意
登录工具以参数形式接收 Walmart 账户邮箱和密码,会话会持久化到本地文件,应将这些文件视为机密。购物车操作会写入真实账户。服务器带有用于规避机器人检测的伪装补丁,可能与 Walmart 的服务条款冲突。结算仅做预览,实际购买需手动完成。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@striderlabs/mcp-walmart

MCP server connector for Walmart retail shopping — search products, manage cart, and track orders via browser automation.

For Agents

This connector enables autonomous shopping on behalf of your human. Agents can:

  • Know what to buy: Understand shopping lists, dietary preferences, budget constraints, and seasonal needs
  • Search intelligently: Find products with filters (price, ratings) and compare options
  • Execute efficiently: Build a cart, review totals, and hand off for final purchase confirmation
  • Track orders: Monitor delivery status and notify the user when items arrive

Example agent workflow:

User: "I need groceries for the week. My budget is $100, and I need vegetarian options."

Agent executes:

  1. set_address → Get local store availability
  2. search → "organic vegetables", max_price: 50
  3. search → "rice, pasta, beans" with filters
  4. get_product → Check nutrition and price for each
  5. add_to_cart → Build optimized cart under $100
  6. checkout → Review total ($94.32) and return summary to user
  7. User approves → Agent completes purchase

All in one seamless agent turn.

Overview

This package provides a Model Context Protocol (MCP) server that enables AI agents to interact with Walmart.com through Playwright browser automation with stealth features to avoid bot detection.

Installation

bash
npx @striderlabs/mcp-walmart

Or install globally:

bash
npm install -g @striderlabs/mcp-walmartmcp-walmart

MCP Configuration

Add to your MCP client configuration:

json
{  "mcpServers": {    "walmart": {      "command": "npx",      "args": ["@striderlabs/mcp-walmart"]    }  }}

Tools

status

Check Walmart authentication status and session info.

No parameters required.

json
{}

login

Authenticate with your Walmart account using email and password via browser automation.

ParameterTypeRequiredDescription
emailstringYesWalmart account email
passwordstringYesWalmart account password
headlessbooleanNoRun browser headless (default: true). Set false to see the browser window.

logout

Clear Walmart session and stored cookies.

No parameters required.


set_address

Set delivery or pickup address for Walmart. Affects product availability and pricing.

ParameterTypeRequiredDescription
zip_codestringNo*ZIP code (e.g., "90210")
addressstringNo*Full address (e.g., "123 Main St, Chicago, IL 60601")

*At least one of zip_code or address is required.


search

Search Walmart products by query with optional filters.

ParameterTypeRequiredDescription
querystringYesSearch term
min_pricenumberNoMinimum price filter
max_pricenumberNoMaximum price filter
sort_bystringNoSort order: relevance, price_low, price_high, best_seller, rating_high
limitnumberNoMax results (default: 10, max: 24)

get_product

Get detailed product information including price, description, and availability.

ParameterTypeRequiredDescription
urlstringNo*Full Walmart product URL
item_idstringNo*Walmart product item ID

*At least one of url or item_id is required.


add_to_cart

Add a product to the Walmart cart.

ParameterTypeRequiredDescription
urlstringNo*Walmart product URL
item_idstringNo*Walmart product item ID
quantitynumberNoQuantity to add (default: 1)

*At least one of url or item_id is required.


view_cart

View current Walmart cart contents and totals.

No parameters required.


update_cart

Update the quantity of an item in the Walmart cart.

ParameterTypeRequiredDescription
quantitynumberYesNew quantity (must be >= 1)
item_idstringNo*Walmart product item ID
product_namestringNo*Partial product name to match

*At least one of item_id or product_name is required.


remove_from_cart

Remove a specific item from the Walmart cart.

ParameterTypeRequiredDescription
item_idstringNo*Walmart product item ID
product_namestringNo*Partial product name to match

*At least one of item_id or product_name is required.


checkout

Preview checkout summary for the Walmart cart. Returns order details without placing the order.

No parameters required.

Note: This tool intentionally does not place the order. It returns the order summary (items, subtotal, tax, total) so you can review before proceeding manually.


get_orders

Get Walmart order history.

ParameterTypeRequiredDescription
limitnumberNoNumber of recent orders to return (default: 10)

Session Persistence

Cookies and auth info are stored in ~/.striderlabs/walmart/ and persist across sessions. Once logged in, subsequent tool calls reuse the existing session without re-authenticating.

Technical Details

  • Transport: stdio (standard MCP transport)
  • Browser: Chromium via Playwright with stealth patches
  • Bot detection bypass: Removes webdriver flag, spoofs plugins/languages, patches permissions API
  • Session storage: ~/.striderlabs/walmart/cookies.json and ~/.striderlabs/walmart/auth.json

Requirements

  • Node.js >= 18.0.0
  • Chromium (installed automatically with Playwright)

License

MIT — Strider Labs

来源:README.md,提交 d8e1deb

工具

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

版本历史

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

评分

已满足适用检查项的 40%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

    请在仓库或注册中心条目中声明许可证。