关于 shelfatlas-catalog
shelfatlas-catalog 是查询丹麦杂货商品、优惠、连锁品牌和门店的 MCP 服务,支持实时比价及按名称或 EAN 查找商品,并在获批时提供社区库存信号。
主要功能
- 01按名称和 EAN 搜索商品
- 02实时查询优惠并比较价格
- 03按地理位置查找附近门店
- 04列出零售连锁品牌和门店
- 05提供获批的社区库存信号
适用场景
- 01查找商品当前的最低价格
- 02使用 EAN-13 条码查询商品
- 03查找附近的杂货店
- 04查看优惠价格及有效期
MCP 相关
通过 Streamable HTTP 或本地 stdio 服务向 MCP 客户端提供杂货目录工具。调用工具需要 API 密钥。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://api.shelfatlas.com/api/v1/mcpclaude mcp add --transport http slambertdk-shelfatlas-catalog https://api.shelfatlas.com/api/v1/mcp{"mcpServers":{"slambertdk-shelfatlas-catalog":{"type":"http","url":"https://api.shelfatlas.com/api/v1/mcp"}}}在 Cursor 中打开{"servers":{"slambertdk-shelfatlas-catalog":{"type":"http","url":"https://api.shelfatlas.com/api/v1/mcp"}}}在 VS Code 中打开{"mcpServers":{"slambertdk-shelfatlas-catalog":{"type":"http","url":"https://api.shelfatlas.com/api/v1/mcp"}}}{"mcpServers":{"slambertdk-shelfatlas-catalog":{"serverUrl":"https://api.shelfatlas.com/api/v1/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
https://api.shelfatlas.com/api/v1/mcp需要授权工具
详细介绍
ShelfAtlas MCP 服务
将丹麦的杂货目录和货架数据作为 MCP 工具提供。询问 “现在 Pepsi Max 哪里最便宜?”,即可获得实时结构化答案:丹麦各大连锁店的当前优惠、附近门店地理搜索、商品名称和 EAN 查询,以及专门打造的 find_cheapest_offers 工具。经批准后,还会提供社区货架库存信息,并附上确认数量。
- 端点:
https://api.shelfatlas.com/api/v1/mcp(Streamable HTTP) - 身份验证:
Authorization: Bearer sa_live_<your-key>— 在 https://app.shelfatlas.com 创建免费密钥 - 文档: https://shelfatlas.com/docs(工具、配额、错误代码)
工具
| 工具 | 可回答的问题 |
|---|---|
search_products | 将商品名称解析为 id + EAN,然后再调用其他工具 |
get_product_by_ean | 通过 EAN-13 条形码查询商品 |
find_cheapest_offers | “这个商品现在在哪里最便宜?”——实时优惠,按价格从低到高排序,并解析连锁店 |
search_catalog_offers | 查询目录优惠及价格和有效期(默认仅实时优惠;可按连锁店/EAN/商品筛选) |
get_stores | 分页列出门店,或按距离由近到远进行地理搜索 |
list_chains | 所有零售连锁店(id、slug、名称) |
Claude Desktop
Claude Desktop 通过 mcp-remote 连接远程服务:
{
"mcpServers": {
"shelfatlas": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.shelfatlas.com/api/v1/mcp"],
"env": {
"MCP_REMOTE_HEADER_AUTHORIZATION": "Bearer sa_live_<your-key>"
}
}
}
}
支持原生 Streamable HTTP 的客户端可通过 Authorization 标头直接连接到端点。
本地运行(stdio)
对于仅支持 stdio 的客户端,本仓库还提供了一个小型本地服务,可通过 stdio 提供托管工具(Node.js 20+):
git clone https://github.com/SlambertDK/shelfatlas-mcp && cd shelfatlas-mcp
npm ci
SHELFATLAS_API_KEY=sa_live_<your-key> node index.js
也可以使用 Docker:docker build -t shelfatlas-mcp .,然后运行
docker run -i --rm -e SHELFATLAS_API_KEY=sa_live_<your-key> shelfatlas-mcp。
无需密钥即可列出工具;调用工具则需要设置 SHELFATLAS_API_KEY。
server.json 是 MCP 官方注册表的清单。
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。