Target

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

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

概览

AI 生成的概览

Target 零售购物连接器,让助手通过浏览器自动化搜索商品、管理购物车并追踪订单。

可以做什么
搜索并浏览 Target 商品,可按分类、价格区间与排序条件筛选,并获取商品详情。查询商品在附近门店的门店自提库存。登录、登出并查看 Target 账号的登录状态与会话信息。将商品加入购物车、查看或清空购物车。预览或实际提交订单,并查看订单记录与追踪配送状态。
适用场景
当你想让助手在 Target.com 上搜索商品、比价、查询门店库存,或管理购物车与订单时使用。适合已有 Target 账号、愿意以浏览器自动化方式操作的用户。
运行要求
需在本机以 Node.js 运行 npm 包(npx 或全局安装),并通过 stdio 连接。需有 Target 账号,登录时提供邮箱与密码。需网络连接,且内置 Playwright 与 Chromium 浏览器。
安装前请注意
登录工具要求 Target 账号的邮箱与密码;密码不会保存,但会话 Cookie 与账号元数据会存放在用户主目录。checkout 设为 confirm 为 true 时会提交真实订单并产生费用,务必先预览。加入、清空购物车与登出会更改账号数据。使用伪装补丁绕过机器人检测,可能违反网站条款,且首次登录可能遇到验证码。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@striderlabs/mcp-target

MCP (Model Context Protocol) server connector for Target retail shopping. Enables AI assistants to search products, manage carts, and track orders on Target.com via browser automation.

Installation

bash
npx @striderlabs/mcp-target

Or install globally:

bash
npm install -g @striderlabs/mcp-target

MCP Configuration

Add to your MCP client config (e.g., Claude Desktop claude_desktop_config.json):

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

Tools

status

Check Target authentication status and session info.

Parameters: none


login

Authenticate with your Target account via browser automation.

Parameters:

NameTypeRequiredDescription
emailstring✅Target account email
passwordstring✅Target account password
headlessbooleanRun browser headlessly (default: true). Set false to see the browser window.

Credentials are never stored — only session cookies are persisted to ~/.striderlabs/target/.


logout

Clear session cookies and log out.

Parameters: none


search_products

Search Target products with optional filters and sorting.

Parameters:

NameTypeRequiredDescription
querystring✅Search term
categorystringCategory filter (e.g., electronics)
min_pricenumberMinimum price filter
max_pricenumberMaximum price filter
sort_bystringSort order: relevance, price_low, price_high, newest, bestselling
limitnumberMax results (default: 10, max: 24)

get_product

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

Parameters:

NameTypeRequiredDescription
urlstringFull Target product URL
tcinstringTarget product TCIN/item ID

Provide either url or tcin.


check_store_availability

Check if a product is available for in-store pickup at nearby Target stores.

Parameters:

NameTypeRequiredDescription
tcinstringTarget product TCIN
urlstringProduct URL
zip_codestringZIP code for nearby store search

Provide either url or tcin.


add_to_cart

Add a product to your Target cart.

Parameters:

NameTypeRequiredDescription
urlstringTarget product URL
tcinstringTarget product TCIN
quantitynumberQuantity (default: 1)
fulfillmentstringpickup, shipping, or delivery (default: shipping)

Requires login.


view_cart

View current cart contents and totals.

Parameters: none Requires login.


clear_cart

Remove all items from cart.

Parameters: none Requires login.


checkout

Preview or place a Target order.

Parameters:

NameTypeRequiredDescription
confirmbooleanSet true to place the order. Default false (preview only).

Requires login. Always preview first before confirming.


get_orders

Get order history.

Parameters:

NameTypeRequiredDescription
limitnumberNumber of recent orders (default: 10)

Requires login.


track_order

Track an order's status and delivery information.

Parameters:

NameTypeRequiredDescription
order_idstring✅Target order ID

Requires login.


Session Storage

Session cookies are stored at ~/.striderlabs/target/:

  • cookies.json — Browser session cookies
  • auth.json — Account metadata (email, login timestamp)

Credentials (email/password) are never persisted.

Technical Details

  • Transport: stdio (MCP standard)
  • Browser automation: Playwright with Chromium + stealth patches
  • Stealth: Patches navigator.webdriver, plugins, permissions, and other bot-detection vectors
  • Cookie persistence: Survives across sessions; no repeated logins needed

Notes

  • Target.com may prompt for CAPTCHA or additional verification on first login. Use headless: false to handle these interactively.
  • Store availability and cart operations require geolocation; defaults to Chicago, IL.
  • The checkout tool with confirm: true will place a real order. Always preview first.

License

MIT — Strider Labs

来源:README.md,提交 dc2e290

工具

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

版本历史

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

评分

已满足适用检查项的 40%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

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