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 分