Install guide · Claude Desktop
Install mcp-cn-commerce for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
Add to Cursor: mcp-cn-commerceInstall in VS Code: mcp-cn-commerceInstall in VS Code Insiders: mcp-cn-commerce
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "mcpServers": { "tonywang-hub-mcp-cn-commerce": { "command": "uvx", "args": [ "mcp-cn-commerce" ], "env": { "OCEANENGINE_ACCESS_TOKEN": "YOUR_OCEANENGINE_ACCESS_TOKEN", "DOUDIAN_APP_KEY": "YOUR_DOUDIAN_APP_KEY", "DOUDIAN_APP_SECRET": "YOUR_DOUDIAN_APP_SECRET", "DOUDIAN_SHOP_ID": "", "DOUDIAN_ACCESS_TOKEN": "YOUR_DOUDIAN_ACCESS_TOKEN", "JD_APP_KEY": "YOUR_JD_APP_KEY", "JD_APP_SECRET": "YOUR_JD_APP_SECRET", "JD_ACCESS_TOKEN": "YOUR_JD_ACCESS_TOKEN", "TAOBAO_APP_KEY": "YOUR_TAOBAO_APP_KEY", "TAOBAO_APP_SECRET": "YOUR_TAOBAO_APP_SECRET", "TAOBAO_ACCESS_TOKEN": "YOUR_TAOBAO_ACCESS_TOKEN", "PINDUODUO_CLIENT_ID": "YOUR_PINDUODUO_CLIENT_ID", "PINDUODUO_CLIENT_SECRET": "YOUR_PINDUODUO_CLIENT_SECRET", "PINDUODUO_ACCESS_TOKEN": "YOUR_PINDUODUO_ACCESS_TOKEN", "KUAISHOU_APP_KEY": "YOUR_KUAISHOU_APP_KEY", "KUAISHOU_APP_SECRET": "YOUR_KUAISHOU_APP_SECRET", "KUAISHOU_SIGN_SECRET": "YOUR_KUAISHOU_SIGN_SECRET", "KUAISHOU_ACCESS_TOKEN": "YOUR_KUAISHOU_ACCESS_TOKEN", "XHS_CLIENT_ID": "YOUR_XHS_CLIENT_ID", "XHS_CLIENT_SECRET": "YOUR_XHS_CLIENT_SECRET", "XHS_ACCESS_TOKEN": "YOUR_XHS_ACCESS_TOKEN", "WX_APP_ID": "YOUR_WX_APP_ID", "WX_APP_SECRET": "YOUR_WX_APP_SECRET", "WX_ACCESS_TOKEN": "YOUR_WX_ACCESS_TOKEN", "WX_TOKEN_MODE": "" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |