mcp-cn-commerce

mcp-cn-commerce

A suite of MCP servers that give AI agents read-only access to Chinese e-commerce platform business data, including advertising, orders, products, and more from platforms like Douyin, JD.com, Taobao, etc.

Category
Visit Server

README

mcp-cn-commerce — Chinese E-Commerce Platform MCP Servers

Test Python License MCP PyPI version Code style: black

šŸ›’ Let AI agents read Chinese e-commerce merchant business data. Not content publishing — business operations MCP connectors for AI agents like Claude, ChatGPT, Gemini.

Keywords: MCP Server, Model Context Protocol, Chinese e-commerce, AI agent, e-commerce data, 电商 MCP, ęŠ–åŗ—, 京东, å·Øé‡å¼•ę“Ž, Ocean Engine, Douyin Shop, JD.com, Taobao, Pinduoduo, Python MCP, AI business intelligence, agent tool

English | 简体中文


Table of Contents


What is mcp-cn-commerce?

A monorepo of independent MCP (Model Context Protocol) servers that give AI agents structured, type-safe access to Chinese e-commerce platform business data. Each server wraps one platform's open API:

  • å·Øé‡å¼•ę“Ž (Ocean Engine) — advertising campaign, report, and account data
  • ęŠ–åŗ— (Douyin Shop) — orders, products, refunds, shop management
  • 京东 (JD.com) — orders, products, shop information
  • More coming: ę·˜å®, ę‹¼å¤šå¤š, 快手, å°ēŗ¢ä¹¦, å¾®äæ”å°åŗ—

All tools are read-only by default — AI agents can analyze your business data but cannot modify anything.

Why This Project

Existing Chinese-platform MCP servers all focus on content publishing (posting videos, searching trends). Zero cover merchant business operations — pulling ad reports, checking orders, managing refunds.

Content MCPs (HuiMei, Astron, etc.) mcp-cn-commerce
Purpose Post videos, search hot topics Pull ad reports, query orders
Target User Creators / influencers E-commerce business owners / operators
Data Type Content data (views, likes, trends) Business data (revenue, orders, refunds, ROAS)
Platform Scope Content platforms E-commerce + advertising platforms
Operations Publish / write Read-only analytics & monitoring

This is the first open-source MCP server suite for Chinese e-commerce business operations.

Platforms

Platform Category Phase Status Tests Open API
å·Øé‡å¼•ę“Ž (Ocean Engine) Advertising (å¹æå‘ŠęŠ•ę”¾) 1 āœ… 24 open.oceanengine.com
å·Øé‡åƒå· (Qianchuan) E-commerce Ads (ē”µå•†å¹æå‘Š) 1 āœ… (shared) qianchuan.jinritemai.com
ęŠ–åŗ— (Douyin Shop) E-commerce (电商店铺) 1 āœ… 31 op.jinritemai.com
京东 (JD.com) E-commerce (电商店铺) 1 āœ… 19 jos.jd.com
ę·˜å® (Taobao) E-commerce (电商店铺) 2 āœ… 36 open.taobao.com
ę‹¼å¤šå¤š (Pinduoduo) E-commerce (电商店铺) 2 āœ… 30 open.pinduoduo.com
快手 (Kuaishou) E-commerce (电商店铺) 3 āœ… 33 open.kuaixiaodian.com
å°ēŗ¢ä¹¦ (Xiaohongshu) E-commerce (电商店铺) 3 āœ… 33 open.xiaohongshu.com
å¾®äæ”å°åŗ— (WeChat Store) E-commerce (电商店铺) 3 āœ… 25 developers.weixin.qq.com

Phase 4 (exploratory): 闲鱼 (Xianyu), ē¾Žå›¢ (Meituan), é„æäŗ†ä¹ˆ (Ele.me) — restricted APIs, awaiting policy clarity.

358 tests across all 8 servers. CI runs on Python 3.11, 3.12, 3.13.

Quick Start

Installation

From GitHub Releases (recommended — no registration needed)

# Visit the latest Release and download the .whl file
# https://github.com/TonyWang-hub/mcp-cn-commerce/releases/latest

# Or install directly from the Release URL:
pip install https://github.com/TonyWang-hub/mcp-cn-commerce/releases/latest/download/mcp_cn_commerce-0.1.0-py3-none-any.whl

From Git (always latest)

pip install git+https://github.com/TonyWang-hub/mcp-cn-commerce.git

For development

git clone https://github.com/TonyWang-hub/mcp-cn-commerce.git
cd mcp-cn-commerce
pip install -e ".[dev]"

Configuration

Set credentials via environment variables:

# å·Øé‡å¼•ę“Ž (Ocean Engine) — Advertising platform
export OCEANENGINE_APP_KEY="your_app_key"
export OCEANENGINE_APP_SECRET="your_app_secret"
export OCEANENGINE_ACCESS_TOKEN="your_access_token"

# ęŠ–åŗ— (Douyin Shop) — TikTok Shop China
export DOUDIAN_APP_KEY="your_app_key"
export DOUDIAN_APP_SECRET="your_app_secret"
export DOUDIAN_SHOP_ID="your_shop_id"
export DOUDIAN_ACCESS_TOKEN="your_access_token"

# 京东 (JD.com) — Jingdong e-commerce
export JD_APP_KEY="your_app_key"
export JD_APP_SECRET="your_app_secret"
export JD_ACCESS_TOKEN="your_access_token"

Add to Your MCP Client

Works with Claude Desktop, Cherry Studio, Kimi Work, and any MCP-compatible AI client:

{
  "mcpServers": {
    "oceanengine": {
      "command": "mcp-cn-oceanengine"
    },
    "doudian": {
      "command": "mcp-cn-doudian"
    },
    "jd": {
      "command": "mcp-cn-jd"
    }
  }
}

Example: AI Agent Querying Your Business

Once connected, you can ask your AI agent questions like:

"Show me this week's Ocean Engine campaign ROAS, sorted by spend" "Which Douyin Shop products are low on stock?" "How many JD refunds are pending approval?" "Compare my ad performance across Ocean Engine campaigns this month vs last month"

Architecture

mcp-cn-commerce/
ā”œā”€ā”€ .github/workflows/test.yml       # CI: pytest on push (3.11/3.12/3.13)
ā”œā”€ā”€ shared/                           # Shared auth/signing/pagination
│   └── cn_commerce_base.py           # CommerceMCPBase — extend for new platforms
ā”œā”€ā”€ servers/
│   ā”œā”€ā”€ oceanengine/  17 tools        ā”œā”€ā”€ doudian/    20 tools
│   ā”œā”€ā”€ jd/           14 tools        ā”œā”€ā”€ taobao/     13 tools
│   ā”œā”€ā”€ pinduoduo/    13 tools        ā”œā”€ā”€ kuaishou/   12 tools
│   ā”œā”€ā”€ xiaohongshu/  12 tools        └── weixin-store/ 11 tools
ā”œā”€ā”€ docs/platforms.md                 # 8-platform API comparison & auth matrix
ā”œā”€ā”€ README.md / README_zh.md          # English / 简体中文
└── LICENSE                           # MIT

Each servers/<platform>/ is an independent MCP server. Users install only what they need.

Tools Summary

Server Tools Categories
oceanengine 17 Ads, Qianchuan, Star, Creative, Audience, Optimization
doudian 20 Orders, Products, Refunds, Logistics, Reviews, Live, Traffic, Marketing, Billing, Shop
jd 14 Orders, Products, After-Sale, Logistics, Reviews, Pricing, Inventory, Marketing, Shop
taobao 13 Orders, Products, Refunds, Logistics, Reviews, Shop, Marketing, Categories
pinduoduo 13 Orders, Products, Refunds, Logistics, Reviews, Shop, Marketing, Affiliate
kuaishou 12 Orders, Products, Refunds, Logistics, Reviews, Shop, Marketing
xiaohongshu 12 Orders, Products, Refunds, Logistics, Reviews, Shop, Marketing, Inventory, Finance
weixin-store 11 Orders, Products, Refunds, Logistics, Shop, Marketing, Supply Chain, Categories
Total 112 All read-only by default

For full tool details, see the source code in each servers/<platform>/src/ directory. | get_product_list | Product catalog with pricing and stock | /product/list | | get_shop_info | Merchant shop information | /shop/info |

Security

This project handles sensitive e-commerce API credentials. Our security guarantees:

  • šŸ”’ Runs locally — API keys and secrets never leave your machine
  • šŸ“– Open source — every line of code is auditable
  • šŸ‘ļø Read-only by default — all 112 tools only read data; zero write/modify/delete operations
  • šŸ“” No telemetry — no usage data is collected, tracked, or transmitted
  • šŸ–„ļø Direct API calls — connects directly to platform APIs; no intermediate server or proxy
  • šŸ”‘ Env-var config — credentials are loaded from environment variables, never hardcoded

Roadmap

Phase 1 — Foundation āœ…

  • å·Øé‡å¼•ę“Ž: Ad campaign & report read APIs
  • å·Øé‡åƒå·: E-commerce advertising (shared Ocean Engine auth)
  • ęŠ–åŗ—: Order, product, after-sale read APIs
  • 京东: Order, product, shop read APIs

Phase 2 — Mid-Tier Expansion āœ…

  • ę·˜å® (Taobao): Full Top API integration — orders, products, logistics
  • ę‹¼å¤šå¤š (Pinduoduo): Orders, products, promotion tools

Phase 3 — Long-Tail Coverage āœ…

  • 快手 (Kuaishou): Orders, products, logistics
  • å°ēŗ¢ä¹¦ (Xiaohongshu): Orders, products, inventory
  • å¾®äæ”å°åŗ— (WeChat Store): Orders, products, after-sale

Phase 4 — Exploratory ⬜

  • 闲鱼, ē¾Žå›¢, é„æäŗ†ä¹ˆ (API access pending policy)

Related Resources

Citation

If you use mcp-cn-commerce in your research or project:

@software{mcp-cn-commerce,
  author = {Wang, Zhuo},
  title = {mcp-cn-commerce: MCP Servers for Chinese E-Commerce Platforms},
  year = {2026},
  url = {https://github.com/TonyWang-hub/mcp-cn-commerce}
}

Star History

Star History Chart

License

MIT — see LICENSE.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured