Skip to main content
Glama
chatmcp

HeyBeauty MCP Server

by chatmcp

HeyBeauty MCP 服务器

HeyBeauty虚拟试穿

这是一个基于 TypeScript 的 MCP 服务器,使用 HeyBeauty API 实现虚拟试妆。它通过以下方式演示了 MCP 的核心概念:

  • 用 URI 和元数据表示服装的资源

  • 提交试用任务和查询任务信息的工具。

  • 提示试穿布料。

快速入门

  1. 申请HeyBeauty API Key

  2. 将服务器配置添加到 MCP 客户端配置文件

{
  "mcpServers": {
    "heybeauty-mcp": {
      "command": "npx",
      "args": ["-y", "heybeauty-mcp"],
      "env": {
        "HEYBEAUTY_API_KEY": "your_heybeauty_api_key"
      }
    }
  }
}

资源

  • 通过cloth:// URI列出并访问衣服

  • 每块布料都有一个 ID、名称、描述、图片 URL 和元数据

  • 用于简单内容访问的纯文本 MIME 类型

工具

  • submit_tryon_task - 提交尝试任务

    • 将用户图片 url、衣服图片 url、衣服 id 和衣服描述作为必需参数

    • 将 tryon 任务存储在服务器状态

  • query_tryon_task - 查询 tryon 任务

    • 将任务 ID 作为必需参数

    • 返回tryon任务信息

提示

  • tryon_cloth - 特赖恩布

    • 将用户图片 url、衣服图片 url、衣服 id 和衣服描述作为必需参数

    • 返回 LLM tryon 的结构化提示

资源

  • cloth:// - 衣服的 URI

    • 每块布料都有一个 ID、名称、描述、图片 URL 和元数据

Related MCP server: MCP Server Playground

发展

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

安装

要与 Claude Desktop 一起使用,请添加服务器配置:

在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "heybeauty-mcp": {
      "command": "node",
      "args": ["/path/to/heybeauty-mcp/build/index.js"]
    },
    "env": {
      "HEYBEAUTY_API_KEY": "your_heybeauty_api_key"
    }
  }
}

按照此文档获取 HeyBeauty API Key

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

-
security - not tested
A
license - permissive license
-
quality - not tested

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chatmcp/heybeauty-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server