Ucp

Finance and commerce

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

Your AI app calls the Ucp MCP server, which does the finance and commerce work and sends the result back to the chat.

About Ucp

Ucp is a community MCP server from codespar, filed in our directory under finance and commerce. Google UCP, agentic shopping, cart, checkout, orders, delivery.

Ucp runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-ucp@0.1.4 and talks to it over standard input and output. It needs UCP_API_KEY set before Ucp starts.

Ucp is listed in the official MCP registry as io.github.codespar/mcp-ucp, version 0.1.4.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-ucp
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-ucp

How to set up Ucp

  1. Install Node.js on the machine that runs your AI app, because Ucp starts with npx and downloads its package on first run.
  2. Create UCP_API_KEY for Ucp in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Ucp to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Ucp tools to confirm the connection.
  5. Run one read-only task with Ucp first, and keep your app asking before each tool call until the results look right.

Ucp compared with similar servers

  • Unblockpay by codespar has fewer GitHub stars than Ucp (278 against 278); both are community servers, and both run locally.
  • Transbank by codespar has fewer GitHub stars than Ucp (278 against 278); both are community servers, and both run locally.
  • Unico by codespar has fewer GitHub stars than Ucp (278 against 278); both are community servers, and both run locally.

Before you connect Ucp

  • Give Ucp its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Ucp tool call until you trust what it does with them.
  • Treat text that Ucp fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Ucp on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Ucp

How marketing and sales teams put Ucp to work, by company size. Pick the size closest to yours and start Ucp on one use case.

Small business

  • A small business can ask Ucp which products and customers drive margin, then plan promotions around them.
  • Owners can use Ucp to check refunds, failed payments and churn reasons without opening three dashboards.
  • Ucp runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Ucp to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Ucp to check spend against budget each week and move money to what's working.
  • Start Ucp on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Ucp read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Ucp to answer revenue questions by channel and region with figures finance signs off on.
  • Ucp is a community server, so have security review the code and pin a version before Ucp touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Ucp README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@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

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
{
  "mcpServers": {
    "ucp": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-ucp"],
      "env": {
        "UCP_API_KEY": "your-key",
        "UCP_MERCHANT_ID": "your-merchant-id"
      }
    }
  }
}
Claude Code
claude mcp add ucp -- npx @codespar/mcp-ucp

Tools (20)

Tool Purpose
search_products Search merchant product catalog.
get_product Get detailed product information including pricing, variants, availability, and reviews
check_availability Check product stock and delivery availability for a specific location
list_merchants List UCP-compatible merchants with optional category and region filters
create_cart Create a new shopping cart for a merchant
add_to_cart Add an item to the shopping cart
remove_from_cart Remove an item from the shopping cart
get_cart Get cart contents, item totals, taxes, and shipping estimates
clear_cart Remove all items from the cart
get_delivery_options Get available shipping and delivery options for a cart
initiate_checkout Start the checkout process for a cart.
apply_payment Apply a payment method to the checkout session.
confirm_order Confirm and place the order.
get_order Get order details including items, status, payment, and shipping info
list_orders List orders with optional filters
cancel_order Cancel a pending or confirmed order
request_return Request a return or refund for a delivered order
track_shipment Get real-time shipment tracking details for an order
link_identity Link buyer identity for personalization and order history across merchants
get_profile Get 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

Variable Required Description
UCP_API_KEY Yes Sent as Authorization: Bearer
UCP_MERCHANT_ID No Sent as the X-Merchant-Id header
UCP_SANDBOX No true 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

Questions about Ucp

What is the Ucp MCP server?

Google UCP, agentic shopping, cart, checkout, orders, delivery. Ucp is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Ucp MCP server?

Add Ucp to your AI app's MCP config with the command npx -y @codespar/mcp-ucp@0.1.4. In Claude Code, run claude mcp add --transport stdio codespar-ucp -- npx -y @codespar/mcp-ucp@0.1.4. To run Ucp this way you need Node.js installed.

Does Ucp need an API key?

Yes. Ucp expects UCP_API_KEY to be set. Create the key for Ucp in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Ucp an official MCP server?

No. Ucp is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Ucp access to company data.

What license is Ucp under?

Ucp is released under the MIT license, according to its GitHub repository. The license covers the code of Ucp; the service it connects to has its own terms.