# Shopify Store Intelligence MCP (`rothy/shopify-intel-mcp`) Actor

Scrapes any public Shopify store and returns structured competitive intelligence: products, collections, pricing analysis, theme detection, and installed apps — with no API key required. Runs as an MCP server via Apify Standby.

- **URL**: https://apify.com/rothy/shopify-intel-mcp.md
- **Developed by:** [Sam Rothschild](https://apify.com/rothy) (community)
- **Categories:** Agents, E-commerce
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 6 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Shopify Store Intelligence MCP

An [Apify Actor](https://apify.com/actors) that scrapes any **public Shopify store** (no API key required) and returns structured competitive intelligence data. Runs as a persistent **MCP server** via [Apify Standby](https://docs.apify.com/platform/actors/running/standby), making it directly usable from Claude Desktop, Cursor, and any MCP-compatible AI client.

***

### What it does

Point it at any Shopify store URL and get back:

- 🏪 **Store metadata** — name, description, currency, country
- 📦 **Product catalog** — paginated, with prices as numbers, discount %, variants
- 🗂️ **Collections** — all categories with handles and URLs
- 💰 **Price intelligence** — min/max/mean/median, discount frequency, price buckets
- 🎨 **Theme & apps** — theme name/ID, installed apps (Klaviyo, ReCharge, etc.), tracking pixels, social links

***

### MCP Tools

#### `analyze_store`

Full competitive intelligence report in a single call.

**Input:**

```json
{ "store_url": "https://allbirds.com" }
```

**Output:**

```json
{
  "tool": "analyze_store",
  "store_url": "https://allbirds.com",
  "scraped_at": "2024-01-15T10:30:00.000Z",
  "store_name": "Allbirds",
  "description": "The world's most comfortable shoes...",
  "currency": "USD",
  "country": "US",
  "total_collections": 24,
  "collections_preview": [...],
  "top_products": [
    {
      "title": "Men's Tree Runners",
      "handle": "mens-tree-runners",
      "price": 98,
      "compare_at_price": null,
      "discount_percent": null,
      "available": true,
      "image_url": "https://cdn.shopify.com/...",
      "url": "https://allbirds.com/products/mens-tree-runners",
      "variants": [...]
    }
  ],
  "theme": { "name": "Prestige", "id": "123456789" },
  "detected_apps": ["Klaviyo", "Yotpo", "Gorgias"],
  "tracking_pixels": ["Google Tag Manager", "Facebook Pixel"],
  "social_links": {
    "instagram": "https://instagram.com/allbirds",
    "twitter": "https://twitter.com/allbirds"
  }
}
```

***

#### `get_products`

Paginated product catalog.

**Input:**

```json
{
  "store_url": "https://gymshark.com",
  "page": 1,
  "limit": 50,
  "collection": "mens-t-shirts"
}
```

**Output:** `{ products: [...], page, limit, has_more, total_on_page }`

***

#### `get_collections`

All collections/categories.

**Input:** `{ "store_url": "https://gymshark.com" }`

**Output:**

```json
{
  "total_collections": 42,
  "collections": [
    {
      "handle": "mens-t-shirts",
      "title": "Men's T-Shirts",
      "url": "https://gymshark.com/collections/mens-t-shirts",
      "product_count": 36
    }
  ]
}
```

***

#### `price_intelligence`

Comprehensive pricing analysis.

**Input:** `{ "store_url": "https://gymshark.com" }`

**Output:**

```json
{
  "total_products_analyzed": 847,
  "price_range": { "min": 9, "max": 65, "mean": 34.50, "median": 35 },
  "discount_analysis": {
    "products_on_sale": 124,
    "sale_percent": 14.6,
    "avg_discount_percent": 22,
    "max_discount_percent": 60
  },
  "distribution": [
    { "label": "$25 – $50", "count": 412, "percent": 48.6, "from": 25, "to": 50 }
  ],
  "top_priced": [...],
  "deepest_discounts": [...]
}
```

***

#### `detect_theme_and_apps`

Tech stack detection from homepage HTML.

**Input:** `{ "store_url": "https://allbirds.com" }`

**Output:**

```json
{
  "theme": { "name": "Prestige", "id": "123456789" },
  "detected_apps": ["Klaviyo", "ReCharge", "Yotpo", "Gorgias", "Smile.io"],
  "tracking_pixels": ["Google Tag Manager", "Facebook Pixel", "Hotjar"],
  "social_links": { "instagram": "https://instagram.com/allbirds" }
}
```

***

### Using as an MCP Server

#### With Claude Desktop

Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "shopify-intel": {
      "url": "https://rothy--shopify-intel-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

Then ask Claude: *"Analyze the Shopify store gymshark.com and tell me their top products and pricing strategy."*

#### With Cursor

Add in Cursor settings → MCP:

```json
{
  "shopify-intel": {
    "url": "https://rothy--shopify-intel-mcp.apify.actor/mcp"
  }
}
```

#### Local development

```bash
npm install
npm run build
ACTOR_STANDBY_PORT=4321 npm start
## MCP endpoint: http://localhost:4321/mcp
```

***

### Running via Apify API (single tool call)

```bash
curl -X POST https://api.apify.com/v2/acts/rothy~shopify-intel-mcp/runs \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "tool": "analyze_store",
    "store_url": "https://allbirds.com"
  }'
```

***

### Publishing to Apify

1. Install [Apify CLI](https://docs.apify.com/cli): `npm install -g apify-cli`
2. Authenticate: `apify login`
3. Build and push:
   ```bash
   npm run build
   apify push
   ```
4. In the Apify Console:
   - Set **Actor type** to `Standby` (persistent HTTP server)
   - Enable **Pay Per Event** monetization
   - Set price per `tool-call` event (suggested: $0.01)

***

### Pricing

This actor uses Apify's **pay-per-event** model — pay only for what you use:

| Tool | Price |
|------|-------|
| `analyze_store` | $0.10 / call |
| `price_intelligence` | $0.05 / call |
| `detect_theme_and_apps` | $0.05 / call |
| `get_products` | $0.02 / call |
| `get_collections` | $0.02 / call |

No subscription required.

***

### Supported Shopify Endpoints

All requests use public, unauthenticated Shopify APIs:

| Endpoint | Used For |
|----------|----------|
| `/products.json` | Product catalog |
| `/collections.json` | Collection list |
| `/collections/{handle}/products.json` | Collection products |
| `/meta.json` | Store metadata |
| Homepage HTML | Theme & app detection |

***

### Error Handling

- **Not a Shopify store**: Clear error if `/products.json` returns 404
- **Password-protected**: Clear error for 401/password-gated stores
- **Rate limiting**: Automatic pagination with graceful stops
- **Partial failures**: `analyze_store` returns partial data if some endpoints fail

***

### Tech Stack

- [TypeScript](https://www.typescriptlang.org/)
- [Apify SDK v3](https://docs.apify.com/sdk/js/)
- [MCP SDK](https://github.com/modelcontextprotocol/typescript-sdk) (`@modelcontextprotocol/sdk`)
- [Express](https://expressjs.com/) (HTTP server)
- [Cheerio](https://cheerio.js.org/) (HTML parsing)

# Actor input Schema

## `tool` (type: `string`):

Which intelligence tool to run. Leave empty to start as an MCP server.

## `store_url` (type: `string`):

URL of the Shopify store to analyze (e.g. https://allbirds.com or https://gymshark.myshopify.com)

## `page` (type: `integer`):

Page number for get_products pagination (default: 1)

## `limit` (type: `integer`):

Number of products per page for get_products (default: 50, max: 250)

## `collection` (type: `string`):

Optional collection handle to filter products in get_products (e.g. 'shoes', 'sale')

## Actor input object example

```json
{
  "page": 1,
  "limit": 50
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("rothy/shopify-intel-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("rothy/shopify-intel-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call rothy/shopify-intel-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rothy/shopify-intel-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/o1Utd0sitgdDan3Bw/builds/pkrWfIkAHMGWkljsY/openapi.json
