Qwen

v1.0.0Coding Agentsstable

Enables AI assistants to leverage Qwen's code analysis capabilities with large context windows, supporting file/directory analysis, sandbox execution, and multiple approval modes for safe code operations.

qwen-mcp-toolmcpai-integration
Share:
31
Stars
0
Downloads
0
Weekly
0/5

What is Qwen?

Qwen is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables ai assistants to leverage qwen's code analysis capabilities with large context windows, supporting file/directory analysis, sandbox execution, and multiple approval modes for safe code operati...

Enables AI assistants to leverage Qwen's code analysis capabilities with large context windows, supporting file/directory analysis, sandbox execution, and multiple approval modes for safe code operations.

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables AI assistants to leverage Qwen's code analysis capab

Use Cases

Analyze files and directories using Qwen's code analysis with large context windows.
Execute code in sandbox environments with configurable approval modes.
Perform safe code operations with multiple safety enforcement options.
Jaggerxtrm

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx qwen-mcp-tool

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Qwen

The Qwen MCP Tool is a TypeScript-based MCP server that bridges MCP-compatible AI assistants (such as Claude) with the Qwen CLI, allowing them to delegate tasks to Qwen's large-context-window models for deep code analysis, file and directory inspection, and sandboxed code execution. It exposes an ask-qwen tool that accepts natural language prompts with @filename and @directory file references, supports multiple Qwen models (qwen3-coder-plus, qwen3-coder-turbo), and offers configurable approval modes from interactive to fully automated. This enables AI agents to collaborate with a second specialized model for tasks requiring larger context than the primary model can handle.

Prerequisites

  • Node.js v16 or higher installed
  • Qwen CLI installed and configured — install from github.com/QwenLM/qwen-code and authenticate with your Alibaba Cloud/Qwen API credentials
  • An MCP client such as Claude Desktop or Claude Code
  • npm or npx available in your PATH
1

Install the Qwen CLI

Before using the MCP tool, install and configure the Qwen CLI from QwenLM. Follow its setup guide to authenticate with your API credentials.

npm install -g @qwen-ai/qwen-code
# Follow the qwen-code setup to authenticate
2

Add the server via Claude Code (easiest method)

If you are using Claude Code, add the Qwen MCP tool with a single command. This configures everything automatically.

claude mcp add qwen-cli -- npx -y @jaggerxtrm/qwen-mcp-tool
3

Install globally via npm (alternative)

For Claude Desktop or other MCP clients, install the package globally.

npm install -g @jaggerxtrm/qwen-mcp-tool
4

Configure Claude Desktop

Add the server to your Claude Desktop config at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) using npx for zero-install execution.

{
  "mcpServers": {
    "qwen-cli": {
      "command": "npx",
      "args": ["-y", "@jaggerxtrm/qwen-mcp-tool"]
    }
  }
}
5

Restart your MCP client and test

Restart Claude Desktop or Claude Code. The ask-qwen, ping, and help tools should now be available. Send a ping to verify the connection.

Qwen Examples

Client configuration

Claude Desktop configuration using npx for the Qwen MCP Tool. No environment variables are required beyond the Qwen CLI being configured.

{
  "mcpServers": {
    "qwen-cli": {
      "command": "npx",
      "args": ["-y", "@jaggerxtrm/qwen-mcp-tool"]
    }
  }
}

Prompts to try

Example prompts demonstrating file analysis, codebase summarization, and sandboxed execution via Qwen.

- "Use Qwen to analyze @src/main.ts and explain what it does"
- "Ask Qwen to summarize the architecture of @src/ using qwen3-coder-plus"
- "Have Qwen run the test suite and fix any failures (use sandbox mode)"
- "Use Qwen to analyze the entire @. codebase and identify security vulnerabilities"
- "Ask Qwen to refactor @utils/helpers.ts with auto-edit approval mode"

Troubleshooting Qwen

ask-qwen tool returns 'Qwen CLI not found' or command not found errors

Ensure the Qwen CLI (qwen-code) is installed and accessible in your PATH. Run 'which qwen' or 'qwen --version' in your terminal to verify. If installed globally via npm, restart your terminal session to refresh the PATH.

Quota limit errors causing fallback to qwen3-coder-turbo

This is expected behavior — the tool automatically falls back to qwen3-coder-turbo when qwen3-coder-plus hits rate limits. To force a specific model, pass it explicitly in your prompt: 'Use Qwen with model qwen3-coder-turbo to...'.

File references with @filename are not being included

Ensure @filename paths are relative to the current working directory where the MCP server process is running. For directories, use @dirname/ with a trailing slash. Absolute paths are also supported.

Frequently Asked Questions about Qwen

What is Qwen?

Qwen is a Model Context Protocol (MCP) server that enables ai assistants to leverage qwen's code analysis capabilities with large context windows, supporting file/directory analysis, sandbox execution, and multiple approval modes for safe code operations. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Qwen?

Follow the installation instructions on the Qwen GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Qwen?

Qwen works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Qwen free to use?

Yes, Qwen is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "qwen-mcp-tool": { "command": "npx", "args": ["-y", "qwen-mcp-tool"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Qwen?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides