
Qwen Max 模型的 MCP 服务器
概览
Qwen Max 语言模型的模型上下文协议(MCP)服务器实现。 为什么Node.js?该实现采用了 Node.js/TypeScript,因为它目前比 Python 等其他语言更稳定可靠地与 MCP 服务器集成。Node.js MCP SDK 提供了更好的类型安全性、错误处理以及与 Claude Desktop 的兼容性。 - Node.js(v18及以上)- npm - Claude Desktop - Dashscope API 密钥 通过 Smithery 自动安装 Qwen Max MCP Server for Claude Desktop: 默认情况下,该服务器使用 Qwen-Max 模型。Qwen 系列提供多种商业型号,具有不同的功能: 提供最佳的推理性能,尤其适用于复杂和多步任务。 上下文窗口:32,768 个代币 - 最大输入:30,720 个代币 - 最大输出:8,192 个代币 - 定价:0.0016 美元/1K 代币(输入),0 美元。
概述(AI 翻译)
Qwen Max 语言模型的模型上下文协议(MCP)服务器实现。
为什么Node.js? 该实现采用Node.js/TypeScript,因为它目前提供了最稳定可靠的集成 相比其他语言如Python,MCP服务器更为高效。MCP的Node.js SDK提供了更好的类型安全, 错误处理,以及与 Claude Desktop 的兼容性。
先修条件
- Node.js(V18或更高)
- NPM
- Claude桌面
- Dashscope API 密钥
安装
通过Smithery安装
通过 Smithery 自动安装 Qwen Max MCP Server for Claude Desktop:
手动安装
模型选择
默认情况下,该服务器使用 Qwen-Max 模型。 Qwen系列提供多种商业型号,具备不同的功能:
Qwen-Max
提供最佳的推理性能,尤其适用于复杂和多步任务。
上下文窗口:32,768个令牌
- 最大输入:30,720个令牌
- 最大输出:8,192个令牌
- 定价:$0.0016/1K代币(输入),$0.0064/1K代币(输出)
- 免费配额:100万个代币
可用版本:
- qwen-max(稳定)
- qwen-max-最新(最新)
- qwen-max-2025-01-25(快照,也称为qwen-max-0125或Qwen2.5-Max)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Qwen Max MCP Server
A Model Context Protocol (MCP) server implementation for the Qwen Max language model.
Why Node.js? This implementation uses Node.js/TypeScript as it currently provides the most stable and reliable integration with MCP servers compared to other languages like Python. The Node.js SDK for MCP offers better type safety, error handling, and compatibility with Claude Desktop.
Prerequisites
- Node.js (v18 or higher)
- npm
- Claude Desktop
- Dashscope API key
Installation
Installing via Smithery
To install Qwen Max MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @66julienmartin/mcp-server-qwen_max --client claude
Manual Installation
git clone https://github.com/66julienmartin/mcp-server-qwen-max.git
cd Qwen_Max
npm install
Model Selection
By default, this server uses the Qwen-Max model. The Qwen series offers several commercial models with different capabilities:
Qwen-Max
Provides the best inference performance, especially for complex and multi-step tasks.
Context window: 32,768 tokens
- Max input: 30,720 tokens
- Max output: 8,192 tokens
- Pricing: $0.0016/1K tokens (input), $0.0064/1K tokens (output)
- Free quota: 1 million tokens
Available versions:
- qwen-max (Stable)
- qwen-max-latest (Latest)
- qwen-max-2025-01-25 (Snapshot, also known as qwen-max-0125 or Qwen2.5-Max)
Qwen-Plus
Balanced combination of performance, speed, and cost, ideal for moderately complex tasks.
Context window: 131,072 tokens
- Max input: 129,024 tokens
- Max output: 8,192 tokens
- Pricing: $0.0004/1K tokens (input), $0.0012/1K tokens (output)
- Free quota: 1 million tokens
Available versions:
- qwen-plus (Stable)
- qwen-plus-latest (Latest)
- qwen-plus-2025-01-25 (Snapshot, also known as qwen-plus-0125)
Qwen-Turbo
Fast speed and low cost, suitable for simple tasks.
- Context window: 1,000,000 tokens
- Max input: 1,000,000 tokens
- Max output: 8,192 tokens
- Pricing: $0.00005/1K tokens (input), $0.0002/1K tokens (output)
- Free quota: 1 million tokens
Available versions:
- qwen-turbo (Stable)
- qwen-turbo-latest (Latest)
- qwen-turbo-2024-11-01 (Snapshot, also known as qwen-turbo-1101)
To modify the model, update the model name in src/index.ts:
// For Qwen-Max (default)
model: "qwen-max"
// For Qwen-Plus
model: "qwen-plus"
// For Qwen-Turbo
model: "qwen-turbo"
安装
npx -y @smithery/cli install @66julienmartin/mcp-server-qwen_max --client claude配置
{
"mcpServers": {
"qwen_max": {
"command": "node",
"args": ["/path/to/Qwen_Max/build/index.js"],
"env": {
"DASHSCOPE_API_KEY": "your-api-key-here"
}
}
}
}