Skip to main content
UC

UCP

v0.1.3API Key

Universal Commerce Protocol do Google. Compra agêntica: busca de produto, carrinho, checkout, rastreamento de pedido e entrega.

20 ferramentas1 env vars🌐 GLOBALestável no npm

O que seu agente faz

O UCP dá ao seu agente 20 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer 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
Exemplo de chamada
// 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

Adicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).

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

Depois de reiniciar, seu agente pode chamar qualquer uma das 20 ferramentas abaixo — teste search_products primeiro.

Variáveis de ambiente · 1

Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.

UCP_API_KEY
obrigatóriosecret

API key for ucp

Ferramentas disponíveis · 20

Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.

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 compatíveis

MCP é um protocolo — qualquer framework que o fale pode montar este server.

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

Perguntas frequentes

Rode `npx -y @codespar/mcp-ucp` e adicione o bloco de config acima ao seu cliente MCP — Claude, Cursor, VS Code ou qualquer cliente compatível com MCP. Sem build, sem SDK. Prefere hospedado? O tier gerenciado da CodeSpar roda pra você, com a auth resolvida.
UCP — MCP server · 20 tools | CodeSpar