Taobao Alliance, JD Alliance, and Pinduoduo Promotion are full-platform MCP services based on the Model Context Protocol (MCP). These services support link conversion and product promotion functions for the three major e-commerce platforms—Taobao, JD, and Pinduoduo—as well as a series of tools such as product search.

GitHub:

https://github.com/liuliang520530/taoke-mcp/

Video Tutorial

https://www.bilibili.com/video/BV1tE5jzLEMu/

Official Documentation

https://mcp.sinataoke.cn/docs

Tool Showcase on Cherry Studio

Project Screenshot

Usage

Environment Variable Configuration

The service requires the following environment variables to be configured:

Environment variable loading configuration

ENV_URL=http://rap2api.taobao.org/app/mock/304812/taoke-mcp ENV_SECRET=url:mcp.sinataoke.cn ENV_OVERRIDE=false # Optional, whether to override existing environment variables, this must be false, otherwise the following configurations will not take effect

Taobao Affiliate API configuration

TAOBAO_PID=your-pid # Taobao Alliance PID TAOBAO_SESSION=your-session # Your authorization ID, see the authorization link below

JD Alliance API configuration

JD_KEY=your-jd-key # Obtained from the JD backend JD_PID=your-pid-id # The first segment of the PID

Pinduoduo API configuration

PDD_PID=your-pid # Obtained from jinbao.pinduoduo.com, requires authorization PDD_SESSION_TOKEN=your-session-token # Authorization token, see the authorization link below

Taobao Alliance Authorization Link:

https://oauth.taobao.com/authorize?response_type=token&client_id=34297717&state=1212&view=web

Pinduoduo Authorization Link

https://jinbao.pinduoduo.com/open.html?client_id=313cc43a30cf487da0a336d9f2df7de2&response_type=code&redirect_uri=http%3A%2F%2Fddk.mintaoke.cn%2FApi%2Fget_access_token&view=web

Pinduoduo PID Authorization

  • Use the tool pdd.goods.prom.url to generate a promotional link with the parameter generate_authority_url=true. If not authorized, it will prioritize the authorization link.
  • If you want AI to authorize through MCP, send a product link and inform the AI that the parameter generate_authority_url=true. The AI will then use the current tool to generate an authorization link using pdd.goods.prom.url and return an authorization link to you.

Integration with Claude Desktop or Cherry Studio

To use this service in Claude Desktop

Using MCP Configuration File

You can also start the service using an MCP configuration file. Create a file named mcp.json with the following content:

json { "mcpServers": { "taobao-mcp": { "name": "Shopping Assistant", "type": "stdio", "isActive": true, "command": "cmd", "args": [ "/c", "npx", "-y", "@liuliang520500/sinataoke_cn@latest", "g:win11desktop/logs/" ], "env": { "ENV_URL": "http://rap2api.taobao.org/app/mock/304812/taoke-mcp", "ENV_SECRET": "url:mcp.sinataoke.cn", "ENV_OVERRIDE": "false", "TAOBAO_PID": "Taobao PID", "TAOBAO_SESSION": "Taobao authorization token, see the authorization link above, copy the token here after authorization", "JD_KEY": "Obtained from union.jd.com", "JD_PID": "Obtained from union.jd.com", "PDD_PID": "Pinduoduo PID", "PDD_SESSION_TOKEN": "Pinduoduo authorization token, see the authorization link above" } } } }

Supported Features

Taobao Platform

  • Link Conversion
  • Link Parsing
  • Activity Conversion
  • Order Detail Query
  • Tool List
  • Promotion Request
  • Creation of Promotion Positions
  • TaoKouLing Creation
  • Material Search
  • Penalty Order Query
  • Product Information Query
  • Preferred Promotion

JD Platform

  • Query Promotion Positions
  • Create Promotion Positions
  • Alliance Promotion
  • Product Query
  • Coupon Query

Pinduoduo Platform

  • Product Details
  • CMS Promotional Links
  • Generation of Promotion Positions
  • Query Promotion Positions
  • Generation of Promotional Links
  • Product Recommendations
  • Product Search
  • Conversion of Pinduoduo Links
  • Member Permission Query
  • Order Detail Query
  • Incremental Order Query
  • Generation of Promotion Positions

License

ISC

Author''s WeChat

  • liuliangzheng

For any issues using the service, please contact the author and verify the package name:

  • @liuliang520500/sinataoke_cn@latest Beware of counterfeits