Skip to main content
UC

UCP

v0.1.3API Key

Universal Commerce Protocol by Google. Agentic shopping: product search, cart, checkout, order tracking, and delivery.

20 tools1 env vars🌐 GLOBALstable on npm

What your agent can do

UCP gives your agent 20 tools it calls directly β€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • search_products β€” Search merchant product catalog. Supports text query, category filters, price range, and sorting.
  • get_product β€” Get detailed product information including pricing, variants, availability, and reviews
  • check_availability β€” Check product stock and delivery availability for a specific location
Example call
// Your agent calls a tool directly β€” no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("search_products", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-ucp

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "ucp": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-ucp"
      ],
      "env": {
        "UCP_API_KEY": "<your_ucp_api_key>"
      }
    }
  }
}

After restart, your agent can call any of the 20 tools below β€” try search_products first.

Environment variables Β· 1

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

UCP_API_KEY
requiredsecret

API key for ucp

Available tools Β· 20

Each tool is independent β€” your agent loads only what it needs to reduce context and response time.

READsearch_products
Search merchant product catalog. Supports text query, category filters, price range, and sorting.
READget_product
Get detailed product information including pricing, variants, availability, and reviews
READcheck_availability
Check product stock and delivery availability for a specific location
READlist_merchants
List UCP-compatible merchants with optional category and region filters
WRITEcreate_cart
Create a new shopping cart for a merchant
WRITEadd_to_cart
Add an item to the shopping cart
DELETEremove_from_cart
Remove an item from the shopping cart
READget_cart
Get cart contents, item totals, taxes, and shipping estimates

Compatible frameworks

MCP is a protocol β€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-ucp` and add the config block above to your MCP client β€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
UCP β€” MCP server Β· 20 tools | CodeSpar