Skip to main content
Glama

fashio-mcp

面向 Fashio API 的 MCP(Model Context Protocol)服务器 — 让 Claude、Cursor 以及其他支持 MCP 的智能体能够直接以工具调用的形式生成模特上身时尚照片。

Fashio 利用 AI 将服装或产品照片转化为可直接发布的电商图片和视频 — 虚拟试穿、目录套组、背景移除、放大、重新构图等。本包是其公开 v1 REST API 的官方 MCP 客户端。

它是一个轻量封装:这里的每个工具调用的都是同一个公共 api.fashiolabs.com v1 REST API,与 curl 脚本调用的是同一个。不包含任何本地业务逻辑 — API 是唯一的事实来源。

配置

  1. fashiolabs.com → Profile → API Keys 创建免费 API 密钥。

  2. 将 Fashio 添加到你的 MCP 客户端 — 从以下两个选项中选择一个。

选项 A — 远程(托管,无需安装)

mcp.fashiolabs.com 以托管 HTTP 端点的形式运行同一个服务器 — 无需安装任何内容,只需添加该 URL,并将你的密钥作为 bearer token 传入:

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

(确切的配置界面/字段名称因客户端而异 — 截至 2026 年,Claude Desktop、Claude Code 和 Cursor 均支持通过 URL 并附带自定义请求头来添加远程/HTTP MCP 服务器。)

选项 B — 本地(本包,stdio)

在你自己的机器上运行,而不是托管端点 — 工具相同,计费也相同。

Claude Desktop / Claude Code

claude_desktop_config.json(或 Claude Code 的 .mcp.json):

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

从源码运行

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

然后将你的客户端配置指向构建后的入口点,而不是 npx

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

Related MCP server: Photo AI Studio MCP Server

工具

工具

描述

list_models

create_generation 的每个有效 toolId,包含输入结构和默认价格。

list_fashion_models

浏览 AI 人物模特目录(genderlimit)。

list_venues

浏览场地/背景目录(limit)。

list_poses

浏览姿势目录(typelimit)。

upload_image

上传本地文件(jpg/png/webp,最大 8MB)并返回可用的 URL。

create_generation

启动一个任务 — 请求结构与 POST /v1/generations 相同。返回 {id, status: "processing"}。传入 templateSetId 可复用已保存的风格,而无需手动选择 fashion_model/venue/pose

get_generation

id 轮询任务,直到 status 变为 completedfailed

get_account

拥有该密钥的账户的邮箱、套餐、钻石(积分)余额和续费日期。

create_template_set

将已完成生成中的 fashion_model/venue/pose/shotType/stylePreset/ratio 保存为命名预设 — 可通过 create_generationtemplateSetId 在新服装上复用它。

list_template_sets

列出使用 create_template_set 保存的预设。

delete_template_set

删除已保存的预设。

list_ready_template_sets

浏览 Fashio 自有的精选"现成拍摄"库(模特 + 场地 + 固定姿势)— 与上面你自己保存的预设不同,这是一个不同且更大的目录。

get_ready_template_set

获取一个精选套组,包括其完整的镜头列表。

create_catalog_job

将你的产品照片依次应用于精选拍摄套组中的每个镜头(或选定的子集)— 每个镜头生成一张图片,按镜头计费。使用 get_generation 轮询。

有关这些工具所封装端点的完整参考,请参见 docs.fashiolabs.com;另有一份为 LLM 一次性读完而编写的纯文本版本,见 docs.fashiolabs.com/llms-full.txt — 其中说明了每个 toolId 需要哪些 images.* 字段。

计费

没有独立的 MCP 或 API 套餐。每次 create_generation 调用都会从拥有该 API 密钥的账户中扣除钻石(Fashio 的积分单位)— 与从应用或控制台发起生成完全一致。生成失败时,所扣钻石会自动退还。

开发

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

链接

许可证

MIT — 参见 LICENSE

A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

  • Create and manage cinematic AI video renders through the Future Video Studio Agent API.

  • Generate on-brand images from your AI agent: design, edit, and render templates over MCP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fashiolabs/fashio-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server