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 分

    請在儲存庫或註冊中心條目中宣告授權條款。