Alibaba Cloud DashScope — Qwen
v0.1.4Alibaba Cloud DashScope MCP: Qwen chat, embeddings, and model discovery on your own account.
Values you need
| Variable | What it is | |
|---|---|---|
DASHSCOPE_API_KEY | required secret | DashScope API key. Create one at https://bailian.console.alibabacloud.com/ → API Keys. |
DASHSCOPE_MODEL_ID | optional | Default chat model id. Options: qwen-max, qwen-plus (default), qwen-turbo, qwen-long. |
DASHSCOPE_EMBED_MODEL_ID | optional | Default embedding model id. Defaults to text-embedding-v3. |
DASHSCOPE_BASE_URL | optional | Custom DashScope endpoint. Defaults to international (dashscope-intl.aliyuncs.com). |
DASHSCOPE_REGION | optional | Set to 'cn' to use the China endpoint (dashscope.aliyuncs.com). Ignored if DASHSCOPE_BASE_URL is set. |
npm (npx) verified
Requires Node.js 18+
Run in a terminal
claude mcp add alibaba-cloud -e 'DASHSCOPE_API_KEY=<DASHSCOPE_API_KEY>' -- npx -y @three-ws/alibaba-cloud-mcp@0.1.4Add to
claude_desktop_config.json{
"mcpServers": {
"alibaba-cloud": {
"args": [
"-y",
"@three-ws/alibaba-cloud-mcp@0.1.4"
],
"command": "npx",
"env": {
"DASHSCOPE_API_KEY": "<DASHSCOPE_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"alibaba-cloud": {
"args": [
"-y",
"@three-ws/alibaba-cloud-mcp@0.1.4"
],
"command": "npx",
"env": {
"DASHSCOPE_API_KEY": "<DASHSCOPE_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "DASHSCOPE_API_KEY",
"id": "dashscope-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"alibaba-cloud": {
"args": [
"-y",
"@three-ws/alibaba-cloud-mcp@0.1.4"
],
"command": "npx",
"env": {
"DASHSCOPE_API_KEY": "${input:dashscope-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.alibaba-cloud]
command = "npx"
args = ["-y", "@three-ws/alibaba-cloud-mcp@0.1.4"]
env = { "DASHSCOPE_API_KEY" = "<DASHSCOPE_API_KEY>" }For AI agents
- Ask the user for: DASHSCOPE_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: qwen_chat, qwen_embed, qwen_list_models.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json