Wan27 MCP — AI Image and Video Generation

io.github.NotUsingGithub由 GitHub 账号 NotUsingGithub 发布v0.1.3更新于 Oct 24, 2026

Generate AI images and videos, estimate credits and track tasks. Paid Wan27 subscription required.

已验证STDIO仅桌面媒体与设计AI 与机器学习

概览

AI 生成的概览

Wan27 MCP 让助手在付费 Wan27 账户上生成 AI 图片和视频、查看模型选项、估算积分消耗并跟踪任务。

可以做什么
  • 查询账户状态与积分余额
  • 列出并查看可用的图片和视频模型及其参数
  • 在正式生成前估算请求的积分花费
  • 生成图片和视频,包括用上传的首帧做图生视频
  • 列出任务并获取单个任务的状态或结果
适用场景
适合希望助手通过 Wan27 订阅产出 AI 图片或短视频,并在消耗积分前先了解价格的场景。也便于在同一账户下查看任务进度并下载完成的素材。
运行要求
通过 npx 从 npm 包 @wan27/cli 以 stdio 在本地运行,或以 Docker 容器运行。需要 macOS 或 Linux(含 WSL)上的 Node 22+。需要有效的付费 Wan27 订阅,并用 CLI 的 auth login 命令登录一次;也可通过 WAN27_ACCESS_TOKEN 提供预发的令牌。凭据保存在 macOS 钥匙串或私有文件中,目录可用 WAN27_CONFIG_DIR 更改。
安装前请注意
生成会按与网站相同的价格消耗 Wan27 网站账户中的真实积分,且访问需要付费订阅;仅购买积分包、免费账户和未付费试用都不符合条件。助手可以创建产生费用的任务,建议先查看账户状态和估算。凭据会保存在磁盘或钥匙串中,通过 WAN27_ACCESS_TOKEN 传入或写入容器镜像的令牌需妥善保护;登出或修改网站密码会撤销连接。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Wan27 MCP — AI Image and Video Generation,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Wan27 MCP and CLI — AI Image and Video Generation

Generate images and videos from your terminal or AI assistant with your wan2-7.io account. MCP and CLI spend the same credit balance as the website, at the same prices. Credits are topped up on the website.

Access requires an active paid subscription. Credit packs alone, free accounts and unpaid trials do not qualify. A subscription with auto-renew turned off keeps access until its paid period ends. Upgrade at https://wan2-7.io/pricing/.

Node 22+, macOS or Linux (including WSL).

Install

sh
npm install -g @wan27/cli

Use

sh
wan27 auth loginwan27 accountwan27 modelswan27 estimate --input request.jsonwan27 create --input request.json --waitwan27 download <taskId> --output result.mp4wan27 auth logout

request.json examples:

json
{"modelId":"wan27-text-to-video","prompt":"A paper boat on a rainy street","durationSeconds":5,"resolution":"720p"}
json
{"modelId":"wan2.7-image","prompt":"A paper crane on a desk","resolution":"2K"}

For image-to-video, upload the first frame and pass its URL:

sh
wan27 upload frame.png        # {"url":"https://..."}
json
{"modelId":"wan27-image-to-video","prompt":"The crane takes off","imageUrl":"https://..."}

wan27 model <modelId> prints every option and its JSON Schema.

create prints a request ID on stderr. Re-running it with --request-id <id> after a network error returns the same task and is never charged twice. Failed tasks are refunded automatically. A wait timeout only stops waiting; the task keeps running.

Credentials are stored in the macOS Keychain, or with --credential-store file in a private file (directory 0700, file 0600). WAN27_CONFIG_DIR changes that directory. WAN27_ACCESS_TOKEN accepts a pre-issued API token for automation. Logging out revokes this connection; changing your website password revokes every connection.

Connect an assistant (local MCP)

Sign in once with wan27 auth login, then register the stdio server:

sh
codex mcp add wan27 -- wan27 mcpclaude mcp add wan27 -- wan27 mcp

Tools: account_status, list_models, get_model, estimate_generation, generate_image, generate_video, list_tasks, get_task.

After signing in, clients that accept JSON configuration can launch the same stdio server with npx:

json
{  "mcpServers": {    "wan27": {      "command": "npx",      "args": ["-y", "@wan27/cli", "mcp"]    }  }}

Read account status and estimate the cost before generating. Image and video generation spend your website credits.

Documentation and support

Run this public distribution

This repository contains the readable JavaScript executable for @wan27/[email protected]. The hosted service is operated at wan2-7.io.

sh
npm ci --ignore-scriptsnode dist/cli.mjs --helpnode dist/cli.mjs auth loginnode dist/cli.mjs mcp

License and provenance

MIT. See PROVENANCE.md for release provenance. The executable is unchanged from 0.1.1. Version 0.1.3 updates the GitHub repository and MCP Registry namespace to the NotUsingGithub account.

Container for directory introspection

sh
docker build -t wan27-mcp .docker run --rm -i wan27-mcp

The container runs the same pinned client distribution as the npm package, with the required mcp subcommand, as a non-root user. Linux containers explicitly select the private-file credential store because macOS Keychain is unavailable there; the empty container has no credentials. It accepts MCP JSON-RPC on stdin and writes protocol responses on stdout. MCP initialization and tools/list do not require an account or token and do not create media or spend credits. Calling account or generation tools requires an authorized Wan27 account; generation still requires a paid subscription and spends website credits.

The build copies only the distribution and public metadata. No credentials or host configuration are included. Do not embed a token in the Dockerfile or image.

来源:README.md,提交 4b6c08d

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.3最新Oct 12, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分