by jaggerxtrm
Enhance your codebase with Qwen Code, a leading code quality analysis tool offering advanced CLI integration and automat
Integrates Qwen AI models with MCP-compatible assistants for code analysis, allowing you to query AI about specific files using @filename syntax and leverage large context windows for codebase exploration.
Qwen Code is a community-built MCP server published by jaggerxtrm that provides AI assistants with tools and capabilities via the Model Context Protocol. Enhance your codebase with Qwen Code, a leading code quality analysis tool offering advanced CLI integration and automat It is categorized under ai ml, developer tools. This server exposes 3 tools that AI clients can invoke during conversations and coding sessions.
You can install Qwen Code in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Qwen Code is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
Strong directory entry: Qwen Code surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Qwen Code has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
Qwen Code reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
Qwen Code is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Qwen Code reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
According to our notes, Qwen Code benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
Qwen Code has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
I recommend Qwen Code for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
We evaluated Qwen Code against two servers with overlapping tools; this profile had the clearer scope statement.
We wired Qwen Code into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
showing 1-10 of 70
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.
@filename or @directory syntax to include file contents in your queriesUse Claude Code's built-in MCP installer:
claude mcp add qwen-cli -- npx -y @jaggerxtrm/qwen-mcp-tool
This single command configures everything automatically!
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"
}
}
}
Manually configure to use npx without installing:
{
"mcpServers": {
"qwen-cli": {
"command": "npx",
"args": ["-y", "@jaggerxtrm/qwen-mcp-tool"]
}
}
}
git clone <repo-url>
cd qwen-mcp-tool
npm install
npm run build
npm link
The main tool for interacting with Qwen AI.
Parameters:
prompt (required): Your question or instruction
@filename to include a file's contents@directory to include all files in a directorymodel (optional): Model to use (qwen3-coder-plus, qwen3-coder-turbo, etc.)sandbox (optional): Enable sandbox mode for safe code executionapprovalMode (optional): Control tool execution approval
plan: Analyze tool calls without executingdefault: Prompt for approval (default behavior)auto-edit: Auto-approve file editsyolo: Auto-approve all tool callsyolo (optional): Shortcut for approvalMode='yolo'allFiles (optional): Include all files in current directory as contextdebug (optional): Enable debug modeExamples:
// 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"
}
Simple echo test to verify the connection.
Parameters:
prompt (optional): Message to echo (defaults to "Pong!")Display Qwen CLI help information.
Parameters: None
The tool uses the following default models:
You can override these by specifying the model parameter in your requests.
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.
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
ask-qwen, the prompt is passed to the Qwen CLI with appropriate flags@filename) are handled by Qwen's built-in file processingThis tool is inspired by gemini-mcp-tool but adapted for Qwen CLI:
| Feature | Gemini MCP | Qwen MCP |
|---|---|---|
| File references | ✅ | ✅ (more advanced) |
| Sandbox mode | ✅ | ✅ |
| Multiple models | ✅ | ✅ |
| Approval modes | ❌ | ✅ |
| Directory traversal | Basic | Advanced (git-aware) |
| Multimodal support | Limited | Images, PDFs, audio, video |
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
For very large files or codebases, the analysis may take longer than the default 10-minute timeout. Consider:
.qwenignore to exclude unnecessary filesapprovalMode: "plan" to analyze without executingCheck that your arguments match the tool schema. Use the Help tool to see available options.
MIT
Contributions are welcome! Please feel free to submit issues or pull requests.
Inspired by gemini-mcp-tool by jamubc. Built for use with Qwen Code.
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.