DSers MCP

Automate AliExpress/Alibaba dropshipping product import to Shopify or Wix via DSers. Bulk import, pricing rules, multi-store push.

DSers MCP Product — Automate Dropshipping AI tools/AliExpress to Shopify & Wix Import

Smithery npm MCP Registry Glama

An open-source MCP server to automate DSers product import, bulk edit variants, and push to Shopify or Wix using AI.

English | 中文


English

DSers MCP Product is an open-source MCP (Model Context Protocol) server that lets AI Agents automate the entire DSers import workflow — from AliExpress / Alibaba / 1688 product URL to Shopify or Wix store listing. Bulk import, batch edit variants, clean AliExpress titles, apply pricing rules, and push to multiple stores — all with a single sentence to your AI agent.

The server is hosted on Vercel, published on Smithery, npm, and the official MCP Registry.

Documentation

DocumentDescription
ARCHITECTURE.mdThree-layer architecture, directory structure, data flow
USAGE.mdInstallation, client config (Cursor, Claude Desktop), scenario examples
SKILL.mdAI agent instruction file — workflow, rules, push options, error handling
SKILL-CN.mdChinese human-readable guide for SKILL.md

Install via npm

npx @lofder/dsers-mcp-product

Set environment variables DSERS_EMAIL and DSERS_PASSWORD before running, or add to your MCP client config:

{
  "mcpServers": {
    "dsers-mcp-product": {
      "command": "npx",
      "args": ["-y", "@lofder/dsers-mcp-product"],
      "env": {
        "DSERS_EMAIL": "your-email",
        "DSERS_PASSWORD": "your-password"
      }
    }
  }
}

Also listed on the official MCP Registry.

Install via Smithery

npx @smithery/cli mcp add @dsersx/product-mcp --client cursor

Or browse at smithery.ai/server/@dsersx/product-mcp.

Install from Source

# Clone
git clone https://github.com/lofder/dsers-mcp-product.git
cd dsers-mcp-product

# Install
npm install

# Configure (copy and fill in your DSers credentials)
cp .env.example .env

# Type check
npx tsc --noEmit

# Run with Smithery dev
npx @smithery/cli dev ./src/index.ts

Project Structure

dsers-mcp-product/
├── src/
│   ├── index.ts              # MCP server entry — tool registration
│   ├── service.ts            # Import flow orchestration (7 operations)
│   ├── provider.ts           # DSers API adapter
│   ├── rules.ts              # Rule validation & application engine
│   ├── push-options.ts       # Push option normalization
│   ├── resolver.ts           # URL normalization (AliExpress/Alibaba/1688)
│   ├── job-store.ts          # File-based job persistence
│   └── dsers/                # Low-level DSers API wrappers
│       ├── config.ts         # Configuration & environment
│       ├── auth.ts           # Login, session cache, auto-refresh
│       ├── client.ts         # Authenticated HTTP client
│       ├── account.ts        # Store & user management APIs
│       ├── product.ts        # Import list & push APIs
│       └── settings.ts       # Shipping, pricing, billing APIs
├── test/                     # Smoke tests
├── smithery.yaml             # Smithery runtime config
├── package.json
├── tsconfig.json
└── .env.example

Seven Tools

#ToolTitleDescription
1dsers.store.discoverDSers Store & Rule DiscoveryDiscover stores, shipping profiles, supported rules
2dsers.rules.validatePricing & Content Rule ValidatorDry-run rule validation
3dsers.product.importAliExpress / Alibaba / 1688 ImportImport from URL(s), apply rules, get preview
4dsers.product.previewImport Draft PreviewReload a saved preview
5dsers.product.visibilityShopify / Wix Visibility ToggleToggle draft / published
6dsers.store.pushPush to Shopify / Wix StorePush single/batch/multi-store
7dsers.job.statusJob Status TrackerCheck push result

All tools include MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) and return structured error messages with {Error, Cause, Action} for AI agent consumption.

Three Prompts

Pre-built workflow templates that MCP clients can present to users:

PromptDescription
dsers.workflow.quick-importImport a single product and push to store as draft
dsers.workflow.bulk-importBatch import with pricing multiplier
dsers.workflow.multi-pushPush one product to all connected stores

Credentials

The server supports two credential sources (checked in order):

  1. HTTP headers x-dsers-email / x-dsers-password — used by Smithery and direct HTTP connections
  2. Environment variables DSERS_EMAIL / DSERS_PASSWORD — used by local stdio (Cursor, Claude Desktop)

See USAGE.md for setup details per connection method.

Environment Variables

VariableRequiredDescription
DSERS_EMAILYes*DSers account email (*or provide via HTTP header)
DSERS_PASSWORDYes*DSers account password (*or provide via HTTP header)
DSERS_ENVNoproduction (default) or test
DSERS_BASE_URLNoOverride API base URL
IMPORT_MCP_STATE_DIRNoJob state directory (default: .state)

Also Available

A Python version is available for local stdio deployments.

License

MIT


中文

DSers MCP Product 是一个开源的 MCP (Model Context Protocol) 服务器,让 AI Agent 自动完成 DSers 的整个商品导入流程 —— 从速卖通 / Alibaba / 1688 商品链接到 Shopify 或 Wix 店铺上架。批量导入、批量编辑变体、清理速卖通标题、应用定价规则、推送到多个店铺 —— 只需一句话给你的 AI agent。

服务已托管在 Vercel,并发布到 Smitherynpm 和官方 MCP Registry

文档

文档说明
ARCHITECTURE.md三层架构、目录结构、数据流
USAGE.md安装、客户端配置(Cursor、Claude Desktop)、使用场景
SKILL.mdAI agent 指令文件 — 工作流、规则、推送选项、错误处理
SKILL-CN.mdSKILL.md 的中文说明

通过 npm 安装

npx @lofder/dsers-mcp-product

运行前设置环境变量 DSERS_EMAILDSERS_PASSWORD,或在 MCP 客户端配置中添加:

{
  "mcpServers": {
    "dsers-mcp-product": {
      "command": "npx",
      "args": ["-y", "@lofder/dsers-mcp-product"],
      "env": {
        "DSERS_EMAIL": "your-email",
        "DSERS_PASSWORD": "your-password"
      }
    }
  }
}

同时已收录到官方 MCP Registry

通过 Smithery 安装

npx @smithery/cli mcp add @dsersx/product-mcp --client cursor

或在 smithery.ai/server/@dsersx/product-mcp 浏览和安装。

从源码安装

# 克隆
git clone https://github.com/lofder/dsers-mcp-product.git
cd dsers-mcp-product

# 安装
npm install

# 配置(复制并填写你的 DSers 账户信息)
cp .env.example .env

# 类型检查
npx tsc --noEmit

# 开发运行
npx @smithery/cli dev ./src/index.ts

七个工具

#工具标题说明
1dsers.store.discover店铺与规则发现查询店铺、配送方案、支持的规则
2dsers.rules.validate定价与内容规则校验规则校验试运行
3dsers.product.import速卖通/Alibaba/1688 导入从 URL 导入、应用规则、获取预览
4dsers.product.preview导入草稿预览重新加载已保存的预览
5dsers.product.visibilityShopify/Wix 可见性切换切换草稿 / 上架
6dsers.store.push推送到 Shopify/Wix单条/批量/多店铺推送
7dsers.job.status任务状态跟踪查看推送结果

所有工具均包含 MCP 注解(readOnlyHintdestructiveHintidempotentHintopenWorldHint),错误返回结构化格式 {Error, Cause, Action},方便 AI agent 理解和处理。

三个预设提示

MCP 客户端可直接展示给用户的工作流模板:

提示说明
dsers.workflow.quick-import一键导入单个商品并推送为草稿
dsers.workflow.bulk-import批量导入 + 统一定价倍率
dsers.workflow.multi-push一个商品推送到所有店铺

其他版本

也提供 Python 版本,适用于本地 stdio 部署。

许可证

MIT

相關伺服器