TikTok Shop Research MCP
by openanysi
README.md
# TikTok Shop Research MCP
Research TikTok Shop products, compare product details and buyer reviews, inspect known TikTok accounts and public Shop showcases, and draft original promotional video scripts from your AI agent. Powered by [OpenAny](https://openany.si/).
[](https://www.npmjs.com/package/@openanysi/tiktok-shop-research-mcp)
[](LICENSE)
[](https://nodejs.org/)
## Overview
`@openanysi/tiktok-shop-research-mcp` is a local stdio MCP server that gives AI agents focused, atomic tools for TikTok Shop product research, review analysis, known-account inspection, and original video script planning.
Your AI client stays in control of every request, sampling decision, analysis step, and local export (CSV/Markdown when file tools are available):
- **Product discovery & comparison:** search TikTok Shop products by keyword across supported markets and inspect individual product pages for sourced comparisons.
- **Review & objection insights:** read product review pages on demand to surface buyer questions, pain points, and feedback themes.
- **Known-account & showcase research:** inspect public TikTok profiles and public Shop showcases for known handles (US showcase workflow verified).
- **Built-in playbooks & optional Companion Skill:** bilingual (`en` / `zh`) research guides and templates for product research, review insights, creator briefs, and original video scripts.
- **Pre-execution pricing & catalog discovery:** inspect live tool contracts, parameters, and usage pricing before running paid data calls, or search [OpenAny](https://openany.si/) for additional capabilities.
## Quick Start
### Prerequisites
- **Node.js 22 or later**
- An MCP client that supports local `stdio` servers (e.g., Claude Desktop, Cursor, Windsurf, Claude Code)
- An **OpenAny API key** for business data tools — see [OpenAny](https://openany.si/) and the [setup guide](https://openany.si/setup.md) to get started (utility tools work without a key)
### Client Configuration
Add the following to your MCP client's private configuration file (using the standard `mcpServers` JSON format) and replace `YOUR_OPENANY_API_KEY` with your real key:
```json
{
"mcpServers": {
"tiktok-shop-research-mcp": {
"command": "npx",
"args": ["-y", "@openanysi/tiktok-shop-research-mcp"],
"env": {
"OPENANY_API_KEY": "YOUR_OPENANY_API_KEY"
}
}
}
}
```
> **Tip:** You can also pass `OPENANY_API_KEY` via your client's secret manager or inherited shell environment instead of the `env` block. Never commit real API keys to repositories or paste them into chat prompts.
To try the server anonymously without an API key, omit the `env` block — startup, tool listing, workflow guides, contract/pricing inspection, and catalog discovery all work keyless.
### Verify It Works
Restart or refresh your MCP client, then try:
- **With an API key:** *"Search US TikTok Shop for phone cases, compare the top candidates, summarize buyer concerns from sample reviews, and suggest an original video angle for my product brief."*
- **Without an API key (free utility tools):** *"Inspect the parameters and pricing of `search_shop_products`, and load the English `product_research` workflow guide."*
## Example Prompts
- *"Search US TikTok Shop for MagSafe phone cases and compare 3–5 relevant products in a sourced table."*
- *"Read these product URLs and summarize the differences in price, ratings, and seller details."*
- *"Read page 1 of reviews for this product URL (US) and group the main buyer objections with representative quotes."*
- *"Inspect these known TikTok handles and list the products currently displayed in their public US Shop showcases."*
- *"Using my product brief and the review themes we collected, write three original video hooks and a 30-second script."*
- *"Use only the product brief I provided to draft a video outline, without fetching any new data."*
## Tools Reference
The server registers **8 tools**: 5 atomic business data tools (require `OPENANY_API_KEY`) and 3 free keyless utility tools. Each data tool makes a single request; the client decides what to fetch next.
### Data Tools
| Tool | Parameters | Description |
| --- | --- | --- |
| `search_shop_products` | `query` (required, string); `country` (optional, market code); `limit` (optional, integer `1–30`) | Search TikTok Shop products by keyword. `limit` is honored on US searches; other markets may return a different count. |
| `get_shop_product` | `url` (required, product URL); `region` (optional, two-letter code) | Read available details for a single product URL. |
| `get_shop_product_reviews` | `url` (required, product URL); `page` (optional, integer `>= 1`); `region` (optional, two-letter code) | Read one page of product reviews (1-based `page`). |
| `get_creator_profile` | `handle` (required, without `@`, spaces, or URL) | Read public profile info and available counters for a known TikTok handle. No `region` input. |
| `get_creator_showcase` | `handle` (required); `region` (optional, two-letter code); `cursor` (optional, returned token) | Read one page of a known account's public Shop showcase. Keep `handle` and `region` unchanged when paginating with `cursor`. |
**Market & pagination notes:**
- Supported `country` codes for `search_shop_products`: `US`, `VN`, `TH`, `PH`, `MY`, `ID`, `GB`, `SG`, `ES`, `MX`, `DE`, `IT`, `FR`, `BR`, `JP`.
- `US` is the recommended baseline for the full combined workflow (search, product details, reviews, and showcases). Non-US showcase and detail coverage may vary.
- `get_shop_product_reviews` uses a 1-based `page` number; `get_creator_showcase` uses an opaque `cursor` returned by the previous page.
### Utility Tools (Free, No API Key Required)
| Tool | Parameters | Description |
| --- | --- | --- |
| `get_tool_info` | `tool_name` (required, one of the 5 data tool names) | Returns the live input schema, current usage pricing, and known limits for a data tool. |
| `get_workflow` | `workflow` (required, guide ID); `language` (optional, `zh` or `en`, default `zh`) | Returns offline research playbooks, evidence rules, and deliverable templates. Pass `language: "en"` for English guides. |
| `search_openany_capabilities` | `query` (required, `1–256` chars); `limit` (optional, `1–10`, default `5`) | Searches OpenAny's catalog for related capabilities without executing them. |
## Built-in Workflow Guides
Use `get_workflow` to load structured playbooks and output templates directly in any MCP client:
| Guide ID | Best For | What It Covers |
| --- | --- | --- |
| `product_research` | Product discovery & comparison | Market alignment, candidate selection, evidence tracking, comparison tables |
| `review_insights` | Buyer questions & objections | Sample coverage notes, deduplication, theme grouping, source citations |
| `creator_research` | Known handles & showcases | Profile/showcase selection, metric boundaries, cursor pagination, attribution limits |
| `video_script` | Original promotional scripts | Product-fact grounding, hook angles, scene outlines, voiceover, final review |
## Companion Skill (Optional)
For hosts that support native Skills, this package includes an optional [tiktok-shop-research Skill](skills/tiktok-shop-research/SKILL.md) that coordinates multi-step research across these tools, maintains a shared evidence ledger, and organizes deliverables.
To install it, copy the `skills/tiktok-shop-research` directory (keeping `SKILL.md`, `agents/`, and `references/` together) into your host's Skills directory. Connecting this MCP via `npx` does not automatically install the Skill, and the Skill is completely optional—`get_workflow` provides the full self-contained guides for any client.
## End-to-End Example
**Prompt:** *"Research a few US TikTok Shop phone cases, identify concerns in the sample reviews, and use my product brief to draft a short promotional video."*
1. **Plan & inspect:** The agent loads `product_research` and `review_insights` (with `language: "en"`), and checks live parameters and pricing via `get_tool_info`.
2. **Search products:** Calls `search_shop_products` with the keyword, `country: "US"`, and an appropriate `limit`.
3. **Compare details:** Picks relevant product URLs from the search results and calls `get_shop_product` for each candidate.
4. **Analyze reviews:** Calls `get_shop_product_reviews` (`region: "US"`, `page: 1`) for selected products and requests additional pages only when needed.
5. **Inspect known accounts (optional):** Calls `get_creator_profile` for supplied handles, and `get_creator_showcase` when current public product display is relevant.
6. **Draft & export:** Loads `video_script` and uses your client's model to combine your real product facts with the collected evidence. Exports CSV or Markdown if your client has file-writing tools.
## Limitations, Billing & Privacy
- **Pricing & billing:** Business data tools incur per-call OpenAny API charges even though operations are read-only (including requests that return no matching records). Inspect current rates with `get_tool_info` before execution. Actual charges follow OpenAny gateway settlement; analysis and script generation use your client's own model.
- **Data scope & attribution:** This MCP does not estimate 7-day or 30-day sales, discover creators by category, or provide creator contact details. A public Shop showcase shows currently displayed products only—product sales counters do not establish creator-attributed sales, GMV, commissions, or paid partnerships.
- **Single-page atomic calls:** Each request returns one response. The server does not auto-paginate, crawl full inventories, extract video transcripts, generate media, or publish content.
- **No TikTok cookies required:** Authentication uses `OPENANY_API_KEY` only—no TikTok login or browser cookies are needed.
- **Privacy:** The MCP server runs locally over stdio, while catalog queries and business tool inputs are sent to OpenAny APIs.
- **Need more capabilities?** Run `search_openany_capabilities` or explore the general [OpenAny MCP](https://mcp.openany.si/) ([setup instructions](https://openany.si/setup.md)).
## FAQ
### Does it estimate 7-day or 30-day sales?
No. There is no historical sales-window estimator. Any returned sales counters should be kept with their original definitions rather than treated as recent sales, revenue, or profit.
### Can I search creators by category or get their contact info?
No. `get_creator_profile` and `get_creator_showcase` require known TikTok handles and only return public profile and showcase data.
### Does it call an LLM or extract existing video scripts?
No. This MCP supplies structured data and writing guides; your client's own model performs analysis and drafts original scripts. It does not fetch video transcripts or generate video/images.
### Can I export results to CSV or Markdown?
Yes, if your MCP client provides file-writing tools with permission. Otherwise, your agent can output formatted Markdown or CSV text directly in chat. The MCP server itself does not write local files.
### Why did a tool return an error or timeout instead of retrying automatically?
To avoid unintended duplicate charges, the server does not automatically replay paid business requests on timeout or uncertain outcomes. Inspect the returned error/request ID before deciding whether to retry.
## Local Development
```sh
npm ci --ignore-scripts
npm test
npm run check
```
To run the server locally from source in a stdio MCP client:
```json
{
"mcpServers": {
"tiktok-shop-research-mcp": {
"command": "node",
"args": ["/absolute/path/to/tiktok-shop-research-mcp/bin/server.js"]
}
}
}
```
Edit research playbooks under `skills/tiktok-shop-research/references/` and sync the bundled guides with:
```sh
npm run sync:guides
```
To verify local packaging or run anonymous live checks against public utility endpoints:
```sh
npm run smoke:package
npm run verify:mcp
```
## About OpenAny
[OpenAny](https://openany.si/) provides APIs and models for AI agents and developers. For capabilities beyond TikTok Shop research, use `search_openany_capabilities` or connect the general [OpenAny MCP](https://mcp.openany.si/).
## License
[Apache-2.0](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues