tmall-seller-mcp
This server is an MCP bridge that lets AI assistants control a Chrome browser to automate Tmall/Taobao seller backend tasks, including login, page navigation, and review management.
Login & session management: Log in to Tmall/Taobao seller accounts, check login status, and reuse saved sessions.
Account management: Save, retrieve, and reuse multiple store account credentials locally.
Browser/page automation: Navigate to URLs, read page content, click elements, type text, take screenshots, execute custom JavaScript, wait, and close the browser.
Review management: Filter reviews by date, sentiment, content type, reply status, or keyword; fetch structured review lists; reply to individual reviews.
Cross-platform support: Works with Windows, macOS, and Linux via auto-detected Chrome installation.
Provides automated login to the Taobao/Tmall seller backend, with support for managing multiple shop accounts, navigating pages, extracting content, clicking and typing elements, and taking screenshots.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tmall-seller-mcp Log in to my Tmall seller account and check today's orders"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
天猫商家登录 MCP 服务器
自动登录天猫/淘宝商家后台的 MCP (Model Context Protocol) 服务器,支持会话保持、页面操作、多店铺账号管理。
快速开始
前置条件
Node.js >= 18(下载)
Chrome 浏览器(会自动检测以下路径)
Windows:
C:\Program Files\Google\Chrome\Application\chrome.exemacOS:
/Applications/Google Chrome.appLinux:
/usr/bin/google-chrome
安装
方式一:一键安装(推荐)
从 Releases 下载最新 ZIP 包
解压到任意目录
双击
install.bat(Windows)或运行./install.sh(macOS/Linux)安装完成后,将项目路径配置到你的 AI 工具中
方式二:从源码安装
git clone https://github.com/jdh1229/tmall-seller-mcp.git
cd tmall-seller-mcp
npm install配置
在你的 AI 工具(WorkBuddy / 千问办公 / Claude Desktop 等)的 MCP 配置中添加:
{
"mcpServers": {
"tmall-seller-mcp": {
"command": "node",
"args": ["<项目路径>/src/index.js"]
}
}
}将 <项目路径> 替换为你实际解压/克隆的目录,例如:
Windows:
C:\\Users\\你的用户名\\Desktop\\tmall-seller-mcp\\src\\index.jsmacOS/Linux:
/Users/你的用户名/tmall-seller-mcp/src/index.js
使用
配置完成后重启 AI 工具,直接对话即可:
"帮我登录天猫商家后台"
"查看今天的评价"
"截图当前页面"
首次登录需要提供店铺账号和密码,之后会自动保存并复用。
Related MCP server: mcp-chrome-server
技术文档
架构
┌──────────────┐ MCP 协议 ┌──────────────────┐ Playwright ┌──────────────┐
│ AI 客户端 │ ◄──────────────► │ MCP 服务器 │ ◄──────────────► │ Chrome │
│ (WorkBuddy等) │ │ (src/index.js) │ │ 浏览器 │
└──────────────┘ └──────────────────┘ └──────────────┘工具列表
基础操作
工具名 | 描述 | 参数 |
| 登录商家后台 |
|
| 检查当前登录状态 | 无 |
| 导航到指定页面 |
|
| 获取页面内容 |
|
| 点击页面元素 |
|
| 在输入框中填写文本 |
|
| 截取当前页面截图 |
|
| 执行 JavaScript 代码 |
|
| 等待指定时间 |
|
| 关闭浏览器 | 无 |
账号管理
工具名 | 描述 | 参数 |
| 获取已保存的所有店铺账号 | 无 |
| 保存店铺账号(不登录) |
|
评价管理
工具名 | 描述 | 参数 |
| 筛选评价(自动清除旧条件后搜索) |
|
| 获取当前页面的评价列表(结构化数据) | 无 |
| 回复单条评价 |
|
评价管理使用示例:
// 查看今天的负面评价
tmall_navigate({ url: "https://myseller.taobao.com/home.htm/comment-manage/list/rateWait4PC" })
tmall_filter_reviews({ date: "today", sentiment: "negative" })
tmall_get_review_list()
// 回复第一条正面评价
tmall_filter_reviews({ sentiment: "positive" })
tmall_reply_review({ reviewIndex: 0, replyText: "感谢您的好评!" })后续将陆续添加订单管理、商品管理、退款管理等页面的专用工具。
数据存储
账号信息:
~/.workbuddy/tmall-seller-accounts.json会话状态:
~/.workbuddy/tmall-seller-states/<用户名>.json调试截图: 系统临时目录下的
tmall-seller-mcp-debug/
开发
# 安装依赖
npm install
# 启动服务器
npm start
# 运行测试
npm test安全
账号密码仅存储在本地文件系统
不上传到任何外部服务器
每个账号的会话状态独立存储
使用 Playwright 的
storageState管理 cookie/session
跨平台
Chrome 路径自动检测逻辑见 src/browser.js 的 findChromePath() 函数。
许可证
MIT
注意事项
本工具仅供学习和研究使用
请遵守天猫/淘宝的使用条款
不要将账号信息分享给他人
Available Tools
10 toolstmall_check_loginC
检查当前登录状态
Inputs: no named parameters.
tmall_clickB
点击页面元素(需要先登录)
Inputs: selector (required).
tmall_closeD
关闭浏览器
Inputs: no named parameters.
tmall_get_accountsB
获取已保存的所有店铺账号
Inputs: no named parameters.
tmall_get_contentA
获取页面内容(需要先登录)
Inputs: selector.
tmall_loginA
登录天猫/淘宝商家后台。首次使用需要提供账号密码,之后会自动保存并复用。
Inputs: password (required), username (required), shopName.
tmall_save_accountA
保存店铺账号(不登录,仅保存)
Inputs: password (required), username (required), shopName.
tmall_screenshotA
截取当前页面截图(需要先登录)
Inputs: path.
tmall_typeB
在输入框中填写文本(需要先登录)
Inputs: text (required), selector (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct action: login, login-status check, navigation, content retrieval, click, typing, screenshot, account management, and browser close. There is no meaningful overlap between tools.
All tools share the tmall_ prefix and use consistent verb-based naming, with verb_noun forms for operations like get_content, get_accounts, and save_account. The naming pattern is uniform and predictable.
With 10 tools, the set is well-scoped for browser automation of a seller backend. Each tool represents a necessary core capability without redundancy or bloat.
The tool surface covers the main browser automation lifecycle: login, navigation, interaction, content extraction, screenshots, and account management. Minor omissions like logout or explicit waiting are present, but agents can work around them.
Maintenance
Related MCP Connectors
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Browser automation MCP for whole web tasks in a cloud browser: saved logins, bot checks, replays.
Automate cloud Chrome—navigate, click, type, screenshot, run code, record screen video
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables browser automation with anti-detection features, including navigation, interaction, form filling, and session management.2228 PyPI10MIT
- FlicenseCqualityDmaintenanceEnables browser automation, including navigation, form filling, login with CAPTCHA handling, and element manipulation, using a Chrome-based MCP server.364-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that exposes browser automation tools and Taobao product search/detail lookup via Playwright. It requires a logged-in Taobao session and is best-effort scraping, not an official API.1ISC
- AlicenseAqualityCmaintenanceEnables querying Pinduoduo merchant backend data through a logged-in Chrome session via CDP, including reviews, customer service chat, product analytics, and promotion reports.152MIT