Qwen MCP Tool

Qwen MCP Tool

qwen-code•byjaggerxtrm

A Model Context Protocol server that integrates the Qwen CLI, letting MCP-compatible AI assistants query Qwen models for code analysis over large files and codebases.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes an ask-qwen tool that sends prompts to the Qwen CLI, supporting @filename and @directory references to include file or directory contents.
  • •Supports selecting Qwen models, with qwen3-coder-plus as primary and qwen3-coder-turbo as an automatic fallback when quota limits are reached.
  • •Offers sandbox mode for safe code execution and configurable approval modes (plan, default, auto-edit, yolo) for controlling tool execution.
  • •Includes a ping echo test and a help tool that displays Qwen CLI help information.

BEST FOR

  • •Analyzing a specific source file or summarizing the architecture of an entire codebase through Qwen's large context window.
  • •Running a test suite and fixing failures using sandbox mode with auto-approved file edits.
  • •Delegating codebase questions from Claude Code to Qwen, such as analyzing an authentication system.

ABOUT QWEN-CODE

Qwen MCP Tool is cataloged as an MCP server attributed to jaggerxtrm. A Model Context Protocol server that integrates the Qwen CLI, letting MCP-compatible AI assistants query Qwen models for code analysis over large files and codebases. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Qwen MCP Tool are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server handle quota limits when using the primary model?

If quota limits are hit, the server automatically falls back to the turbo model (qwen3-coder-turbo).

What do the approval modes control?

They control tool execution approval: plan analyzes tool calls without executing, default prompts for approval, auto-edit auto-approves file edits, and yolo auto-approves all tool calls.

Upstream README

View this exact version on GitHub

README.md · 5d5a10106e25 · Fetched 2026-11-13 09:27:48 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Qwen MCP Tool

Model Context Protocol server for Qwen CLI integration. This tool enables AI assistants like Claude to leverage Qwen's powerful code analysis and large context window capabilities through the MCP protocol.

Features

  • Large Context Windows: Leverage Qwen's massive token capacity for analyzing large files and entire codebases
  • File Analysis: Use @filename or @directory syntax to include file contents in your queries
  • Sandbox Mode: Safely execute code and run tests in isolated environments
  • Multiple Models: Support for various Qwen models (qwen3-coder-plus, qwen3-coder-turbo, etc.)
  • Flexible Approval Modes: Control tool execution with plan/default/auto-edit/yolo modes
  • MCP Protocol: Seamless integration with MCP-compatible AI assistants

Prerequisites

  • Node.js v16 or higher
  • Qwen CLI installed and configured (qwen-code)

Installation

Use Claude Code's built-in MCP installer:

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

This single command configures everything automatically!

Via Global Install

Install via npm:

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

Then add to Claude Code MCP settings (~/.config/claude/mcp_settings.json):

{
  "mcpServers": {
    "qwen-cli": {
      "command": "qwen-mcp-tool"
    }
  }
}

Via npx (Manual Configuration)

Manually configure to use npx without installing:

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

From Source (Development)

  1. Clone and install dependencies:
git clone <repo-url>
cd qwen-mcp-tool
npm install
  1. Build the project:
npm run build
  1. Link locally:
npm link

Available Tools

ask-qwen

The main tool for interacting with Qwen AI.

Parameters:

  • prompt (required): Your question or instruction
    • Use @filename to include a file's contents
    • Use @directory to include all files in a directory
  • model (optional): Model to use (qwen3-coder-plus, qwen3-coder-turbo, etc.)
  • sandbox (optional): Enable sandbox mode for safe code execution
  • approvalMode (optional): Control tool execution approval
    • plan: Analyze tool calls without executing
    • default: Prompt for approval (default behavior)
    • auto-edit: Auto-approve file edits
    • yolo: Auto-approve all tool calls
  • yolo (optional): Shortcut for approvalMode='yolo'
  • allFiles (optional): Include all files in current directory as context
  • debug (optional): Enable debug mode

Examples:

// Analyze a specific file
{
  "prompt": "@src/main.ts Explain what this code does"
}

// Analyze entire codebase
{
  "prompt": "@src/ Summarize the architecture of this codebase"
}

// Use specific model with sandbox
{
  "prompt": "Run the test suite and fix any failures",
  "model": "qwen3-coder-plus",
  "sandbox": true,
  "approvalMode": "auto-edit"
}

ping

Simple echo test to verify the connection.

Parameters:

  • prompt (optional): Message to echo (defaults to "Pong!")

Help

Display Qwen CLI help information.

Parameters: None

Configuration

The tool uses the following default models:

  • Primary: qwen3-coder-plus
  • Fallback: qwen3-coder-turbo (used if primary hits quota limits)

You can override these by specifying the model parameter in your requests.

Usage with Claude Code

Once installed as an MCP server, you can use it within Claude Code:

Ask Qwen to analyze the authentication system in @src/auth/

Claude will automatically use the ask-qwen tool with the appropriate parameters.

Project Structure

qwen-mcp-tool/
├── src/
│   ├── index.ts              # MCP server entry point
│   ├── constants.ts          # Configuration and constants
│   ├── tools/
│   │   ├── registry.ts       # Tool registration system
│   │   ├── ask-qwen.tool.ts  # Main Qwen interaction tool
│   │   ├── simple-tools.ts   # Utility tools (ping, help)
│   │   └── index.ts          # Tool exports
│   └── utils/
│       ├── commandExecutor.ts # Command execution utility
│       ├── qwenExecutor.ts    # Qwen CLI wrapper
│       └── logger.ts          # Logging utility
├── package.json
├── tsconfig.json
└── README.md

How It Works

  1. The MCP server listens for tool calls via stdio transport
  2. When a tool is called, the server validates the arguments using Zod schemas
  3. For ask-qwen, the prompt is passed to the Qwen CLI with appropriate flags
  4. File references (@filename) are handled by Qwen's built-in file processing
  5. Output is captured and returned to the MCP client
  6. If quota limits are hit, the server automatically falls back to the turbo model

Comparison with Gemini MCP Tool

This tool is inspired by gemini-mcp-tool but adapted for Qwen CLI:

FeatureGemini MCPQwen MCP
File references✅✅ (more advanced)
Sandbox mode✅✅
Multiple models✅✅
Approval modes❌✅
Directory traversalBasicAdvanced (git-aware)
Multimodal supportLimitedImages, PDFs, audio, video

Troubleshooting

"Qwen CLI not found"

Make sure the Qwen CLI is installed and available in your PATH:

npm install -g @qwen/cli
# or follow instructions at https://github.com/QwenLM/qwen-code

"Command timed out"

For very large files or codebases, the analysis may take longer than the default 10-minute timeout. Consider:

  • Using .qwenignore to exclude unnecessary files
  • Breaking down large queries into smaller chunks
  • Using approvalMode: "plan" to analyze without executing

"Invalid tool arguments"

Check that your arguments match the tool schema. Use the Help tool to see available options.

License

MIT

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

Credits

Inspired by gemini-mcp-tool by jamubc. Built for use with Qwen Code.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Qwen MCP Tool from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/qwen-code)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools