HeyBeauty Virtual TryOn
STDIOTypeScript-based MCP server implementing virtual tryon using HeyBeauty API.
TypeScript-based MCP server implementing virtual tryon using HeyBeauty API.
HeyBeauty Virtual TryOn
This is a TypeScript-based MCP server that implements virtual tryon using HeyBeauty API. It demonstrates core MCP concepts by providing:
apply for HeyBeauty API Key
add the server config to MCP Client config file
{ "mcpServers": { "heybeauty-mcp": { "command": "npx", "args": ["-y", "heybeauty-mcp"], "env": { "HEYBEAUTY_API_KEY": "your_heybeauty_api_key" } } } }
cloth://
URIssubmit_tryon_task
- Submit a tryon task
query_tryon_task
- Query a tryon task
tryon_cloth
- Tryon cloth
cloth://
- URI for clothes
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On 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" } } }
Follow this document to get HeyBeauty API Key.
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.