OpenCatalog

Collega OpenCatalog al tuo assistente AI

OpenCatalog espone il catalogo come server MCP (Model Context Protocol) e come API REST. Le operazioni sono le stesse: chi le usa da un agente AI e chi le usa da uno script ottiene gli stessi dati.

Server MCP

Indirizzo: https://opencatalog.typelens.com/mcp (Streamable HTTP, senza autenticazione, sola lettura).

ChatGPT

  1. Impostazioni → App e connettori → Impostazioni avanzate: attiva la modalità sviluppatore.
  2. Crea un connettore: nome OpenCatalog, URL https://opencatalog.typelens.com/mcp, autenticazione Nessuna.
  3. In una chat, attiva il connettore dal menu + e chiedi ad esempio: «Chi vende il cuscinetto 6204-2RSH e a che prezzo?»

Claude

  1. Claude.ai o app desktop: Impostazioni → Connettori → Aggiungi connettore personalizzato.
  2. Nome OpenCatalog, URL https://opencatalog.typelens.com/mcp, poi abilitalo nella chat dal menu strumenti.
  3. Claude Code: claude mcp add --transport http opencatalog https://opencatalog.typelens.com/mcp

Strumenti disponibili

search_productsUse this when the user looks for an industrial part, spare part or consumable (bearings, lubricants, fasteners, pneumatics, electrical components, tools) and wants to know which supplier sells it, its code, price or availability. Full-text search over supplier catalogs by free text, supplier article code (sku) or manufacturer part number (mpn); exact code matches are ranked first. Optional filters: supplier, brand, category, price range. Prices are public list prices published by the supplier; always link the user to the product url to buy.
get_productUse this when you need all available data for one product (full description, specs, images, documents, price breaks, availability, supplier url), given its id or supplier + sku from search_products.
list_suppliersUse this when the user asks which suppliers or catalogs are available, or before filtering search_products by supplier. Returns each supplier with website, product count and last update.
list_categoriesUse this when the user wants to browse the catalog by category, or to find a valid category filter for search_products. Returns category paths ("A > B > C") with product counts.

Prova a mano

curl -s https://opencatalog.typelens.com/mcp -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_products","arguments":{"query":"6204-2RSH"}}}'

API REST

Specifica OpenAPI 3.1: https://opencatalog.typelens.com/api/v1/openapi.json. Ogni operazione è /api/v1/<nome>: quelle pubbliche accettano GET con parametri in query o POST con corpo JSON.

curl -s 'https://opencatalog.typelens.com/api/v1/search_products?query=cuscinetto+6204&limit=5'
curl -s 'https://opencatalog.typelens.com/api/v1/get_product?id=1'
curl -s https://opencatalog.typelens.com/api/v1/search_products -H 'Content-Type: application/json' -d '{"query":"olio idraulico","price_max":100}'
curl -s https://opencatalog.typelens.com/api/v1/list_suppliers

Operazioni riservate (token Authorization: Bearer …): upsert_products, delete_products, upsert_supplier, stats.

Uso dei dati

Prezzi, immagini e descrizioni appartengono ai fornitori. Mostra sempre all'utente il link url dell'articolo per acquistare sul sito del fornitore. Vedi i termini d'uso.