npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

clothing-servermcp

v1.0.7

Published

A virtual try-on service using FastMCP framework

Downloads

592

Readme

Virtual Try-On Service

This is a FastMCP service that provides virtual try-on capabilities for clothing. Users can upload clothing and model images, and the service will generate a composite image showing the clothing on the model. The service implements the Model Context Protocol (MCP) for seamless integration with compatible clients.

Features

  1. Virtual Try-On: Upload clothing and model images to generate a try-on result
  2. Outfit Recommendations: Get recommendations for outfits with fabric materials and prices

Prerequisites

  • Python 3.10+ (required for FastMCP)
  • Node.js and npm for running with npx

Installation

Option 1: Manual Installation

Install the required Python packages:

pip install requests fastmcp

Alternative installation using uv (recommended):

uv pip install requests fastmcp

Option 2: Using Installation Scripts (Windows)

For Windows users, you can use the provided installation scripts:

In Command Prompt:

install.bat

In PowerShell:

.\install.ps1

Set API Key

Set your ARK API Key as an environment variable:

export ARK_API_KEY=your_api_key_here

On Windows (Command Prompt):

set ARK_API_KEY=your_api_key_here

On Windows (PowerShell):

$env:ARK_API_KEY="your_api_key_here"

Or you can pass it as a parameter in the API request.

Usage

Running with npx (Recommended)

To run the service directly with npx:

npx clothing-servermcp

This will automatically download and run the latest version of the service.

Running locally

Start the service:

python clothing_mcp_server.py

The service will start on http://0.0.0.0:8000 with SSE transport.

Using with MCP Clients

This service implements the Model Context Protocol (MCP) and can be used with any MCP-compatible client. The service exposes two tools:

  1. virtual_tryon - Performs virtual try-on by swapping clothing in the model image
  2. recommend_outfits - Recommends outfits with fabric materials and prices

These tools can be accessed through the MCP interface when connecting to the service.

Testing

A test script is provided to verify that the service is working correctly:

python test_fastmcp_service.py

This script will test all endpoints and display the results.

Client Example

An example client is provided in fastmcp_client_example.py to demonstrate how to use the service from another Python application with FastMCP:

python fastmcp_client_example.py

Troubleshooting

If you encounter a 401 Unauthorized error when using the virtual try-on feature, check the following:

  1. Ensure your API key is correct and active
  2. Verify that your API key has the necessary permissions for the image generation API
  3. Check if the API endpoint or authentication method has changed
  4. Confirm that you have network connectivity to the ARK API endpoint

The service logs detailed information about API requests and responses, which can help diagnose issues.