# mcp-ucp

An MCP server for UCP shopping flows, from product search to orders and delivery. The package is deprecated and has no live endpoint at present.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 274
- Author: codespar
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/payments/ucp
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-ucp

## What it does

mcp-ucp is intended to expose Google UCP commerce actions to an AI agent. Its tool set covers product discovery, product details, stock and delivery checks, cart changes, checkout, payment, orders, returns, shipment tracking, and buyer identity. There are 20 tools in total.

The package is deprecated because its current endpoint does not serve a working UCP service, so these tools cannot reach a commerce backend now. A working provider can be supplied through `UCP_BASE_URL`; requests use `UCP_API_KEY` as a Bearer token and may include `UCP_MERCHANT_ID` as the merchant header. Without a live UCP endpoint, catalog and order requests will fail.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `UCP_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-ucp -e UCP_API_KEY=<UCP_API_KEY> -- npx -y @codespar/mcp-ucp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add ucp --env UCP_API_KEY=<UCP_API_KEY> -- npx -y @codespar/mcp-ucp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "ucp": {
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-ucp"
            ],
            "env": {
                "UCP_API_KEY": "<UCP_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "ucp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-ucp"
            ],
            "env": {
                "UCP_API_KEY": "<UCP_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e UCP_API_KEY=<UCP_API_KEY> ucp npx -y @codespar/mcp-ucp
```
Replace <…> with your own values

## When to use it
- search a merchant product catalog
- check stock and delivery for a location
- build a cart and review shipping options
- start checkout and confirm an order
- track a shipment or request a return

## Example prompts
- Search the merchant catalog for a product and show its price, variants, and availability.
- Create a cart, add the selected item, and list the delivery options.
- Look up the order status and shipment details.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 124 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
