Qwen3 MCP Server
Multi-model MCP server enabling code generation, visual analysis, and complex reasoning via Qwen3 models.
README
Qwen3 MCP Server
A Model Context Protocol (MCP) server ecosystem providing access to multiple AI models optimized for different tasks: code generation, vision analysis, and complex reasoning.
š Quick Start
# Automated setup
./setup.sh
# Start default server
python src/main.py
# Or use ephemeral model switching
ask-qwen3 "Write a Python function" # Code generation
ask-vision "Analyze this image" # Visual analysis
ask-ministral "Solve this equation" # Complex reasoning
š Documentation
Essential Guides
- Setup Guide - Complete installation and configuration
- Usage Guide - Workflows, examples, and best practices
- Models Reference - Model capabilities and configurations
- Agent Guide - Warp agent integration guidance
Quick Navigation
- šļø Getting Started: Setup Guide ā Usage Guide
- š¤ Model Selection: See Models Reference
- š§ Troubleshooting: Check Setup Guide or Usage Guide
- šÆ Specific Tasks: Browse Usage Guide
š Features
Multi-Model Ecosystem
- Qwen3-Coder-Next: Code generation, debugging, technical writing
- Qwen3-VL-8B: Image analysis, UI review, document OCR
- Qwen3-30B: Complex reasoning with thinking mode
- Ministral-3-14B: Mathematical reasoning and logical analysis
Flexible Hosting
- Ollama: Local model serving (recommended)
- HTTP API: Remote model endpoints
- Transformers: Direct model loading
- Ephemeral Switching: Dynamic model selection
Developer Experience
- MCP Compliance: Full Model Context Protocol support
- Shell Integration: Quick aliases and commands
- Warp Integration: Native Warp agent support
- Multi-Transport: stdio and HTTP transports
- Thinking Mode: Detailed reasoning visualization
šÆ Use Cases
| Task | Recommended Model | Command |
|---|---|---|
| Code Review | Qwen3-Coder | ask-qwen3 "Review this code" |
| UI Analysis | Qwen3-Vision | ask-vision "Analyze this screenshot" |
| Math Problems | Ministral | ask-ministral "Solve step-by-step" |
| System Design | Qwen3-30B | python src/main.py --enable-thinking |
| Document OCR | Qwen3-Vision | ask-vision "Extract text from image" |
| Algorithm Design | Qwen3-Coder | ask-qwen3 "Implement data structure" |
ā” Quick Commands
Model Switching
mcp-qwen3 # Code-focused development
mcp-vision # Visual analysis tasks
mcp-ministral # Reasoning and mathematics
mcp-all # Enable all models
mcp-clean # Reset to clean state
One-Shot Tasks
ask-qwen3 "Write a REST API endpoint"
ask-vision "What's wrong with this UI?"
ask-ministral "Prove this theorem"
Server Management
# Start with specific model
python src/main.py --model-method ollama --ollama-model qwen3:30b-a3b
# Start with HTTP endpoint
python src/main.py --model-method http --http-model qwen/qwen3-coder-next
# Enable debug logging
python src/main.py --log-level DEBUG
š§ System Requirements
- Python: 3.10+ (3.12+ recommended)
- Memory: 16GB+ RAM (32GB+ for 30B model)
- Network: Access to HTTP endpoints or Ollama service
- OS: macOS, Linux, Windows
- Optional: CUDA-compatible GPU for Transformers method
š¦ Health Check
# Check system status
mcp-list
# Test specific model
ask-ministral "Hello, are you working?"
# Verify endpoints
curl -s http://localhost:1234/v1/models
š Project Structure
qwen3-mcp-server/
āāā docs/ # š Comprehensive documentation
ā āāā SETUP.md # Installation and configuration
ā āāā USAGE.md # Usage patterns and examples
ā āāā MODELS.md # Model reference and capabilities
āāā src/ # š§ Core implementation
ā āāā main.py # Entry point and CLI
ā āāā server.py # MCP server implementation
ā āāā model_interface.py # Model hosting abstractions
ā āāā config.py # Configuration management
āāā config/ # āļø Model configurations
ā āāā qwen3-coder-http.json
ā āāā qwen3-vl-8b-http.json
ā āāā ministral-3-14b-reasoning-http.json
āāā scripts/ # š¤ Automation scripts
ā āāā switch-model.sh # Model switching logic
āāā AGENTS.md # š¤ Warp agent guidance
āāā setup.sh # š Automated setup
āāā requirements.txt # š¦ Python dependencies
## š License
MIT License - see [LICENSE](LICENSE) file for details.
## š Acknowledgments
- [Model Context Protocol](https://modelcontextprotocol.io/) by Anthropic
- [Qwen Team](https://github.com/QwenLM) for the Qwen3 models
- [Ollama](https://ollama.ai/) for local model hosting
- [Mistral AI](https://mistral.ai/) for the Ministral reasoning model
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.