qwen-mcp
This server integrates Alibaba Cloud's Qwen AI models into MCP-compatible clients, offering three tools:
🖼️ Vision Understanding (
qwen_vision): Analyze images usingqwen3-vl-plus. Supports local file paths or HTTP(S) URLs, with automatic compression, configurable detail levels (low/high), and adjustablemax_tokens(up to 8192).🔍 Real-time Web Search (
qwen_search): Perform live internet searches viaqwen-plus's nativeenable_search. Returns current information with source citations; accepts a query and optionalmax_tokens.💬 General Chat (
qwen_chat): Engage in text-based conversations withqwen-plusfor summarization, translation, rewriting, code generation, and more.
Integrates with Alibaba Cloud DashScope to provide access to Qwen models for vision understanding, live web search, and general chat.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@qwen-mcpsearch the web for the latest updates on artificial intelligence"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Reasonix Qwen MCP Server
专为 Reasonix 设计的 MCP 插件:把阿里云百炼(DashScope)的通义千问(Qwen)模型接入 Reasonix,提供视觉理解、联网搜索、通用对话三个工具。 A Qwen MCP server built for Reasonix: vision understanding, real web search and chat via Alibaba Cloud DashScope.
一个轻量 Node.js MCP server,提供三个即用工具:视觉理解(qwen3-vl-plus)、真实联网搜索(enable_search)、通用文本对话(qwen-plus)。
A lightweight Node.js MCP server exposing three ready-to-use tools: vision (qwen3-vl-plus), real web search (enable_search), chat (qwen-plus).
📖 详细中文使用手册:使用说明.md
✨ 功能特性 / Features
工具 / Tool | 说明 / Description | 模型 / Model |
| 视觉理解:传本地图片路径或 http(s) 图片 URL,让模型"看图"并回答 |
|
| 联网搜索:实时检索最新信息,返回带来源的综合回答 |
|
| 通用文本对话(总结 / 翻译 / 改写 / 写代码等) |
|
关键特性:
🖼️ 视觉提速:本地图片自动用
sharp预压缩(>300KB 或分辨率 >1568px 才压缩,小图零损耗),网络图片先下载压缩再送模型(下载限 10MB);
🔍 真联网:走百炼原生接口的
enable_search(OpenAI 兼容端点会静默忽略该参数,详见下方"工作原理");⚡ 生成长度可控:
max_tokens参数随时可调,快慢由你决定;🔐 Key 安全:支持环境变量
DASHSCOPE_API_KEY或本地config.json(已被.gitignore忽略,不会入库)。
Related MCP server: MCP Server with OpenAI Integration
📦 环境要求 / Requirements
Node.js ≥ 20.9(内置
fetch)阿里云百炼(DashScope)API Key:https://bailian.console.aliyun.com/
🚀 快速开始 / Quick Start
🤖 Reasonix 用户:无需手动配置——克隆/下载本项目后,在 Reasonix 中打开项目目录,直接让 Reasonix "安装并配置这个 MCP 插件",它会自动注册、连接并引导你填写 API Key。
1. 安装 / Install
git clone https://github.com/HUAN425/reasonix-qwen-mcp.git qwen-mcp
cd qwen-mcp
npm install2. 配置 / Configure
二选一:
方式 A:环境变量(推荐)
# Windows PowerShell
$env:DASHSCOPE_API_KEY = "sk-..."
# macOS / Linux
export DASHSCOPE_API_KEY="sk-..."方式 B:配置文件
cp config.example.json config.json # Windows: copy config.example.json config.json
# 然后编辑 config.json 填入 apiKeyconfig.json 支持的自定义项:
{
"apiKey": "sk-...", // 必填;环境变量优先
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1", // 可选;仅影响对话与视觉,联网搜索固定使用国内原生端点
"visionModel": "qwen3-vl-plus", // 可选,视觉模型
"searchModel": "qwen-plus", // 可选,搜索模型
"chatModel": "qwen-plus" // 可选,对话模型
}注意:修改
config.json后需重启 MCP server 生效(配置有进程内缓存)。
3. 注册到 MCP 客户端 / Register with your client
⚠️ 兼容性说明:本项目目前仅在 Reasonix 上实际测试使用过。技术实现基于标准 MCP 协议(stdio 传输),理论上适用于其他支持 MCP 的客户端(如 Claude Desktop、Cursor 等),但尚未在它们上面实测验证。如在其他客户端遇到问题,欢迎反馈。
Claude Desktop — claude_desktop_config.json:
{
"mcpServers": {
"qwen-mcp": {
"command": "node",
"args": ["/absolute/path/to/qwen-mcp/server.js"]
}
}
}项目级 .mcp.json(Reasonix 等支持):
{
"mcpServers": {
"qwen-mcp": {
"command": "node",
"args": ["/absolute/path/to/qwen-mcp/server.js"]
}
}
}4. 使用 / Usage
三个工具会以 mcp__qwen-mcp__qwen_vision 等名称出现在你的客户端里。
工具 | 参数 | 说明 |
|
|
|
|
| 返回头标注 |
|
| 纯文本对话 |
⚙️ 工作原理 / How it works
对话与视觉:调用 DashScope OpenAI 兼容端点
POST /compatible-mode/v1/chat/completions(多模态走image_url+ base64 data URL);联网搜索:调用百炼原生端点
POST /api/v1/services/aigc/text-generation/generation并携带enable_search: true。⚠️ 实测:OpenAI 兼容端点会静默忽略
enable_search(返回模型自身知识而非实时结果),所以搜索必须走原生端点。
🧪 测试 / Test
npm test # 等价于 node test-handshake.js(MCP 握手 + 工具列表,无需 API Key)📁 项目结构 / Structure
qwen-mcp/
├── server.js # MCP server 主程序
├── config.example.json # 配置模板(复制为 config.json 使用)
├── package.json
├── .gitignore
└── test-handshake.js # 握手自测脚本🔒 安全说明 / Security
config.json、node_modules/已在.gitignore中,不会提交到仓库;请勿将任何真实 API Key 写入会进入版本库的文件;
⚠️
qwen_vision可读取本机任意路径的图片文件并发送至阿里云,请仅在可信环境使用;网络图片下载上限 10MB,超限自动回退原 URL。
📄 许可证 / License
⚠️ 免责声明 / Disclaimer
本项目与阿里云无官方关联。模型能力、价格与接口行为以百炼官方文档为准。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- FlicenseBqualityDmaintenanceA lightweight MCP server that provides a unified interface to various LLM providers including OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, and Ollama.Last updated6737
- FlicenseBqualityDmaintenanceProduction-ready MCP server that integrates OpenAI API with extensible tool support, enabling dynamic plugin loading and knowledge search capabilities through multiple interfaces including CLI and browser UI.Last updated2
- AlicenseAqualityCmaintenance这是一个面向中文圈的MCP服务器,将中国互联网常用能力(如地图、快递、RSS、B站等)封装为标准MCP工具,方便AI Agent安全调用。Last updated132MIT
- Flicense-qualityBmaintenanceA lightweight Node.js MCP server with zero dependencies offering 9 built-in tools for system info, web fetching, GitHub search, file operations, shell execution, and key-value memory, enabling AI agents to perform these tasks via the Model Context Protocol.Last updated
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HUAN425/reasonix-qwen-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server