这是一个 Model Context Protocol (MCP) 服务器,它将 FindMine 强大的产品造型和搭配建议功能与 Claude 以及其他 MCP 兼容应用程序相结合,为用户提供便捷的购物造型体验。
此 MCP 服务器连接到 FindMine 的造型 API,并通过 Model Context Protocol 将其功能暴露给大型语言模型。用户能够:
product:/// URI 格式look:/// URI 格式# 直接安装并运行(推荐)
npx findmine-mcp
# 或者全局安装
npm install -g findmine-mcp
findmine-mcp
docker pull findmine/mcp-server:latest
docker run -it --rm findmine/mcp-server:latest
git clone https://github.com/your-repository.git
cd your-repository
npm install
npm start
以下是推荐的环境变量配置:
| 属性 | 详情 |
|---|---|
NODE_ENV |
设置运行环境,可以是 development 或 production,默认值为 development |
PORT |
指定服务器监听的端口,默认值为 3000 |
API_KEY |
FindMine API 的密钥,默认值为 your-api-key |
DATABASE_URL |
数据库连接 URL,默认值为 sqlite://db.sqlite |
{
"name": "get_style_guide",
"arguments": {
"category": "color_theory",
"occasion": "wedding"
}
}
{
"name": "get_complete_the_look",
"arguments": {
"product_id": "P12345",
"product_color_id": "C789"
}
}
{
"name": "get_visually_similar",
"arguments": {
"product_id": "P12345",
"product_color_id": "C789",
"limit": 5
}
}
src/
├── server.js # 主服务器文件
├── routes/ # API 路由
│ ├── index.js # 主路由
│ └── style-guide.js # 风格指南路由
└── utils/ # 工具函数
└── api.js # FindMine API 接口封装
git clone https://github.com/your-repository.git
cd your-repository
git checkout -b feature/your-feature
git add .
git commit -m "添加你的提交信息"
git push origin feature/your-feature
# 登录到 npm
npm login
# 发布包
npm publish
# 更新版本号以备下次发布
npm version patch
# 构建 Docker 镜像
docker build -t findmine/mcp-server:latest .
# 登录到 Docker Hub
docker login
# 推送镜像
docker push findmine/mcp-server:latest
本项目根据 MIT License 分发。