这是一个基于模型上下文协议(MCP)的服务器,借助 Puppeteer 为 Shufersal 网站提供自动化购物功能。该服务器使大语言模型(LLMs)能够与 Shufersal 的在线购物平台进行交互,搜索商品、创建购物清单并将商品添加到购物车。
create_shopping_list_table 根据你的需求或食谱链接创建购物清单。open_shufersal 打开 Shufersal 网站(需要用户登录)。search_shufersal 搜索与购物清单中的商品相匹配的商品。add_to_shufersal_cart 将搜索到的商品添加到购物车。open_shufersal
hasCreatedShoppingList(布尔值):是否事先创建了购物清单。search_shufersal
query(字符串):商品搜索查询词(例如,'牛奶'、'面包'、'西红柿')。add_to_shufersal_cart
product_id(字符串):搜索结果中的商品 ID。sellingMethod(字符串):搜索结果中的销售方式。qty(数字):要添加到购物车的商品数量。comment(字符串,可选):商品的可选备注。read_webpage_content
url(字符串):要读取的网页 URL。create_shopping_list_table
recipe(数组):包含商品名称、数量、计量单位和可选品牌的食谱配料数组。该服务器提供以下访问权限:
console://logs)以下是使用 Shufersal MCP 服务器的 Claude Desktop 配置:
{
"mcpServers": {
"shufersal": {
"command": "node",
"args": ["/dist/index.js" ],
}
}
}
使用自定义用户数据目录的配置:
{
"mcpServers": {
"shufersal": {
"command": "node",
"args": ["/dist/index.js" , "--user-data-dir=" ],
}
}
}
Windows 系统的配置:
{
"mcpServers": {
"shufersal": {
"command": "" ,
"args": ["/dist/index.js" ],
}
}
}
npm run build
npm run watch
npm run lint
npm run lint:fix
此 MCP 服务器采用 MIT 许可证。这意味着你可以自由使用、修改和分发该软件,但需遵守 MIT 许可证的条款和条件。
本工具会自动与 Shufersal 网站进行浏览器交互,并将浏览器数据存储在本地。请注意:
./puppeteer-user-data/ 目录中(该目录已从 Git 中排除)。