GC

goesbyhc/cn-scraper-mcp

Developer tools

This page was translated automatically. Technical details may differ from the original. View the original

84 stars 9 forks Quality 74 Trend 5MIT

Let AI agents search the Chinese internet via MCP — Taobao, JD, Xiaohongshu, Zhihu, Weibo, Bilibili, ZSXQ, Douban, Dianping, and more.

Overview

Let AI Agents directly search the Chinese internet—Taobao, JD.com, Xiaohongshu, Zhihu, Weibo, Bilibili, Knowledge Planet...... No longer blocked by anti-climbing walls. Each AI Agent (Codex, Claude Code, Cursor, Trae) can search web pages, but Chinese platforms usually require login mode, browser environment, or platform-specific parameters: - : Requires consistent browser network fingerprinting and login cookies - : Relies on a logged-in local browser environment - : Requires residential IP, local browser, and search results access parameters - : Visitor search is disabled, all APIs require login mode - : Platform restrictions are strict, currently not recommended - : Search API requires login (SUB token), hot search visitors can access - : Browser login and possibly manual verification code processing - : Search, trending, video details, and reviews can be directly accessed via public API - : Article search, article details, and short reviews/movie reviews - : Merchant search, merchant details, and user reviews - : Paid community, content hidden behind cookie-certified REST API —Your Agent can search in one sentence: taobao_search ("Children's Study Desk"). cn-scraper-mcp runs locally on your computer without uploading cookies, account passwords, or browser profiles to any relay server: - Cookies are saved by default in ~/.cn-scraper-cookies/, while JD.com login status is saved in the local Chrome Profile. - The login process happens directly on the platform's official page; the software does not read or save your account password. - Cookie values are not written to logs, nor are they returned to the agent through MCP tool results; Tools only return non-sensitive information such as status, field names, and local paths. - When initiating crawling or online login verification, credentials are only sent to the corresponding platform domain. - The code is completely open source, and all credential processing steps can be reviewed. It is recommended to protect your local account as you would your browser login state: do not share cookie files, do not submit credentials to Git, and restrict access to local files. ¹ Taobao has no strict traffic limits, but the platform may tighten at any time; high-frequency batch crawling is not recommended. ² JD.com generates login status and dynamic signatures locally via Chrome, and tools read structured API responses; Profiles can be automatically initialized and persisted via guided_login ("jd"). ³ Pinduoduo only allows the first search per browser session, after which it is permanently "busy on the system." Single search results have zero practical value; engine code is retained but not recommended.

Overview (machine translated)

CN Scraper MCP

Let AI Agents directly search the Chinese internet—Taobao, JD.com, Xiaohongshu, Zhihu, Weibo, Bilibili, Knowledge Planet… No longer blocked by anti-climbing walls.


What is this?

Each AI Agent (Codex, Claude Code, Cursor, Trae) can search web pages, but Chinese platforms usually require login mode, browser environment, or platform-specific parameters:

  • Taobao: Requires consistent web fingerprinting and login cookies for browsers
  • JD.com: Relies on the local browser environment you have logged into
  • Xiaohongshu: Requires a residential IP, local browser, and access parameters in search results
  • Zhihu: Visitor search is disabled; all APIs require login mode
  • Pinduoduo: Platform has strict restrictions, currently not recommended
  • Weibo: Searching for the API requires a login state (SUB token), allowing users to access trending searches
  • Douyin: Requires browser login and may manually process verification codes
  • Bilibili: Search, trending, video details, and comments can be accessed directly via public API
  • Douban: Article search, article details, and short reviews/movie reviews
  • Dianping: Merchant search, merchant details, and user reviews
  • Knowledge Planet: A paid community with content hidden behind cookie-certified REST APIs

This project is essentially packaging months of pitfalls into a single MCP Server—your agent can search with just one sentence: taobao_search("儿童学习桌").

Security and Privacy

cn-scraper-mcp Run locally on your computer, without uploading cookies, account passwords, or browser profiles to any relay server:

  • Cookies are saved by default in ~/.cn-scraper-cookies/, while JD.com login mode is saved in the local Chrome Profile.
  • The login process happens directly on the platform’s official page; the software does not read or save your account password.
  • Cookie values are not written to logs, nor are they returned to the agent through MCP tool results; The tool only returns non-sensitive information such as status, field name, and local path.
  • When initiating crawling or online login verification, the credentials will only be sent to the corresponding platform domain name.
  • The code is fully open source, and all voucher processing processes can be reviewed.

It is recommended to protect your local account as you would your browser login state: do not share cookie files, do not submit credentials to Git, and restrict access to local files.


Platform support

E-commerce

Platform Method No browser required Restrictions Stability
Taobao/Tmall curl_cffi + MTOP signature ✅ Loose ✅ Stable
JD.com/JD Chrome CDP headful Requires Chrome Medium ✅ Stable²

This page was translated automatically. Technical details may differ from the original.

Install

docker run -i --rm \
New to MCP? Start with the mcpskill.org guide →

Configuration

{ "mcpServers": { "cn-scraper": { "command": "cn-scraper-mcp", "args": [] } } }