How to Connect Qwen Code to MewCP
Qwen Code is Alibaba's open-source coding agent for the terminal. It reads remote MCP servers from its settings file and signs in to them with OAuth. Add MewCP once, and Qwen Code can use every app you have connected in MewCP: Gmail, Calendar, Slack, GitHub and the rest. There is no API key to paste.
Before you start
- Qwen Code installed
- A MewCP account with at least one app connected under Apps
Set up MewCP
-
Open your settings
Edit
~/.qwen/settings.json, or.qwen/settings.jsonin your project root. -
Add the server
Merge this into
mcpServers, keeping your other settings:Code -
Sign in
Start
qwen, or restart it if it was already running. Run/mcp, selectmewcp, and approve access in the browser window.Code
This is the entire configuration. One entry reaches every app you have connected, and connecting another app later needs no change here.
Check it works
/mcp shows the server status. Then ask:
Code
You will see four tools, not the tools of every app: search, get_schema, manage_connections and call_tool. That is expected. Qwen Code uses them to find and run the right tool for whatever you ask. See How MewCP works.
Troubleshooting
MewCP is missing after you changed the settings
Restart qwen so it reads the new settings.
Sign-in has expired or failed
Run /mcp, select mewcp, and sign in again. See OAuth Sign-In for errors on the sign-in page.
A 403 says your plan's billing period has ended
Your MewCP plan needs renewing under Billing.
Last updated on 29 November 2026.