通义万相 MCP 服务器

by Suixinlei

6 stars
311 downloads
Not rated
GitHub

About

# 通义万相 MCP 服务器 这是一个基于 TypeScript 的 Model Context Protocol (MCP) 服务器,专门提供阿里云通义万相的文生图(Text-to-Image)和文生视频(Text-to-Video)能力。该服务器通过 MCP 协议,允许大语言模型(LLM)直接调用通义万相的图像和视频生成 API。 <a href="https://glama.ai/mcp/servers/@Suixinlei/tongyi-wanx-mcp-server"> <img width="380" height="200"…

Details

Author
Suixinlei
GitHub stars
6
Downloads
311
Categories
Other

- 集成阿里云通义万相文生图 API
- 集成阿里云通义万相文生视频 API
- 支持异步任务处理与轮询获取结果
- 遵循 Model Context Protocol 规范

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name 通义万相 MCP 服务器
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

在支持 MCP 的客户端(如百炼平台)配置中,将 command 设为 npxargs 包含 "-y", "tongyi-wanx-mcp-server@latest",并在 env 中设置 DASHSCOPE_API_KEY 环境变量为有效的通义万相 API 密钥。启动后,MCP 客户端将通过工具调用文生图和文生视频任务,并获取异步结果。

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "\u901a\u4e49\u4e07\u76f8 mcp \u670d\u52a1\u5668": {
            "tongyi-wanxiang": {
                "command": "npx",
                "args": [
                    "-y",
                    "tongyi-wanx-mcp-server@latest"
                ],
                "env": {
                    "DASHSCOPE_API_KEY": "<\u4f60\u7684\u901a\u4e49\u4e07\u76f8 API \u5bc6\u94a5>"
                }
            }
        }
    }
}

McpServers

{
    "tongyi-wanxiang": {
        "command": "npx",
        "args": [
            "-y",
            "tongyi-wanx-mcp-server@latest"
        ],
        "env": {
            "DASHSCOPE_API_KEY": "<\u4f60\u7684\u901a\u4e49\u4e07\u76f8 API \u5bc6\u94a5>"
        }
    }
}

通义万相 MCP 服务器

这是一个基于 TypeScript 的 Model Context Protocol (MCP) 服务器,专门提供阿里云通义万相的文生图(Text-to-Image)和文生视频(Text-to-Video)能力。该服务器通过 MCP 协议,允许大语言模型(LLM)直接调用通义万相的图像和视频生成 API。

<a href="https://glama.ai/mcp/servers/@Suixinlei/tongyi-wanx-mcp-server">
Tongyi Wanxiang Server MCP server
</a>

功能特点

- 文生图能力集成:接入阿里云通义万相文生图 API,支持高质量的 AI 图像生成
- 文生视频能力集成:接入阿里云通义万相文生视频 API,支持高质量的 AI 视频生成
- 异步任务处理:支持长时间运行的图像和视频生成任务,通过异步轮询获取最终结果
- MCP 协议支持:符合 Model Context Protocol 规范,可与支持 MCP 的 LLM 无缝协作

环境要求

- Node.js >= 16.x
- npm >= 8.x 或 pnpm

如何使用

以百炼平台举例

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

如何开发

安装依赖

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.