Skip to main content

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 uses the Streamable HTTP transport and keeps no session between requests.
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.
  1. Open Settings, then Connectors.
  2. Choose Add custom connector.
  3. Enter the URL https://api.wearo.io/functions/v1/mcp and add it.
  4. Click Connect and approve the connection on the Wearo page.
To use an API key instead of OAuth (for a script or a client without OAuth support), send it as a header:
mcp.json
Menu names vary between client versions. If a step differs, look for the option to add a custom or remote MCP server.

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 returns credits_remaining.

Tool annotations

Example prompts

Where the result is stored

The result image is stored by Wearo and served at a public URL that cannot be guessed. The URL is not signed: anyone who has the link can open the image. Share it only with people you want to see it.
Only use photos of people who agreed to it: yourself, or someone who gave you permission. The assistant can only reach images that are public https links; links to private or local addresses are refused.

Errors

Tool errors come back with isError: true and a message. Credits used by a generation that then fails are refunded. The troubleshooting guide covers the other API errors.