Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.closient.com/llms.txt

Use this file to discover all available pages before exploring further.

Closient exposes the same product graph through two surfaces: a hosted Model Context Protocol server and an HTTPS REST API. They cover the same data; they’re optimised for different consumers.

Should I use the MCP server or the REST API?

If you’re…Use
Building an AI agent (Claude, Cursor, IDE assistant, custom MCP client)MCP server
Integrating product lookup into a backend serviceREST API
Embedding barcode resolution in a mobile or web appREST API
Connecting a no-code workflow tool (n8n, Make, Zapier)REST API
Hooking a desktop AI app into product dataMCP server
Building a CLI that humans run interactivelyEither — REST is simpler for non-AI tools
The rough rule: if the consumer is an LLM, use MCP. If the consumer is code you wrote, use REST.

What’s the difference between an AI agent calling MCP and an AI agent calling the REST API?

Both work; the AI client experience is what differs. MCP gives the agent a tool list at connect time, with structured input/output schemas and human-readable descriptions. The agent picks tools by name and the LLM doesn’t need any “how to call this API” documentation in its prompt — the protocol handles tool discovery, parameter validation, and result framing. REST forces you to put the API surface into the agent’s prompt (or its function-calling schema), which costs tokens and means every release of the agent needs an updated tool definition. For agents that already speak MCP — Claude Code, Cursor, Claude Desktop, VS Code, Windsurf — MCP is strictly less work.

What can each surface do?

CapabilityMCPREST
Validate a GTINvalidate_gtinGET /products/api/v1/products?gtin=...
Resolve a GTINresolve_gtinGET /01/<gtin>
Look up product datalookup_productGET /products/api/v1/products/<id>
Natural-language searchsearch_productsPOST /search/api/v1/sessions
Compare productscompare_productsMultiple GET /products calls + client-side join
Check local availabilitycheck_availabilityGET /retailers/api/v1/offers
Generate Digital Link QRgenerate_qr_url (OAuth)POST /api/v1/qr-codes (API key)
Create / edit catalog dataNot exposedPOST / PATCH endpoints
Webhooks / event streamsNot exposed/integrations/webhooks
Bulk operationsNot exposedPagination + batch endpoints
The MCP surface is intentionally narrower — agent-facing, read-oriented, plus one authenticated write (QR URL generation). The REST API is the full surface for everything else.

How do auth and rate limits compare?

AspectMCPREST
Default authNone (most tools)API key required
Authenticated tools / endpointsOAuth 2.1 step-upX-API-Key: <prefix>_<body>_<checksum>
Rate limitShared backend limits300/min, 10,000/day per key
Client registrationCIMD / DCR / pre-registrationDashboard → Settings → API Keys

Can I use both?

Yes — and many integrations do. A common pattern:
  • MCP server for the agent’s read path (lookup, search, resolve).
  • REST API for the backend that owns mutations (catalog edits, webhook subscriptions, bulk imports) where you don’t want LLM-induced side effects.
Auth is independent — the OAuth tokens minted for the MCP write tool and the API keys minted for the REST API live in different namespaces and have different scopes.

Where do I go next?

MCP Install

One-command install for every supported MCP client.

API Reference

Eighteen domain APIs with interactive playgrounds.

Quickstart

First REST API call in under five minutes.

MCP Quickstart

First MCP tool call in under two minutes.