Skip to main content
skill CX Codex

cn-ecommerce-search — Claude Code skill: what it does, how to install

Searches products across Taobao, Tmall, and XHS without API keys. Helpful when you need to inspect Chinese marketplace items, parse short links, or compare prices in CNY.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add shopmeskills/mcp --skill cn-ecommerce-search -a claude-code
Open on GitHub

What cn-ecommerce-search does

This skill connects your agent to the Shopme catalog through the @shopmeagent/cn-ecommerce-search-mcp package. It introduces three core tools: search_products for keyword queries, get_product_detail for full item specs, and parse_product_link for local URL resolution. When querying in English, the system expands terms with synonyms, though native Chinese keywords still return broader listings.

All returned pricing uses Chinese Yuan (CNY) and ignores shipping fees, so calculate total landed costs yourself. The server runs zero-config without authentication tokens, but you can override the base endpoint via SHOPME_API_BASE for local environments.

The tooling accepts desktop URLs, mobile links, and short URLs such as e.tb.cn or m.tb.cn. Passing a raw product link directly into get_product_detail works out of the box without running a separate URL extraction step first.

What it helps with

  • locate suppliers and items on Taobao, Tmall, or XHS
  • extract specifications from a product link or numeric item ID
  • sort search results by sales volume to spot popular listings
  • resolve short links like e.tb.cn into platform names and product IDs

Example prompts for the agent

  • Find wireless mechanical keyboards on Taobao sorted by sales volume
  • Retrieve product details for https://item.taobao.com/item.htm?id=123456
  • Parse this short link https://e.tb.cn/xxx and extract the item ID

How to install cn-ecommerce-search

1Skills CLI (Vercel)

npx skills add shopmeskills/mcp --skill cn-ecommerce-search -a claude-code

2Manually: put the files in place

~/.claude/skills/cn-ecommerce-search/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cn-ecommerce-search/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cn-ecommerce-search

How to install cn-ecommerce-search in Claude Code?

Run npx skills add shopmeskills/mcp --skill cn-ecommerce-search -a claude-code in your terminal.

What does cn-ecommerce-search do?

It queries the Shopme catalog to find products on Taobao, Tmall, and XHS, inspect item details from URLs, and check prices in CNY.

Does cn-ecommerce-search require an API key?

No, it requires zero configuration and works out of the box without API keys.

Source text

SKILL.md · MIT
---
name: cn-ecommerce-search
description: >
  Search products across Chinese e-commerce platforms: Taobao, Tmall, XHS (小红书).
  Zero-config — no API keys needed. Powered by Shopme unified product database.
  Use when the user asks to find products, get product info by URL or ID, search Chinese suppliers, or compare prices.
license: MIT
metadata:
  author: shopme
  version: "2.0.0"
  mcp-server: "@shopmeagent/cn-ecommerce-search-mcp"
---

# Chinese E-commerce Product Search

Search and retrieve product information across Chinese e-commerce platforms via the Shopme unified product database.

**Zero-config — no API keys required.**

## When to Use

- User asks to find a product on Taobao, Tmall, or 小红书
- User shares a product link and wants details
- User needs to search Chinese suppliers for a product
- User asks about prices on Chinese platforms
- User provides a product URL from Taobao, Tmall, or XHS
- User wants to compare products across platforms

## MCP Server Setup

```json
{
  "mcpServers": {
    "cn-ecommerce-search": {
      "command": "npx",
      "args": ["-y", "@shopmeagent/cn-ecommerce-search-mcp"]
    }
  }
}
```

No environment variables required. Optional:

| Variable | Default | Description |
|----------|---------|-------------|
| `SHOPME_API_BASE` | `https://api.shopmeagent.com` | Override API endpoint (e.g. `http://localhost:8000` for local dev) |

## Available Tools

### search_products

Search products by keyword across platforms.

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `keyword` | string | **Yes** | — | Search term (Chinese or English) |
| `platform` | string | No | all | Filter by platform: `xhs`, `taobao`, `tmall` |
| `sort_by` | string | No | `relevance` | `relevance`, `price_asc`, `price_desc`, `sales_desc`, `created_at` |
| `page` | number | No | 1 | Page number |
| `limit` | number | No | 10 | Items per page (max 50) |

### get_product_detail

Get detailed info about a specific product by ID or URL.

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `product_id` | string | One of two | Product ID (recommended, faster) |
| `url` | string | One of two | Product URL |
| `platform` | string | No | Platform hint to speed up lookup |

### parse_product_link

Parse a product URL to identify the platform and product ID. Runs locally, no API call.

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | **Yes** | Product URL or text containing one |

## Supported Platforms

| Platform | Code | Strengths | Price Range | Typical Buyer |
|----------|------|-----------|-------------|---------------|
| **淘宝 Taobao** | `taobao` | Largest selection, consumer goods | ¥ Low-Mid | End consumers |
| **天猫 Tmall** | `tmall` | Brand flagship stores, higher quality | ¥ Mid-High | Quality-focused |
| **小红书 XHS** | `xhs` | Community picks, beauty/lifestyle | ¥ Mid | Young women, lifestyle |

## Supported URL Formats

- `item.taobao.com/item.htm?id=123456`
- `detail.tmall.com/item.htm?id=123456`
- `mall.xiaohongshu.com/goods-detail/xxx`
- Short links: `e.tb.cn/xxx`, `m.tb.cn/xxx`

## Price Understanding Guide

- All prices are in **CNY (¥)**. Rough conversion: 1 USD ≈ 7.2 CNY
- Always consider shipping costs when comparing prices

## Search Tips

1. **Chinese keywords** get more results
2. **English keywords** are auto-expanded with synonyms and word variants
3. Sort by `sales_desc` to find popular/trusted products (best on XHS)
4. Use `platform` filter to narrow results to a specific platform
5. Use `get_product_detail` with a URL directly — no need to parse first

© shopme · MIT · shopmeskills/mcp

Similar skills

All skills for Data and databases →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor