walmart-marketplace-mcp
An MCP server that lets you manage a Walmart Marketplace seller account in plain language, including orders, inventory, pricing, returns, WFS fulfillment, and reports.
README
walmart-marketplace-mcp
An MCP server that lets you manage a Walmart Marketplace (Seller) account in plain language from any MCP-compatible client (Claude Desktop, Cursor, etc.). It exposes 22 tools spanning the full seller workflow: orders (list, ship, cancel, refund), inventory, items/products, pricing, customer returns, WFS / Walmart Fulfillment Services (inbound shipments, labels, warehouse inventory), and on-request reports (item, inventory, performance, buy-box, and more).
It handles Walmart's OAuth 2.0 token flow for you: it exchanges your client ID/secret for a short-lived access token, caches it (~15 min), auto-refreshes it, and attaches the required WM_SEC.ACCESS_TOKEN / correlation-ID headers on every call. Credentials load from a local .env file (or your MCP client's env config), and the base URL is configurable so you can point it at production or Walmart's sandbox without a code change.
Built in Python with FastMCP. Write actions (ship, cancel, refund, price/inventory changes, retire, inbound shipments) are flagged destructive, and the riskiest ones require explicit confirmation.
Disclaimer: This is an independent, community-built project. It is not affiliated with, endorsed by, or sponsored by Walmart Inc. "Walmart" and "Walmart Marketplace" are trademarks of Walmart Inc. Use at your own risk — you are responsible for actions taken against your live seller account.
Tools
Orders
walmart_list_orders— list orders with status/SKU/date filters and cursor paginationwalmart_get_order— full detail for one order bypurchaseOrderIdwalmart_acknowledge_order— confirm receipt (required within 4h of an order)walmart_ship_order— mark line(s) shipped with tracking + carrierwalmart_cancel_order— cancel line(s) (destructive)walmart_refund_order— refund line(s) (destructive — moves money)
Items / Products
walmart_list_items— list catalog items with lifecycle/published filterswalmart_get_item— item detail by SKUwalmart_retire_item— remove a listing (destructive, requiresconfirm=true)
Inventory
walmart_get_inventory— available quantity for a SKUwalmart_update_inventory— set absolute quantity for a SKU
Pricing
walmart_update_price— set selling price (with optional strike-through comparison price)
Returns
walmart_list_returns— list customer returns with status/date filterswalmart_issue_return_refund— refund line(s) of a return (destructive — moves money)
WFS / Fulfillment (only relevant if you use Walmart Fulfillment Services)
walmart_get_wfs_inventory— on-hand stock in Walmart fulfillment centerswalmart_list_inbound_shipments— list shipments sent to WFSwalmart_get_inbound_shipment_items— per-SKU shipped vs received quantitieswalmart_get_inbound_shipment_label— WFS receiving label for a shipmentwalmart_create_inbound_shipment— create an inbound shipment (requiresconfirm=true)
Reports (on-request)
walmart_request_report— kick off an async report (ITEM, INVENTORY, ITEM_PERFORMANCE, BUYBOX, etc.)walmart_get_report_status— poll status (RECEIVED → INPROGRESS → READY)walmart_download_report— get the presigned download URL once READY
Prerequisites
- Python 3.10+ (the MCP SDK requires it). On macOS, the system/Xcode Python may be too old — install a current one via Homebrew (
brew install python) or python.org. - Walmart Marketplace API credentials (client ID + secret) from the Walmart Developer Portal.
Setup
git clone https://github.com/YOUR_USERNAME/walmart-marketplace-mcp.git
cd walmart-marketplace-mcp
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
Copy the env template and add your credentials:
cp .env.example .env
# then edit .env and fill in WALMART_CLIENT_ID and WALMART_CLIENT_SECRET
WALMART_BASE_URL defaults to production (https://marketplace.walmartapis.com). To test against Walmart's sandbox, set it to https://sandbox.walmartapis.com — no code change needed.
Verify your credentials
python3 -c "import asyncio, walmart_seller_mcp as m; print('Auth OK, token length:', len(asyncio.run(m._get_access_token())))"
If you see Auth OK, you're good to go.
Connect to Claude Desktop
Open Settings → Developer → Edit Config and add the server. Use absolute paths, and point command at the Python inside your virtualenv so it has the installed dependencies.
macOS / Linux — replace /Users/you with your actual home path:
{
"mcpServers": {
"walmart-marketplace": {
"command": "/Users/you/walmart-marketplace-mcp/.venv/bin/python",
"args": ["/Users/you/walmart-marketplace-mcp/walmart_seller_mcp.py"]
}
}
}
Windows — replace C:\\Users\\you with your actual home path:
{
"mcpServers": {
"walmart-marketplace": {
"command": "C:\\Users\\you\\walmart-marketplace-mcp\\.venv\\Scripts\\python.exe",
"args": ["C:\\Users\\you\\walmart-marketplace-mcp\\walmart_seller_mcp.py"]
}
}
}
Credentials are read from your .env file, so they don't need to go in this config. (Alternatively, you can drop a "env": { "WALMART_CLIENT_ID": "...", "WALMART_CLIENT_SECRET": "..." } block here instead of using .env.)
Fully quit and reopen Claude Desktop after editing the config — MCP servers only load on startup.
Tip: don't know your exact path? Run
pwdinside the project folder (macOS/Linux) orcd(Windows) and paste what it prints in place of the folder path above.
Usage examples
Once connected, just ask your MCP client things like:
- "List my Walmart orders from the last 7 days"
- "What orders still need to ship?"
- "Set inventory for SKU ABC123 to 40 units"
- "Mark down SKU ABC123 to $24.99 from $40"
- "Ship order 1796277083022 — UPS tracking 1Z..."
- "Any open customer returns?"
- "Request an inventory report"
Notes & safety
- Quantities are absolute.
walmart_update_inventorysets the on-hand amount; it does not add or subtract. - Destructive tools are flagged via MCP
destructiveHint.walmart_retire_itemandwalmart_create_inbound_shipmentadditionally requireconfirm=true. Cancel/refund act per order line. - Orders window: Walmart exposes ~180 days of order history.
- Reports are async: request → poll status (15–45 min) → download. Reports are retained 30 days.
- WFS tools only return data if you use Walmart Fulfillment Services; seller-fulfilled sellers can ignore them.
- Token caching is in-memory per process and refreshes automatically ~60s before expiry.
- Errors surface Walmart's own error body (truncated) so you can see exactly what it rejected.
Local testing
# Inspect tools visually with the MCP Inspector:
npx @modelcontextprotocol/inspector python3 walmart_seller_mcp.py
Contributing
Issues and PRs welcome. Some natural next additions:
- Feeds API for bulk price/inventory/item uploads (batch updates across many SKUs)
- Promotions management
- Shipping templates / lag-time settings
Please don't commit real credentials — .env is gitignored for that reason.
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。