Skip to main content
Glama
README.md
# ecom-mcp

Model Context Protocol (MCP) server for extracting live product catalogs, variant inventory, discounts, and storefront tech stacks across 9 e-commerce platforms via Apify.

## Prerequisites

- Node.js 18+
- An Apify API token (generate one in [Apify](https://apify.com?fpr=jvon) under Settings -> Integrations)

## MCP Client Configuration

Add `ecom-mcp` to `claude_desktop_config.json`, `.cursor/mcp.json`, or Claude Code:

```json
{
  "mcpServers": {
    "ecom-mcp": {
      "command": "npx",
      "args": ["-y", "ecom-mcp"],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

Restrict the active toolset to a single platform with `--profile`:

```json
{
  "mcpServers": {
    "shopify": {
      "command": "npx",
      "args": ["-y", "ecom-mcp", "--profile", "shopify"],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

## Tools

| Tool | Target Platform | Parameters |
| :--- | :--- | :--- |
| `probe_store_tech_stack` | Any supported storefront | `storeUrl` |
| `scrape_any_store_catalog` | Auto-detected platform | `storeUrl`, `maxProducts` |
| `scrape_shopify_catalog` | Shopify | `storeUrl`, `maxProducts` |
| `scrape_mercadolibre_listings` | MercadoLibre (MX/BR/AR/CO/CL/PE/UY) | `searchUrlOrKeyword`, `country`, `maxProducts` |
| `scrape_woocommerce_catalog` | WooCommerce | `storeUrl`, `maxProducts` |
| `scrape_magento_catalog` | Magento 2 / Adobe Commerce | `storeUrl`, `maxProducts` |
| `scrape_bigcommerce_catalog` | BigCommerce | `storeUrl`, `maxProducts` |
| `scrape_squarespace_catalog` | Squarespace Commerce | `storeUrl`, `maxProducts` |
| `scrape_shopware_catalog` | Shopware 5 & 6 | `storeUrl`, `maxProducts` |
| `scrape_vtex_catalog` | VTEX | `storeUrl`, `maxProducts` |

## Runtime Behavior

- **Transport:** Attempts low-latency Apify Standby HTTP calls for small queries and falls back to async Apify Actor runs with dataset retrieval if Standby is unavailable or above the real-time item cap.
- **Resilience:** Includes an in-memory TTL response cache and per-actor circuit breaker to avoid repeated Standby timeouts.

## Dedicated Standalone MCP Servers

Vertical intelligence tools ship as separate zero-dependency packages:
- `ad-library-mcp` (Meta Ad Library ads and creatives)
- `shopify-reviews-mcp` (Judge.me, Loox, Yotpo, Okendo, Stamped.io reviews)
- `store-leads-mcp` (B2B store discovery and MX-verified contacts)

## License

MIT