
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
mcp-qwen-cli
Advanced tools
A simple MCP server wrapper for Qwen Code CLI that enables AI assistants to use Qwen's capabilities through the Model Context Protocol.
This server exposes three tools that interact with Qwen Code CLI:
qwenSearch
: Asks Qwen to perform a web search using your querychat
: Sends prompts directly to Qwen for general conversationsanalyzeFile
: Analyzes files (images, PDFs, text) using Qwen's multimodal capabilitiesQwen CLI supports both browser authentication and API key authentication:
npm install -g @qwen-code/qwen-code
qwen
once to complete browser authenticationSet up environment variables for API access:
# For DashScope (Alibaba Cloud) - Recommended
export OPENAI_API_KEY="your_api_key_here"
export OPENAI_BASE_URL="https://dashscope-intl.aliyuncs.com/compatible-mode/v1"
export OPENAI_MODEL="qwen3-coder-plus"
# For OpenRouter (free tier available)
export OPENAI_API_KEY="your_api_key_here"
export OPENAI_BASE_URL="https://openrouter.ai/api/v1"
export OPENAI_MODEL="qwen/qwen3-coder:free"
The server automatically detects which authentication method to use based on your environment.
claude mcp add -s project qwen-cli -- npx mcp-qwen-cli --allow-npx
Or configure your MCP client with the settings shown in the Installation Options section below.
Example prompts:
{
"mcpServers": {
"mcp-qwen-cli": {
"command": "npx",
"args": ["mcp-qwen-cli", "--allow-npx"]
}
}
}
git clone https://github.com/choplin/mcp-qwen-cli
cd mcp-qwen-cli
bun install
{
"mcpServers": {
"mcp-qwen-cli": {
"command": "bun",
"args": ["run", "/path/to/mcp-qwen-cli/index.ts"]
}
}
}
Performs a web search using Qwen Code CLI.
Parameters:
query
(required): The search querylimit
(optional): Maximum number of resultssandbox
(optional): Run in sandbox modeyolo
(optional): Skip confirmationsmodel
(optional): Qwen model to use (default: "qwen3-coder-plus")Have a conversation with Qwen.
Parameters:
prompt
(required): The conversation promptsandbox
(optional): Run in sandbox modeyolo
(optional): Skip confirmationsmodel
(optional): Qwen model to use (default: "qwen3-coder-plus")Analyze files using Qwen's multimodal capabilities.
Supported file types:
Parameters:
filePath
(required): The absolute path to the file to analyzeprompt
(optional): Additional instructions for analyzing the filesandbox
(optional): Run in sandbox modeyolo
(optional): Skip confirmationsmodel
(optional): Qwen model to use (default: "qwen3-coder-plus")Try these prompts to see mcp-qwen-cli in action:
// Simple search
qwenSearch({ query: "latest AI news" });
// Search with limit
qwenSearch({
query: "TypeScript best practices",
limit: 5,
});
// Simple chat
chat({ prompt: "Explain quantum computing in simple terms" });
// Using a different model
chat({
prompt: "Write a haiku about programming",
model: "qwen3-coder",
});
// Analyze an image
analyzeFile({
filePath: "/path/to/image.png",
prompt: "What objects are in this image?"
});
// Analyze a PDF
analyzeFile({
filePath: "/path/to/document.pdf",
prompt: "Summarize the key points in this document"
});
// General analysis without specific instructions
analyzeFile({ filePath: "/path/to/file.jpg" });
Note: Development requires Bun runtime.
bun run dev
bun test
# Development build
bun run build
# Production build (minified)
bun run build:prod
# Lint code
bun run lint
# Format code
bun run format
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
googleSearch
→ qwenSearch
mcp-gemini-cli
→ mcp-qwen-cli
gemini-2.5-pro
→ qwen3-coder-plus
which
commandgeminiChat
→ chat
, geminiAnalyzeFile
→ analyzeFile
@choplin/mcp-gemini-cli
→ mcp-gemini-cli
analyzeFile
tool for images (PNG/JPG/GIF/etc), PDFs, and text filesgoogleSearch
and geminiChat
toolsFAQs
MCP server wrapper for Qwen Code CLI
We found that mcp-qwen-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.