How to swap clothes and outfits in an image with Claude MCP and Medux

Use Claude and Medux through MCP to transfer clothing from a reference image onto the target subject. This guide keeps file roles and constraints in context, reviews the proposed call, and validates the returned result.

Image editingOutfit swapClaudeMCPMedux
Claude prompt requesting an outfit change with Medux
A single prompt starts the complete outfit-change workflow.

What you will do

Claude coordinates the workflow while Medux performs the image transformation.

Prepare two imagesSend one promptUpload assetsRun MeduxSave output

Claude-specific workflow

Run AI Clothes Swap as a Claude MCP workflow

Keep the goal, source assets, and constraints together in the conversation. Ask Claude to restate the target person image and outfit reference image, with each role clearly assigned before proposing the Medux outfit-swap tool. That context checkpoint makes the file roles and desired outcome easy to correct before any Medux call is approved.

Claude prompt pattern

Using the assets and requirements in this conversation, help me swap clothes and outfits in an image with Medux MCP.
Restate which input fulfills each role: the target person image and outfit reference image, with each role clearly assigned.
Propose the the Medux outfit-swap tool call and summarize its arguments before asking for approval.
When it finishes, return the outfit-swapped image with a checklist confirming that the requested clothing is transferred while the target identity and body position remain consistent.

Context checkpoint

Have Claude summarize the intended transformation, identify every source asset by role, and list the important constraints. Review that summary together with the proposed tool arguments; correct the conversation first if a file, order, time range, or setting is ambiguous.

Result verification

Keep the Medux task ID in the conversation while Claude checks progress. When processing ends, ask for the outfit-swapped image plus a concise validation checklist confirming that the requested clothing is transferred while the target identity and body position remain consistent.

Workflow at a glance

The video demonstrates a compact five-stage flow. Claude reads the request, locates the local files, obtains upload URLs, sends the assets to Medux, starts the outfit-swap task, monitors processing, and saves the returned image.

Prepare images
Describe the change
Upload through MCP
Run outfit swap
Download result

Step-by-step tutorial

01

Prepare the source and clothing-reference images

Place the image of the person and the reference image of the desired outfit in the same project folder. In the example, the source file is girl.JPEG and the clothing reference is clothes.PNG.

Source imageThe person whose outfit will be changed.
Clothing referenceThe outfit Medux should transfer to the person.
02

Give Claude one clear instruction

Describe the target result, identify both files, and tell Claude to use Medux through MCP. The tutorial also asks Claude to upload the files with a curl command.

Example prompt
Using Medux, change the girl's outfit in girl.JPEG to match the clothing shown in clothes.PNG. Upload the files using a curl command.
Keep the request specific. Name the source image, the clothing-reference image, and the exact edit you want. Claude can then select the correct Medux tool without a separate dashboard workflow.
Claude receives the outfit-change instruction
Claude interprets the request and begins planning the Medux workflow.
03

Let Claude prepare and upload both assets

Claude checks that the files exist, requests upload locations, and uploads the two images. In the recorded workflow, it creates a small helper when direct sandbox uploads are restricted, then completes the uploads through the browser or terminal.

# Generic upload pattern used by the workflow
curl -X PUT "<MEDUX_PRESIGNED_UPLOAD_URL>" \
  -H "Content-Type: image/jpeg" \
  --data-binary "@./girl.JPEG"

curl -X PUT "<MEDUX_PRESIGNED_UPLOAD_URL>" \
  -H "Content-Type: image/png" \
  --data-binary "@./clothes.PNG"
Claude uploads source and clothing reference files
Claude prepares upload URLs and sends both images before starting the edit.
Terminal showing successful image uploads
The terminal confirms that both source files were uploaded successfully.
04

Run the Medux outfit-swap tool

After both uploads succeed, Claude calls the Medux outfit-change tool through MCP. It passes the uploaded source image and clothing reference, starts the task, and waits for Medux to finish the AI rendering.

You do not need to write the API integration manually. Claude handles the tool selection, parameters, task submission, and status checks through the MCP connection.
Claude starts the Medux outfit swap task
The task moves from asset upload to Medux processing.
05

Download and review the generated image

When processing is complete, Claude receives the output URL, downloads the generated image into the project folder, and reports the saved file path. Open the result and verify that the clothing changed while the person, pose, and overall scene remain consistent.

Claude reports successful outfit swap completion
Claude confirms completion and saves the final image locally.

Example result

Source, reference, and generated result

Below is a complete visual example for this tutorial: src is the original source image, tgt is the outfit reference image, and rst is the final Medux output.

src
Source Image for the Medux outfit change example
Source Image
Original person image used as the source.
tgt
Target Reference for the Medux outfit change example
Target Reference
Reference outfit image used to guide the clothing change.
rst
Generated Result for the Medux outfit change example
Generated Result
Final outfit-change result generated by Medux.

Result

The final output keeps the original subject and composition while replacing the outfit with the clothing shown in the reference image. The full workflow stays inside Claude: one instruction, one MCP connection, and a downloadable Medux result.

✓ Source identity retained
✓ Reference outfit transferred
✓ Output saved locally

Recommended prompt template

Reuse this structure for other outfit-change tasks.

Using Medux through MCP, change the outfit of the person in <SOURCE_IMAGE> to match the clothing in <REFERENCE_IMAGE>.

Preserve the person's identity, pose, body proportions, lighting, and background. Upload both files, run the outfit-swap task, monitor the result, and save the final image locally.

Quick answer

How do I run AI Clothes Swap with Claude MCP?

Claude can use the Medux outfit-swap tool through Medux MCP to transfer clothing from a reference image onto the target subject. The workflow keeps input roles and constraints in context, reviews the proposed call, and checks the returned result.

What does this Medux tutorial cover?

Claude can use the Medux outfit-swap tool through Medux MCP to transfer clothing from a reference image onto the target subject. The workflow keeps input roles and constraints in context, reviews the proposed call, and checks the returned result.

Related topics: AI Clothes Swap · AI Clothes Swap with Claude MCP · Medux MCP tutorial