MiriYou MCP server
Connect AI assistants such as Claude and ChatGPT to MiriYou, the AI virtual try-on app. Users sign in with their MiriYou account and, in a conversation, search clothes from partner online stores, try them on their own photo or on a MiriYou model, and browse their wardrobe – with the same account, profiles and credits as in the MiriYou app.
MCP endpointhttps://api.miriyou.com/mcp
Authorization serverhttps://miriyou.com
The server implements the Model Context Protocol over Streamable HTTP with OAuth 2.1 authorization, and the MCP Apps extension for an interactive widget.
Quick start
Claude
Settings → Connectors → Add custom connector. URL: https://api.miriyou.com/mcp, leave OAuth client fields empty. Then Connect and sign in to MiriYou.
ChatGPT
Settings → Apps & Connectors → developer mode → Create. MCP server URL: https://api.miriyou.com/mcp, authentication: OAuth.
Claude Code
claude mcp add --transport http miriyou https://api.miriyou.com/mcp, then /mcp to sign in.
MCP Inspector
npx @modelcontextprotocol/inspector → transport “Streamable HTTP”, URL https://api.miriyou.com/mcp, OAuth flow from the Auth panel.
Other MCP clients – configuration file (no API key or client secret; the client registers itself and the user signs in in the browser):
{"mcpServers": {"miriyou": {"type": "http", "url": "https://api.miriyou.com/mcp"}}}
Working with an AI assistant? Give it developer.miriyou.com/mcp.md – this documentation in Markdown – or /llms.txt.
A MiriYou account is required: it is created in the MiriYou app with Google or Facebook, and the same sign-in is used on the connection page.
Server
| Transport | Streamable HTTP. Stateless: every POST carries one JSON-RPC message and the bearer token; responses are application/json. No server-sent event stream and no MCP session – GET and DELETE return 405. |
| Protocol versions | 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26. 2026-07-28 is stateless: version and client capabilities in _meta of every request, server/discover (no sign-in needed), MCP-Protocol-Version, Mcp-Method and Mcp-Name headers checked against the body. Older versions are negotiated in initialize. An unsupported version returns -32022 with the supported list. |
| Capabilities | tools, resources (the widget). Server info: miriyou / “MiriYou”. |
| Language | Tool descriptions are in English; product names and texts follow the account language. |
| Origin | Browser requests are accepted only from chatgpt.com, chat.openai.com, claude.ai and claude.com; server-to-server requests send no Origin. |
Example
POST https://api.miriyou.com/mcp
Authorization: Bearer mya_…
Content-Type: application/json
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/call
Mcp-Name: search_products
{"jsonrpc":"2.0","id":1,"method":"tools/call",
"params":{"name":"search_products","arguments":{"query":"black dress","max_price":300},
"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28",
"io.modelcontextprotocol/clientCapabilities":{}}}}
Authentication
Every tool requires a signed-in MiriYou user. MiriYou is an OAuth 2.1 authorization server following the MCP authorization specification; assistants discover and register automatically.
- A request without a token gets
401 with WWW-Authenticate: Bearer resource_metadata="https://api.miriyou.com/.well-known/oauth-protected-resource". - The protected resource metadata (RFC 9728) names the authorization server
https://miriyou.com. - The client reads
https://miriyou.com/.well-known/oauth-authorization-server (RFC 8414) and registers itself at the registration endpoint (RFC 7591). - The user signs in on
https://miriyou.com/oauth/authorize with Google or Facebook and approves the connection; the consent page shows the credit balance. - The client exchanges the code with PKCE (
S256, required) and the resource parameter (RFC 8707) for tokens.
| Endpoint | URL |
| Authorization | https://miriyou.com/oauth/authorize |
| Token | https://miriyou.com/oauth/token |
| Registration | https://miriyou.com/oauth/register |
| Revocation | https://miriyou.com/oauth/revoke |
| Server metadata | https://miriyou.com/.well-known/oauth-authorization-server |
| Resource metadata | https://api.miriyou.com/.well-known/oauth-protected-resource |
| Scope | Allows |
catalog | Search the catalog, product details, price alerts. |
tryon | Create try-ons. Uses credits like the app. |
wardrobe | Account, profiles, credit balance, try-on results and the wardrobe. |
Clients are public (token_endpoint_auth_method: none). Registered redirect URIs must be HTTPS on claude.ai, claude.com, chatgpt.com or chat.openai.com, or loopback (localhost, 127.0.0.1) for local tools. Access tokens (mya_…) are valid for 60 minutes, refresh tokens (myr_…) for 30 days and are rotated on every refresh. Revoking either token disconnects the whole connection. Users see and disconnect their connected assistants at miriyou.com/oauth/connections. Deleting or locking the MiriYou account ends all connections.
Credits
Assistants use the same credit balance as the MiriYou app:
| Own photo | A try-on on the user's own photo, or with a garment image the user provides, costs 1 credit (paid credits are used before free ones). |
| MiriYou model | A try-on on a MiriYou model (AI-generated character) with a catalog product is free. |
| Failures | A failed try-on refunds the credit automatically. Repeating the same try-on within 2 minutes returns the existing one without a second charge. |
| Buying | Credits are bought only in the MiriYou app (Google Play / App Store), never in the chat. Free credits renew every 7 days on the free plan. |
Each product returns try_on_cost for the selected profile (0, 1, or null when the profile has no photo yet). Assistants are instructed to tell the user the cost before a paid try-on.
Errors and limits
Problems with a tool call are returned as a tool result with isError: true and structuredContent.error.code, so the assistant can explain them or retry:
| Code | Meaning |
invalid_arguments | Arguments do not match the tool's input schema. |
profile_not_found | Unknown profile_id – call get_account. |
product_not_found | The product is no longer in the catalog. |
no_photo, photo_processing, photo_rejected | The profile has no usable photo; it is added in the MiriYou app. |
not_enough_credits | No credits left; includes the balance and the free-credit renewal date. |
hourly_limit | Hourly try-on limit reached: 20 try-ons per account per hour in the MiriYou app and AI assistants together. |
try_on_not_found | Unknown try_on_id for this account. |
insufficient_scope | The connection was not granted the tool's scope. |
internal_error | Temporary problem – try again. |
| HTTP | Meaning |
401 | Missing, invalid or expired token; WWW-Authenticate points to the resource metadata. |
403 | Locked account or origin not allowed. |
429 | Rate limit: 60 requests per minute per account (bursts up to 60); Retry-After in seconds. |
400 | Malformed JSON-RPC, unsupported protocol version (-32022), headers not matching the body (-32020) or missing _meta fields (-32602). |
404 / 405 | Unknown method in protocol 2026-07-28 (-32601) / HTTP method other than POST. |
Privacy and support
The user's profile photo is never sent to the assistant – only product data, the try-on result and the credit balance, when the user asks for them. Result images are delivered with time-limited URLs. Photos are never sold and never used to train AI models without the user's separate consent. See the privacy policy and terms of service; the account and all photos can be deleted at miriyou.com/account/delete.
Questions and partnership requests: support@miriyou.com. Online stores can list their products in the catalog at miriyou.com/en/partners.