Alibaba Cloud DashScope — Qwen

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

Alibaba Cloud DashScope MCP: Qwen chat, embeddings, and model discovery on your own account.

发布方自己的服务:Scope (AEC) - Preview

已验证STDIO仅桌面知识与记忆AI 与机器学习

概览

AI 生成的概览

本地 MCP 服务器,让助手通过你自己的阿里云 DashScope 账号进行 Qwen 对话、文本向量化和模型列表查询。

可以做什么
  • 使用 qwen-max、qwen-plus、qwen-turbo、qwen-long 等 Qwen 模型进行对话补全,并可逐次指定模型。
  • 用 text-embedding-v3 生成文本向量,用于语义搜索或 RAG。
  • 列出该 DashScope 账号下可用的模型。
  • 可通过导出的 buildServer() 入口嵌入到自建的宿主程序中。
适用场景
适合希望让 Claude Desktop、Claude Code、Cursor 等桌面 MCP 客户端直接调用 Qwen 模型或 DashScope 向量化,并计入自己阿里云账号用量而非经由其他服务商的场景。
运行要求
通过 npx 以 stdio 方式在本地运行 npm 包,需要 Node.js 20 或更高版本。需要阿里云账号和 DashScope API 密钥,通过 DASHSCOPE_API_KEY 提供。可选变量可设置默认对话模型、默认向量模型、自定义基础地址、中国区以及请求超时。需要能访问 DashScope 接口的网络。
安装前请注意
服务器需要 DASHSCOPE_API_KEY 中的 DashScope API 密钥,发送用于向量化的提示与文本会传到阿里云 DashScope 接口。用量计入你自己的阿里云账号,模型选择会影响费用。该服务器由社区构建,与阿里云无隶属关系。若将 DASHSCOPE_BASE_URL 指向自定义地址,密钥与数据会发送到该地址。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Alibaba Cloud DashScope — Qwen,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[three.ws]

@three-ws/alibaba-cloud-mcp

MCP server for Alibaba Cloud DashScope, Qwen chat, embeddings, and model discovery on your own account.

[npm] [license] [node] [three.ws]

Install · Quick start · Tools · Models · three.ws


A Model Context Protocol server that exposes Alibaba Cloud's Qwen models, and anything else in your DashScope account, to MCP clients such as Claude Desktop, Claude Code, and Cursor. It talks directly to the DashScope OpenAI-compatible REST API with your own Alibaba Cloud API key: no intermediary backend, no telemetry, no mock data.

Community-built and not affiliated with Alibaba Cloud. Registry name: io.github.nirholas/alibaba-cloud.

Install

bash
npm install @three-ws/alibaba-cloud-mcp

Run it directly with npx (no install needed):

bash
DASHSCOPE_API_KEY=sk-... npx @three-ws/alibaba-cloud-mcp

Quick start

With Claude Code, one command:

bash
claude mcp add alibaba-cloud -e DASHSCOPE_API_KEY=sk-... -- npx -y @three-ws/alibaba-cloud-mcp

Or add the server to your MCP client config:

json
{  "mcpServers": {    "alibaba-cloud": {      "command": "npx",      "args": ["-y", "@three-ws/alibaba-cloud-mcp"],      "env": {        "DASHSCOPE_API_KEY": "sk-..."      }    }  }}

Requirements

  1. An Alibaba Cloud account
  2. A DashScope API key, navigate to API Keys and create one
  3. Node.js ≥ 20

Tools

ToolDescription
qwen_chatChat completion with any Qwen model (qwen-max, qwen-plus, qwen-turbo, qwen-long)
qwen_embedText embeddings via text-embedding-v3 (1024-dim default, up to 2048)
qwen_list_modelsList all models available on this DashScope account

Models

Model IDUse
qwen-maxHighest quality: complex reasoning, long documents
qwen-plusBalanced performance (default)
qwen-turboFastest and cheapest: simple tasks
qwen-longLong context (up to 1M tokens)
text-embedding-v3Embeddings, semantic search, RAG (default)

Environment variables

VariableRequiredDefaultDescription
DASHSCOPE_API_KEYyes-Your DashScope API key
DASHSCOPE_MODEL_IDnoqwen-plusDefault chat model
DASHSCOPE_EMBED_MODEL_IDnotext-embedding-v3Default embedding model
DASHSCOPE_BASE_URLnoInternational endpointCustom DashScope endpoint
DASHSCOPE_REGIONno-Set to cn for the China endpoint
DASHSCOPE_TIMEOUT_MSno60000Request timeout in ms

Inspect

bash
npx -y @modelcontextprotocol/inspector npx @three-ws/alibaba-cloud-mcp

Programmatic use

The package entry point (@three-ws/alibaba-cloud-mcp) exports buildServer(): a fully-registered McpServer with no transport attached, so you can mount the three tools inside a host of your own instead of spawning the binary. It reads DASHSCOPE_API_KEY when called, and registration is otherwise side-effect free. The DashScope client itself is importable from @three-ws/alibaba-cloud-mcp/src/dashscope.js (loadConfig, DashScopeClient, DashScopeError) when you want the REST wrapper without MCP.

js
// example.mjs: run with: DASHSCOPE_API_KEY=sk-... node example.mjsimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';import { buildServer } from '@three-ws/alibaba-cloud-mcp';
const server = buildServer();
// What this server exposes, before connecting anything.for (const [name, tool] of Object.entries(server._registeredTools)) {  console.log(`${name}: ${tool.title}`);}
// Serve it over stdio (what the bin does), or attach any other MCP transport.await server.connect(new StdioServerTransport());
qwen_chat: Qwen Chatqwen_embed: Qwen Text Embeddingsqwen_list_models: List DashScope Models

Built by three.ws · three.ws/blog/three-ws-alibaba-cloud-partnership

来源:packages/alibaba-cloud-mcp/README.md,提交 c8f2cde

工具

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

版本历史

2
  1. v0.1.4最新Oct 10, 2026
  2. v0.1.3Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

其他 Scope 集成