Skip to main content
UC

UCP

v0.1.3API Key

Universal Commerce Protocol de Google. Compra agéntica: búsqueda de producto, carrito, checkout, rastreo de pedido y entrega.

20 herramientas1 env vars🌐 GLOBALestable en npm

Qué puede hacer tu agente

UCP le da a tu agente 20 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • search_productsSearch merchant product catalog. Supports text query, category filters, price range, and sorting.
  • get_productGet detailed product information including pricing, variants, availability, and reviews
  • check_availabilityCheck product stock and delivery availability for a specific location
Ejemplo de llamada
// 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", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-ucp

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

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

Después de reiniciar, tu agente puede llamar cualquiera de las 20 herramientas de abajo — probá search_products primero.

Variables de entorno · 1

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

UCP_API_KEY
obligatoriosecret

API key for ucp

Herramientas disponibles · 20

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

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

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Cualquier cliente MCPProtocolo

Preguntas frecuentes

Corré `npx -y @codespar/mcp-ucp` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
UCP — MCP server · 20 tools | CodeSpar