Qwen Max MCP Server
Servidor MCP Qwen Max
Una implementación de servidor de Protocolo de Contexto de Modelo (MCP) para el modelo de lenguaje Qwen Max.
¿Por qué Node.js? Esta implementación utiliza Node.js/TypeScript, ya que actualmente ofrece la integración más estable y fiable con servidores MCP en comparación con otros lenguajes como Python. El SDK de Node.js para MCP ofrece mayor seguridad de tipos, gestión de errores y compatibilidad con Claude Desktop.
Prerrequisitos
Node.js (v18 o superior)
npm
Escritorio de Claude
Clave API de Dashscope
Related MCP server: DeepSeek MCP Server
Instalación
Instalación mediante herrería
Para instalar Qwen Max MCP Server para Claude Desktop automáticamente a través de Smithery :
npx -y @smithery/cli install @66julienmartin/mcp-server-qwen_max --client claudeInstalación manual
git clone https://github.com/66julienmartin/mcp-server-qwen-max.git
cd Qwen_Max
npm installSelección de modelos
Este servidor utiliza el modelo Qwen-Max de forma predeterminada. La serie Qwen ofrece varios modelos comerciales con diferentes capacidades:
Qwen-Max
Proporciona el mejor rendimiento de inferencia, especialmente para tareas complejas y de varios pasos.
Ventana de contexto: 32.768 tokens
Entrada máxima: 30,720 tokens
Salida máxima: 8,192 tokens
Precios: $0,0016/1000 tokens (entrada), $0,0064/1000 tokens (salida)
Cuota gratuita: 1 millón de tokens
Versiones disponibles:
qwen-max (Estable)
qwen-max-latest (Último)
qwen-max-2025-01-25 (Instantánea, también conocida como qwen-max-0125 o Qwen2.5-Max)
Qwen-Plus
Combinación equilibrada de rendimiento, velocidad y costo, ideal para tareas moderadamente complejas.
Ventana de contexto: 131.072 tokens
Entrada máxima: 129,024 tokens
Salida máxima: 8,192 tokens
Precios: $0,0004/1000 tokens (entrada), $0,0012/1000 tokens (salida)
Cuota gratuita: 1 millón de tokens
Versiones disponibles:
qwen-plus (Estable)
qwen-plus-latest (Último)
qwen-plus-2025-01-25 (Instantánea, también conocida como qwen-plus-0125)
Qwen-Turbo
Rápida velocidad y bajo costo, adecuado para tareas sencillas.
Ventana de contexto: 1.000.000 tokens
Entrada máxima: 1.000.000 tokens
Salida máxima: 8,192 tokens
Precios: $0,00005/1000 tokens (entrada), $0,0002/1000 tokens (salida)
Cuota gratuita: 1 millón de tokens
Versiones disponibles:
qwen-turbo (Estable)
qwen-turbo-latest (Último)
qwen-turbo-2024-11-01 (Instantánea, también conocida como qwen-turbo-1101)
Para modificar el modelo, actualice el nombre del modelo en src/index.ts:
// For Qwen-Max (default)
model: "qwen-max"
// For Qwen-Plus
model: "qwen-plus"
// For Qwen-Turbo
model: "qwen-turbo"Para obtener información más detallada sobre los modelos disponibles, visita la Documentación del modelo de Alibaba Cloud https://www.alibabacloud.com/help/en/model-studio/getting-started/models?spm=a3c0i.23458820.2359477120.1.446c7d3f9LT0FY .
Estructura del proyecto
qwen-max-mcp/
├── src/
│ ├── index.ts # Main server implementation
├── build/ # Compiled files
│ ├── index.js
├── LICENSE
├── README.md
├── package.json
├── package-lock.json
└── tsconfig.jsonConfiguración
Cree un archivo
.enven la raíz del proyecto:
DASHSCOPE_API_KEY=your-api-key-hereActualizar la configuración de Claude Desktop:
{
"mcpServers": {
"qwen_max": {
"command": "node",
"args": ["/path/to/Qwen_Max/build/index.js"],
"env": {
"DASHSCOPE_API_KEY": "your-api-key-here"
}
}
}
}Desarrollo
npm run dev # Watch mode
npm run build # Build
npm run start # Start serverCaracterísticas
Generación de texto con modelos Qwen
Parámetros configurables (max_tokens, temperatura)
Manejo de errores
Compatibilidad con el protocolo MCP
Integración de Claude Desktop
Soporte para todos los modelos comerciales de Qwen (Max, Plus, Turbo)
Amplias ventanas de contexto de token
Uso de la API
// Example tool call
{
"name": "qwen_max",
"arguments": {
"prompt": "Your prompt here",
"max_tokens": 8192,
"temperature": 0.7
}
}El parámetro de temperatura
El parámetro de temperatura controla la aleatoriedad de la salida del modelo:
Valores más bajos (0,0-0,7): Resultados más centrados y deterministas. Valores más altos (0,7-1,0): Resultados más creativos y variados.
Configuraciones de temperatura recomendadas por tarea:
Generación de código: 0,0-0,3 Redacción técnica: 0,3-0,5 Tareas generales: 0,7 (predeterminado) Redacción creativa: 0,8-1,0
Manejo de errores
El servidor proporciona mensajes de error detallados para problemas comunes:
Errores de autenticación de API Parámetros no válidos Limitación de velocidad Problemas de red Límite de token excedido Problemas de disponibilidad del modelo
Contribuyendo
¡Agradecemos sus contribuciones! No dude en enviar una solicitud de incorporación de cambios.
Licencia
Instituto Tecnológico de Massachusetts (MIT)
Available Tools
1 toolqwen_maxC
Generate text using Qwen Max model
Inputs: prompt (required), max_tokens, temperature.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap between tools. The single tool 'qwen_max' has a clear and distinct purpose: generating text using the Qwen Max model.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'qwen_max' follows a single, consistent pattern with no deviations or mixing of conventions to evaluate.
A single tool is too few for most server purposes, as it severely limits functionality and scope. While it might suffice for a minimal text generation service, it lacks the breadth typically expected for an MCP server, making it feel thin and under-scoped.
The tool provides a basic text generation capability, but there are notable gaps for a comprehensive AI model server. For example, it lacks tools for managing models, handling different input formats, or performing other common AI tasks like classification or summarization, which limits its utility.
Maintenance
Related MCP Connectors
Generate images, video and audio in Claude, Codex and any MCP-ready AI agent.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
MCP server for Qwen Image 3 AI image generation
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables integration with OpenAI models through the MCP protocol, supporting concise and detailed responses for use with Claude Desktop.13MIT
- AlicenseDqualityDmaintenanceAllows seamless integration of DeepSeek's language models with MCP-compatible applications like Claude Desktop, supporting features such as model selection, temperature control, and multi-turn conversations with automatic model fallback.22MIT
- AlicenseAqualityNot gradedmaintenanceEnables interaction with MiniMax AI APIs for text-to-speech, voice cloning, video generation, image generation, and music creation through MCP clients like Claude Desktop and Cursor.9MIT
- AlicenseNot gradedqualityDmaintenanceEnables text-to-image generation using Zhipu AI's CogView-4 API. Supports generating images from text prompts with configurable size and quality parameters through MCP-compatible clients like Claude Desktop and Cline.89 npmMIT