通义万相 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)直接调用通义万相的图像和视频生成

Configuration

You will need one environment variable: DASHSCOPE_API_KEY. 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.

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.

Recorded tools

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

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` 中设置。