{
"mcpServers": {
"tongyi-wanx-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 254 days ago. 6 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
Context cost
4 tools. ~300 tokens (0.1% of 200K).
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
wanx-t2i-image-generation启动图像生成任务,返回任务 ID
wanx-t2i-image-generation-result通过任务 ID 获取图像生成结果
wanx-t2v-video-generation启动视频生成任务,返回任务 ID
wanx-t2v-video-generation-result通过任务 ID 获取视频生成结果
This server is missing a description.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for Tongyi Wanx Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
这是一个基于 TypeScript 的 Model Context Protocol (MCP) 服务器,专门提供阿里云通义万相的文生图(Text-to-Image)和文生视频(Text-to-Video)能力。该服务器通过 MCP 协议,允许大语言模型(LLM)直接调用通义万相的图像和视频生成 API。
以百炼平台举例
{
"mcpServers": {
"tongyi-wanxiang": {
"command": "npx",
"args": [
"-y",
"tongyi-wanx-mcp-server@latest"
],
"env": {
"DASHSCOPE_API_KEY": "<你的通义万相 API 密钥>"
}
}
}
}
# 使用 npm
npm install
# 或使用 pnpm
pnpm install
# 构建项目
npm run build
# 或
pnpm run build
# 运行服务器
npm start
# 或
pnpm start
# 使用调试工具运行
npm run debug
# 或
pnpm run debug
该服务器提供以下 MCP 工具:
启动图像生成任务,返回任务 ID。
参数:
prompt: 图像生成提示词negative_prompt: 负面提示词(不希望在图像中出现的元素)返回:
task_id 的任务信息通过任务 ID 获取图像生成结果。
参数:
task_id: 由文生图生成工具返回的任务 ID返回:
启动视频生成任务,返回任务 ID。
参数:
prompt: 视频生成提示词返回:
task_id 的任务信息通过任务 ID 获取视频生成结果。
参数:
task_id: 由文生视频生成工具返回的任务 ID返回:
project/
├── src/ # 源代码目录
│ ├── index.ts # 主入口文件,MCP 服务器定义
│ ├── wanx-t2i.js # 通义万相文生图 API 集成
│ ├── wanx-t2v.js # 通义万相文生视频 API 集成
│ └── config.ts # 配置文件
├── dist/ # 编译后的代码目录
├── package.json # 项目配置
├── tsconfig.json # TypeScript 配置
└── README.md # 项目说明
wanx2.1-t2i-turbo1024*1024您可以在 src/config.ts 中修改以下配置: