Mcp Ucp

io.github.codespar由 GitHub 账号 codespar 发布v0.1.4更新于 Oct 27, 2026

Google UCP — agentic shopping, cart, checkout, orders, delivery

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

已弃用的 Google UCP 智能体电商 MCP 服务器,提供商品、购物车、结账、订单与配送工具,但不连接任何在线服务。

可以做什么
  • 搜索商家商品目录,读取商品详情、价格、规格与库存
  • 列出商家,并按地点查询库存与配送可用性
  • 创建、添加、查看、清空购物车,获取配送选项
  • 发起结账、应用支付方式并确认下单
  • 查看、列出、取消订单,申请退货并追踪物流
  • 关联买家身份,读取买家资料与偏好
适用场景
仅适合参考或试验 UCP 工具接口,或你已有可用的 UCP 兼容端点可供指向。README 说明该包已弃用且没有任何工具会访问服务,因此目前无法用于真实购物。
运行要求
通过 npx 从 npm 包 @codespar/mcp-ucp 本地运行(需要 Node.js)。必须提供环境变量 UCP_API_KEY,以 Bearer 令牌发送;可选 UCP_MERCHANT_ID 与 UCP_SANDBOX。还需通过 UCP_BASE_URL 指定可用地址,因为默认的 Google 端点返回 404 或 TLS 握手失败。
安装前请注意
该包在 npm 上已弃用,且没有工具会访问真实服务。UCP_API_KEY 会作为 Bearer 凭据随每次请求发送,README 称没有门户签发此类凭据。工具包含结账、支付、确认下单、取消与退货,若配置了真实端点将产生消费或改动订单数据。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@codespar/mcp-ucp

Deprecated: no live endpoint. Measured on 2026-09-27: commerce.googleapis.com answers every path with Google's generic Error 404 (Not Found) page, and sandbox.commerce.googleapis.com (used with UCP_SANDBOX=true) fails the TLS handshake, because the certificate served there covers *.googleapis.com and not the extra label. UCP is an open specification, not an API Google hosts. No tool in this server reaches a service. The package is deprecated on npm and stays in this repository for reference only. If you have a working endpoint, point the server at it with UCP_BASE_URL. To bring the package back, open an issue in mcp-dev-latam with the provider's documented base URL.

MCP server for Google UCP — Universal Commerce Protocol for agentic shopping, cart, checkout, orders, and delivery

[npm] [License: MIT]

What is UCP?

Universal Commerce Protocol (UCP) is Google's open standard for agentic commerce. It enables AI agents to autonomously discover products, build carts, checkout, manage orders, and track deliveries — without screen-scraping or bespoke merchant integrations.

UCP works alongside AP2 (payment processing) and A2A (agent-to-agent interoperability), with MCP as the transport layer.

Quick Start

Claude Desktop

json
{  "mcpServers": {    "ucp": {      "command": "npx",      "args": ["-y", "@codespar/mcp-ucp"],      "env": {        "UCP_API_KEY": "your-key",        "UCP_MERCHANT_ID": "your-merchant-id"      }    }  }}

Claude Code

bash
claude mcp add ucp -- npx @codespar/mcp-ucp

Tools (20)

ToolPurpose
search_productsSearch merchant product catalog.
get_productGet detailed product information including pricing, variants, availability, and reviews
check_availabilityCheck product stock and delivery availability for a specific location
list_merchantsList UCP-compatible merchants with optional category and region filters
create_cartCreate a new shopping cart for a merchant
add_to_cartAdd an item to the shopping cart
remove_from_cartRemove an item from the shopping cart
get_cartGet cart contents, item totals, taxes, and shipping estimates
clear_cartRemove all items from the cart
get_delivery_optionsGet available shipping and delivery options for a cart
initiate_checkoutStart the checkout process for a cart.
apply_paymentApply a payment method to the checkout session.
confirm_orderConfirm and place the order.
get_orderGet order details including items, status, payment, and shipping info
list_ordersList orders with optional filters
cancel_orderCancel a pending or confirmed order
request_returnRequest a return or refund for a delivered order
track_shipmentGet real-time shipment tracking details for an order
link_identityLink buyer identity for personalization and order history across merchants
get_profileGet buyer profile, preferences, and linked merchants

UCP + AP2 + A2A — The Full Stack

AI Agent  └── MCP (tool interface)       └── UCP (commerce: discover → cart → checkout → order → delivery)            ├── A2A (agent-to-agent discovery & communication)            └── AP2 (payment: authorize → execute → settle)

Environment Variables

VariableRequiredDescription
UCP_API_KEYYesSent as Authorization: Bearer
UCP_MERCHANT_IDNoSent as the X-Merchant-Id header
UCP_SANDBOXNotrue switches BASE_URL to https://sandbox.commerce.googleapis.com/ucp/v1, which fails TLS

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

Authentication

The server sends UCP_API_KEY as an Authorization: Bearer header and UCP_MERCHANT_ID as an X-Merchant-Id header on every request (src/index.ts:78-83).

There is no portal issuing those credentials. The developer portal this README used to link, developers.google.com/agents/commerce, answers HTTP 404.

License

MIT

来源:packages/payments/ucp/README.md,提交 d0a519a

工具

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

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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