huggian-apis
# Huggian APIs — Official TypeScript SDKs & MCP Servers
Zero-dependency TypeScript SDKs and stdio **Model Context Protocol (MCP)** servers for Huggian's production REST APIs:
| Package | API | Docs & OpenAPI | Free API Key |
| :--- | :--- | :--- | :--- |
| **`@huggian/ez-catalog`** | **EZ Catalog** — Barcode lookup API (EAN-13, UPC-12, ISBN) fanning out across 87 sources with sub-ms cache | [Docs](https://huggian.com/ez-catalog/docs) · [OpenAPI JSON](https://huggian.com/ez-catalog/docs/openapi.json) | [Free key (no card)](https://huggian.com/catalog/signup) |
| **`@huggian/ez-rails`** | **EZ Rails** — Argentina Mercado Pago & bank transfer reconciliation, CBU/CVU validation, signed HMAC webhooks & ARCA electronic invoicing | [Docs](https://huggian.com/ez-rails/docs) · [OpenAPI JSON](https://huggian.com/ez-rails/docs/openapi.json) | [Free sandbox key](https://huggian.com/rails/signup) |
---
## 10-Second `curl` Quickstarts
### EZ Catalog (Barcode Lookup)
```bash
curl -H "X-Api-Key: YOUR_FREE_KEY" \
https://api.ez-catalog.huggian.com/v1/products/barcode/7790895000997
```
### EZ Rails (CBU/CVU Inspection & Transfer Matching)
```bash
curl -X POST https://api.ez-rails.huggian.com/rails/v1/cbu-cvu/inspect \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_SANDBOX_KEY" \
-d '{"cbuOrCvu":"0070000920000000000018"}'
```
---
## TypeScript SDK Usage
```ts
import { EzCatalogClient } from './packages/ez-catalog/src/index';
import { EzRailsClient, verifyWebhookSignature } from './packages/ez-rails/src/index';
const catalog = new EzCatalogClient({ apiKey: process.env.EZ_CATALOG_API_KEY });
const product = await catalog.getByBarcode('7790895000997');
const rails = new EzRailsClient({ apiKey: process.env.EZ_RAILS_API_KEY, sourceApp: 'my-app' });
const inspection = await rails.inspectCbuCvu('0070000920000000000018');
```
---
## MCP Server Config (Claude Desktop / Cursor / Claude Code)
All MCP tools are strictly read-only (`readOnlyHint: true`, `destructiveHint: false`) and run with zero external dependencies on Node 20+:
```json
{
"mcpServers": {
"ez-catalog": {
"command": "node",
"args": ["/path/to/huggian-apis/packages/ez-catalog/bin/ez-catalog-mcp.js"],
"env": { "EZ_CATALOG_API_KEY": "your-free-key" }
},
"ez-rails": {
"command": "node",
"args": ["/path/to/huggian-apis/packages/ez-rails/bin/ez-rails-mcp.js"],
"env": { "EZ_RAILS_API_KEY": "ezr_test_your-sandbox-key" }
}
}
}
```
## Postman & RapidAPI Import
Import either OpenAPI 3.1 URL directly into **Postman** or **RapidAPI Hub**:
- `https://huggian.com/ez-catalog/docs/openapi.json`
- `https://huggian.com/ez-rails/docs/openapi.json`
## License
MIT © Huggian
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: single barcode lookup, batch barcode lookup, text search, and category listing. The single-vs-batch lookup pair is explicitly differentiated by the tool names and descriptions. There is no meaningful overlap that would cause misselection.
All tools follow a predictable catalog_verb_noun convention: lookup_barcode, lookup_batch, search_products, list_categories. The shared catalog_ prefix and consistent snake_case formatting make the set easy to scan.
Four tools are well-scoped for a catalog lookup/search service, with each tool covering a distinct operation. Nothing feels redundant or conspicuously missing from the count itself.
The surface covers the core read-only catalog workflows: barcode lookup, batch lookup, text search, and category enumeration. Minor gaps exist, such as retrieving a product by internal ID or filtering searches by category, but agents can work around these via search and category listing.