Workflow overview
Claude acts as the operator, MCP provides the connection, and Medux performs the image processing. You only need a source image, a target-face image, and a clear instruction.
Before you start
swap_face_src.jpgswap_face_target.jpgStep-by-step
Give Claude one clear instruction
Tell Claude exactly which file is the source, which file provides the replacement face, and that Medux should be called through MCP.
Swap the face in "swap_face_src.jpg" with the face in "swap_face_target.jpg".
Use Medux through MCP. Upload the files with curl, run the face swap, and save the result locally.
Let Claude request upload URLs
Claude calls the Medux integration to create upload locations for both images. This keeps the transfer step inside the same workflow.

Upload both files with curl
The recording uses a short shell script to upload the source and target images. Keep paths quoted so filenames with spaces are handled safely.
curl -X PUT "$SOURCE_UPLOAD_URL" -H "Content-Type: image/jpeg" --data-binary @"/path/to/swap_face_src.jpg"
curl -X PUT "$TARGET_UPLOAD_URL" -H "Content-Type: image/jpeg" --data-binary @"/path/to/swap_face_target.jpg"Run the Medux face-swap task
After both files are available, Claude submits the face-swap job to Medux and polls the task until processing is complete.

Open or download the result
When the task finishes, Claude returns a direct result URL and a ready-to-run command for saving the generated image locally.
curl -L -o "/path/to/face_swap_result.png" "$MEDUX_RESULT_URL"
Example result
See the face-swap result
The three images below show the complete workflow: src is the original source image, tgt is the reference target image, and rst is the final generated result.



Why this workflow is useful
You do not need to build a custom API client or move between multiple dashboards. Claude understands the request, MCP exposes the Medux tools, and Medux handles the image transformation.
Quick checklist
Explore related workflows
Continue with a nearby Medux workflow or compare how the same task works across Claude MCP and Codex MCP.