通义万相 MCP 服务器 MCP Server

# 通义万相 MCP 服务器 这是一个基于 TypeScript 的 Model Context Protocol (MCP) 服务器,专门提供阿里云通义万相的文生图(Text-to-Image)和文生视频(Text-to-Video)能力。该服务器通过 MCP

Local serverstdioTypeScript

What is the 通义万相 MCP 服务器 MCP server?

通义万相 MCP 服务器 这是一个基于 TypeScript 的 Model Context Protocol (MCP) 服务器,专门提供阿里云通义万相的文生图(Text-to-Image)和文生视频(Text-to-Video)能力。该服务器通过 MCP 协议,允许大语言模型(LLM)直接调用通义万相的图像和视频生成 API。 <a. The 通义万相 mcp 服务器 mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 5 defined tools rather than through you.

Its toolset

Everything the assistant can do here goes through one of these:

  • model — 模型名称,默认为 wanx2.1-t2i-turbo
  • size — 图像尺寸,默认为 1024*1024
  • seed — 随机种子,用于复现结果
  • prompt_extend — 是否启用提示词扩展,默认为 true
  • watermark — 是否添加水印,默认为 false

Configuration

You will need one environment variable: DASHSCOPE_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Adding it to your client

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

When to reach for it

Plenty of AI and media services servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. 通义万相 MCP 服务器's toolset — model, size, seed and 2 more — is a fair guide to whether it matches your workflow. It is maintained by Suixinlei; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the 通义万相 mcp 服务器 mcp server does with a few real requests.

Available tools

ToolWhat it does
model模型名称,默认为 wanx2.1-t2i-turbo
size图像尺寸,默认为 1024*1024
seed随机种子,用于复现结果
prompt_extend是否启用提示词扩展,默认为 true
watermark是否添加水印,默认为 false

How to install the 通义万相 MCP 服务器 MCP server

{
  "mcpServers": {
    "tongyi-wanxiang": {
      "command": "npx",
      "args": [
        "-y",
        "tongyi-wanx-mcp-server@latest"
      ],
      "env": {
        "DASHSCOPE_API_KEY": "<你的通义万相 API 密钥>"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
DASHSCOPE_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use 通义万相 MCP 服务器 to model.
  • Use 通义万相 MCP 服务器 to size.
  • Use 通义万相 MCP 服务器 to seed.

Frequently asked questions

需要拥有阿里云通义万相 API 访问权限和密钥,并在环境变量 `DASHSCOPE_API_KEY` 中设置。