MCP server
Wearo runs a remote Model Context Protocol (MCP) server. Once connected, an AI assistant can create a virtual try-on from two photos, follow its progress and check your credit balance.The server needs a Wearo account with credits. Each try-on uses the credits of the account you connect, exactly like the Direct API.
Connect your assistant
Sign in with your Wearo account when the assistant asks. You approve the connection on a Wearo consent page. No API key is needed. See Authentication for how the sign-in works.- Claude
- ChatGPT
- Cursor
- Claude Code
- Open Settings, then Connectors.
- Choose Add custom connector.
- Enter the URL
https://api.wearo.io/functions/v1/mcpand add it. - Click Connect and approve the connection on the Wearo page.
mcp.json
Tools
create_try_on
The tool waits up to about 40 seconds. If the image is ready, it returns
status: "completed" with try_on_id, result_url and credits_remaining. If generation takes longer, it returns status: "pending" and a try_on_id: call get_try_on with it after about 30 seconds.
get_try_on
It returns
pending, completed (with result_url) or failed (with error_code). It only reads try-ons of the connected account. A try_on_id with no recorded result returns pending; if nothing appears after about five minutes, the try-on did not complete and you can create a new one.
get_credit_balance
Takes no input and returnscredits_remaining.
Tool annotations
Example prompts
- “Show me how this dress looks on me. My photo: https://example.com/me.jpg, the dress: https://example.com/dress.jpg.”
- “Try this jacket on the person in this photo and give me the link to the result.”
- “How many Wearo credits do I have left?”
Where the result is stored
Only use photos of people who agreed to it: yourself, or someone who gave you permission. The assistant can only reach images that are publichttps links; links to private or local addresses are refused.
Errors
Tool errors come back withisError: true and a message. Credits used by a generation that then fails are refunded.
The troubleshooting guide covers the other API errors.