Alibaba Cloud DashScope — Qwen

v0.1.4
io.github.nirholas/alibaba-cloud Checked 2 hours ago Published 1 month ago

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

Values you need

VariableWhat it is
DASHSCOPE_API_KEYrequired secret DashScope API key. Create one at https://bailian.console.alibabacloud.com/ → API Keys.
DASHSCOPE_MODEL_IDoptional Default chat model id. Options: qwen-max, qwen-plus (default), qwen-turbo, qwen-long.
DASHSCOPE_EMBED_MODEL_IDoptional Default embedding model id. Defaults to text-embedding-v3.
DASHSCOPE_BASE_URLoptional Custom DashScope endpoint. Defaults to international (dashscope-intl.aliyuncs.com).
DASHSCOPE_REGIONoptional 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.4
Add 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

  1. Ask the user for: DASHSCOPE_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: qwen_chat, qwen_embed, qwen_list_models.
  5. 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