Branche les outils Lodwave (scoring produit, générateur de pubs, calcul de marge, détection de tendances) dans n'importe quel client compatible MCP.
Le package @xlab-ecom/mcp est un petit serveur stdio qui permet aux clients MCP (Claude Desktop, Cursor, Continue, Claude Code) d'appeler notre API REST avec une vraie sémantique d'outils. Ta clé reste sur ta machine — on ne voit pas la conversation.
Installe-le globalement pour que les clients MCP puissent spawn le binaire `xlab-mcp`.
npm install -g @xlab-ecom/mcp
Ouvre le fichier de config (chemin macOS ci-dessous ; sous Windows c'est %APPDATA%\Claude\claude_desktop_config.json) et ajoute une entrée sous mcpServers :
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"xlab-ecom": {
"command": "xlab-mcp",
"env": {
"XLAB_API_KEY": "xlab_pk_live_..."
}
}
}
}Redémarre Claude Desktop après modification. Les outils apparaissent dans le menu slash.
Même forme de config, autre fichier :
~/.cursor/mcp.json
{
"mcpServers": {
"xlab-ecom": {
"command": "xlab-mcp",
"env": {
"XLAB_API_KEY": "xlab_pk_live_..."
}
}
}
}Ajoute le serveur depuis le CLI :
claude mcp add xlab-ecom \ --command xlab-mcp \ --env XLAB_API_KEY=xlab_pk_live_...
Ouvre ~/.continue/config.json et fusionne l'extrait :
{
"models": [],
"mcpServers": {
"xlab-ecom": {
"command": "xlab-mcp",
"env": {
"XLAB_API_KEY": "xlab_pk_live_..."
}
}
}
}Huit outils sont enregistrés dès que le serveur démarre.
xlab_chatSend a message to the Lodwave agent and stream back a reply.
xlab_score_productScore a product on 10 weighted criteria (margin, wow factor, etc.).
xlab_generate_ad_copyMeta + TikTok ad variants with hooks, headlines, CTAs.
xlab_calculate_profitUnit + monthly profit + break-even and target ROAS.
xlab_generate_email_sequenceWelcome / abandon-cart / post-purchase / win-back templates.
xlab_detect_trendsTrending brands + ads in a niche via BrandSearch.
xlab_list_brandsList the caller's brand workspaces.
xlab_usageCurrent API usage and plan limits.
Bugs, demandes de features ou cas tordus côté MCP — hello@xlab-ecom.com.