Skip to main content
Glama

fashio-mcp

MCP (Model Context Protocol) server for the Fashio API — lets Claude, Cursor, and other MCP-speaking agents generate on-model fashion photos directly, as tool calls.

Fashio turns a garment or product photo into publish-ready e-commerce photography and video with AI — virtual try-on, catalog packs, background removal, upscaling, reframing, and more. This package is the official MCP client for its public v1 REST API.

It's a thin wrapper: every tool here calls the same public api.fashiolabs.com v1 REST API a curl script would. No local business logic — the API is the source of truth.

Setup

  1. Create a free API key at fashiolabs.com → Profile → API Keys.

  2. Add Fashio to your MCP client — pick one of the two options below.

Option A — Remote (hosted, no install)

mcp.fashiolabs.com runs this same server as a hosted HTTP endpoint — nothing to install, just add the URL with your key as a bearer token:

{
  "mcpServers": {
    "fashio": {
      "url": "https://mcp.fashiolabs.com/mcp",
      "headers": {
        "Authorization": "Bearer fio_live_..."
      }
    }
  }
}

(Exact config UI/field names vary by client — Claude Desktop, Claude Code and Cursor all support adding a remote/HTTP MCP server by URL with custom headers as of 2026.)

Option B — Local (this package, stdio)

Runs on your own machine instead of a hosted endpoint — same tools, same billing.

Claude Desktop / Claude Code

claude_desktop_config.json (or .mcp.json for Claude Code):

{
  "mcpServers": {
    "fashio": {
      "command": "npx",
      "args": ["-y", "fashio-mcp"],
      "env": {
        "FASHIO_API_KEY": "fio_live_..."
      }
    }
  }
}

Running from source

git clone https://github.com/fashiolabs/fashio-mcp.git
cd fashio-mcp
npm install
npm run build

Then point your client's config at the built entry point instead of npx:

{
  "mcpServers": {
    "fashio": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-server/dist/index.js"],
      "env": { "FASHIO_API_KEY": "fio_live_..." }
    }
  }
}

Related MCP server: fal

Tools

Tool

Description

list_models

Every valid toolId for create_generation, with input shape and fallback price.

list_fashion_models

Browse the AI person model catalog (gender, limit).

list_venues

Browse the venue/background catalog (limit).

list_poses

Browse the pose catalog (type, limit).

upload_image

Uploads a local file (jpg/png/webp, max 8MB) and returns a usable URL.

create_generation

Starts a job — same request shape as POST /v1/generations. Returns {id, status: "processing"}. Pass templateSetId to reuse a saved style instead of picking fashion_model/venue/pose by hand.

get_generation

Polls a job by id until status is completed or failed.

get_account

Email, plan, diamond (credit) balance, and renewal date for the account that owns the key.

create_template_set

Saves a completed generation's fashion_model/venue/pose/shotType/stylePreset/ratio as a named preset — reuse it on a new garment via create_generation's templateSetId.

list_template_sets

Lists presets saved with create_template_set.

delete_template_set

Deletes a saved preset.

list_ready_template_sets

Browses Fashio's own curated "ready photoshoot" library (model + venue + pinned poses) — a different, larger catalogue than your own saved presets above.

get_ready_template_set

Fetches one curated set, including its full list of shots.

create_catalog_job

Runs your product photo through every shot (or a chosen subset) of a curated photoshoot set — one image per shot, billed per shot. Poll with get_generation.

See docs.fashiolabs.com for the full endpoint reference these tools wrap, and docs.fashiolabs.com/llms-full.txt for a plain-text version written for an LLM to read in one pass — including which images.* fields each toolId needs.

Billing

There is no separate MCP or API plan. Every create_generation call deducts diamonds (Fashio's credit unit) from the account that owns the API key — exactly as a generation from the app or dashboard would. A failed generation refunds its diamonds automatically.

Development

npm run dev    # tsc --watch
npm run build
npm start      # runs dist/index.js directly (expects FASHIO_API_KEY in env)

License

MIT — see LICENSE.

Available Tools

14 tools
create_catalog_jobGenerate a full catalogue from a ready-made photoshoot setAInspect

Runs your product photo(s) through every shot (or a chosen subset) of one of Fashio's curated photoshoot sets (see list_ready_template_sets), producing one image per shot. Billed per shot. Poll with get_generation — resultUrls holds every shot's output once completed.

Inputs: images (required), readyTemplateSetId (required), ratio, modelId, +1 more.

create_generationStart a Fashio generation jobAInspect

Starts an AI fashion generation job. Deducts diamonds from the account that owns the API key. Call list_models first for valid toolId values and what each needs in images. Returns immediately with status 'processing' — poll get_generation for the result. Pass templateSetId to reuse a saved style (see list_template_sets) instead of picking fashion_model/venue/pose by hand.

Inputs: pose, ratio, images, toolId, +9 more.

create_template_setSave a generation's styling as a reusable templateAInspect

Saves the fashion_model/venue/pose/shotType/stylePreset/ratio from a completed generation (sourceMediaId) as a named preset. Reuse it later via create_generation's templateSetId to put a NEW garment on the exact same model/venue/pose.

Inputs: label (required), pose, ratio, images, +4 more.

delete_template_setDelete a saved template setBInspect

Permanently deletes a saved style preset.

Inputs: id (required).

get_accountGet account infoAInspect

Returns the email, plan, diamond (credit) balance, and renewal date for the account that owns this API key.

Inputs: no named parameters.

get_generationPoll a Fashio generation jobAInspect

Checks the status of a job started with create_generation. Poll until status is 'completed' or 'failed'.

Inputs: id (required).

get_ready_template_setGet one ready-made photoshoot setAInspect

Fetches one entry from Fashio's curated photoshoot library, including its list of shots (each with an id you can pass to create_catalog_job's shotIds).

Inputs: id (required).

list_fashion_modelsList selectable AI person modelsAInspect

Browse the catalog of AI person models to use as images.fashion_model in create_generation.

Inputs: limit, gender.

list_modelsList Fashio generation toolsAInspect

Lists every valid toolId for create_generation, with its input shape and fallback diamond price.

Inputs: no named parameters.

list_posesList selectable posesAInspect

Browse the catalog of poses to use as pose in create_generation.

Inputs: type, limit.

list_ready_template_setsBrowse Fashio's ready-made photoshoot libraryAInspect

Browse Fashio's own curated 'ready photoshoot' catalogue (one model + one venue + N pinned poses each) — NOT the caller's own saved presets, see list_template_sets for those. Use with create_catalog_job.

Inputs: mood, sort, type, limit, +8 more.

list_template_setsList saved template setsAInspect

Lists every style preset saved on this account (see create_template_set).

Inputs: no named parameters.

list_venuesList selectable venues/backgroundsAInspect

Browse the catalog of venues/backgrounds to use as images.venue in create_generation.

Inputs: limit.

upload_imageUpload a local image to FashioAInspect

Uploads a LOCAL image file (jpg/jpeg/png/webp, max 8MB) from this machine's filesystem and returns a URL usable in create_generation's images.* fields.

Inputs: filePath (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, but list_models vs list_fashion_models and list_template_sets vs list_ready_template_sets could cause confusion. Detailed descriptions clarify the model-catalog vs AI-toolId and saved-preset vs curated-catalog distinctions.

    Naming Consistency5/5

    All tools follow a consistent verb_noun snake_case pattern, such as list_*, create_*, get_*, delete_*, and upload_*. Minor noun ambiguity like 'models' vs 'fashion_models' does not break the naming convention.

    Tool Count5/5

    14 tools is well within the ideal range and each tool supports a distinct part of the fashion generation workflow: catalog browsing, upload, generation, account management, and template handling. No redundant tools inflate the set.

    Completeness4/5

    The set covers the core lifecycle: browse catalogs, upload assets, create and poll generations, manage saved template sets, and run batch catalog jobs. Minor gaps such as updating a template set or canceling a generation are not essential to the domain.

    Related MCP Connectors

    Related MCP Servers