Best MCP Servers for Qwen Code in 2026
Firecrawl, Bright Data, Zyte, and Crawlora as MCP servers for Qwen Code: httpUrl syntax, a plaintext-key trap we hit, tool search, and who documents it.
Qwen Code is the terminal coding agent from Alibaba's Qwen team. It runs against Qwen models, and in our test it also accepted an OpenAI-compatible endpoint. Its repository, QwenLM/qwen-code, had about 30,500 stars on November 16, 2026, and the team ships a numbered release most weeks. MCP changes show up in those weekly notes with some regularity: the October 15 update added --disable-mcp-server to skip one server for a single run, an August update let Agent Plugins bundle MCP servers, and a June change made servers declared in a project's .mcp.json wait for your approval before they connect.
That mix of fast releases, per-project approval and its own config keys is why a generic "paste this JSON" guide goes wrong here. The vendor choice matters less than getting the wiring and the key handling right.
Qwen Code's MCP config
Settings live in two places, merged with the project file winning:
~/.qwen/settings.json: user scope, every project..qwen/settings.json: project scope.
Servers sit under mcpServers. The transport is chosen by which URL key you use, and this is where Qwen Code departs from most clients:
| Transport | Key | Notes |
|---|---|---|
| Streamable HTTP (remote) | httpUrl, plus optional headers | Recommended for hosted servers |
| SSE (legacy) | url, plus optional headers | Deprecated; use HTTP when a server offers both |
| stdio (local process) | command, args, env | env values may reference $VAR or ${VAR} |
{
"mcpServers": {
"example": {
"httpUrl": "https://mcp.example.com/mcp",
"headers": { "Authorization": "Bearer $EXAMPLE_API_KEY" }
}
}
}
The same entry from the command line is qwen mcp add --scope user --transport http example https://mcp.example.com/mcp --header 'Authorization: Bearer $EXAMPLE_API_KEY'. qwen mcp list connects to each server and prints Connected, Disconnected or Pending approval.
The key-handling trap we found
Qwen Code's reference page documents $VAR and ${VAR} for the stdio env block and says nothing either way about headers. We tested headers directly on 0.27.4, using a local server that logs the Authorization header each request carries:
- Hand-edited reference, key set when Qwen Code starts: both
"Bearer $FAKE_KEY"and"Bearer ${FAKE_KEY}"arrived at the server as the real value. Runtime expansion works for headers. qwen mcp add --header 'Authorization: Bearer $FAKE_KEY'withFAKE_KEYexported in the same shell: single quotes stop your shell from expanding the variable, but Qwen Code expands it itself while saving. The resulting~/.qwen/settings.jsoncontained"Bearer TESTKEY123", the literal value, in a file with mode-rw-r--r--.- The same command with
FAKE_KEYnot exported: the file stored"Bearer $FAKE_KEY", the reference, as intended.
So the order of steps decides whether your key is stored in plaintext. Firecrawl's Qwen Code quickstart tells you to export FIRECRAWL_API_KEY first and then run qwen mcp add ... --header 'Authorization: Bearer $FIRECRAWL_API_KEY', with the explanation that single quotes keep the settings file holding "the reference instead of your key". With the key already exported, that is not what 0.27.4 did in our test. The safe route is to write the reference into the JSON yourself, or to run qwen mcp add in a shell where the variable is not exported yet, and check the file afterwards.
What else Qwen Code does with MCP servers
- Approval for project servers. When we ran
qwen mcp listfrom this site's repository, thecrawloraserver declared in its.mcp.jsonshowed as "Pending approval", not Connected. A cloned repo cannot connect you to its servers silently. - A 5-second discovery cap for remote servers. Qwen Code discovers servers in the background and shows "N/M MCP servers ready". Each server has a
discoveryTimeoutMsbudget for the handshake and listing step; the docs give remote HTTP and SSE servers 5 seconds. The separatetimeoutfield is for individual tool calls. - Deferred tools. Qwen Code has a tool-search step (the May 14 weekly update is titled "ToolSearch saves tokens on demand"). In a headless run with one local MCP server connected, the first request our stand-in model endpoint received listed six tools:
glob,grep_search,read_file,skill,tool_callandtool_search. The server's own tool did not appear by name. We saw this once, with one server, and did not check how Qwen Code ranks tools when the model searches. - Trust and filtering.
trust: trueon a server skips confirmation prompts for it, only in a trusted workspace.mcp.allowedandmcp.excludedtake server-name globs, and excluded wins. - OAuth. Built in, with a default callback at
http://localhost:7777/oauth/callback. Cloud IDEs and remote shells need a public redirect URI behind a TLS proxy. The documented setup passes explicit client and endpoint fields, so we treat sign-in-by-discovery as untested.
What to evaluate in Qwen Code specifically
- How the key is stored. A reference in settings.json is fine; a resolved key written by qwen mcp add is not. Open the file after adding a server.
- Tool surface. A server that lists a handful of tools connects fast and stays under the 5-second cap. A catalog of thousands depends on tool search working well for your prompts.
- Transport key. Remote servers need httpUrl. A config copied from Claude Code, Cursor or Kiro that says url is read as legacy SSE.
- Project approval. Servers declared in a repo's .mcp.json stay pending until you approve them. Put the servers you always want in the user file.
- Vendor documentation for Qwen Code. A setup page written against today's Qwen Code beats a generic MCP snippet.
The contenders
| Tool | Format | Qwen Code-specific documentation | Auth | Connection check on 0.27.4 (Nov 16) |
|---|---|---|---|---|
| Firecrawl MCP | Hosted, https://mcp.firecrawl.dev/v2/mcp | Yes: an official quickstart (needs Qwen Code 0.25+) | Bearer header; also answers without a key | Connected with no key |
| Bright Data | Local stdio npx @brightdata/mcp, or hosted https://mcp.brightdata.com/mcp | Yes: a dedicated guide, last modified May 18, 2026 | API_TOKEN env var (local), token or OAuth (hosted) | Hosted URL: Disconnected without credentials |
| Zyte | Hosted, https://mcp.zyte.com/v1/mcp | No: Qwen Code is not in Zyte's client list | OAuth sign-in with a Zyte account | Disconnected without sign-in |
| Crawlora | Hosted, https://mcp.crawlora.net/mcp and narrower views | No Qwen Code page; generic remote server | Bearer header, or OAuth 2.1 (untested in Qwen Code) | /mcp/agent, /mcp/family/web and /mcp Connected with a key; Disconnected with a wrong key |
"Connected" here means qwen mcp list completed the handshake. It is not a test of any tool.
Firecrawl MCP: the shortest documented path
Firecrawl publishes "MCP Web Search & Scrape in Qwen Code". The entry, written as a reference in the file:
{
"mcpServers": {
"firecrawl": {
"httpUrl": "https://mcp.firecrawl.dev/v2/mcp",
"headers": { "Authorization": "Bearer $FIRECRAWL_API_KEY" }
}
}
}
The quickstart lists search, scrape, interact (navigate, click, fill forms) and Alexandria (discover and run structured-data tools). The server also accepted a connection with no key at all in our qwen mcp list check, which matches Firecrawl's keyless mode; a separate run against Goose showed three tools in that mode (search, scrape and parse). Use the file form above, not the exported-variable qwen mcp add flow, for the reason in the previous section. Choose it when the job is reading a page or a docs site into context and you want the least setup.
Bright Data: a dedicated guide with one stale setting
Bright Data publishes "Qwen Code with Bright Data", last modified May 18, 2026. It installs Qwen Code, authenticates with /auth, and adds the local server through a project-level .qwen/settings.json that runs npx -y @brightdata/mcp with an API_TOKEN in env. It also mentions npx skills add brightdata/skills -a qwen-code. The guide sets PRO_MODE to "true"; the current README for @brightdata/mcp no longer mentions that variable at all and describes 30 tools, so treat that line in the guide as out of date.
{
"mcpServers": {
"brightdata": {
"command": "npx",
"args": ["-y", "@brightdata/mcp"],
"env": { "API_TOKEN": "$BRIGHT_DATA_API_TOKEN" }
}
}
}
The env block above is our adaptation: we swapped the pasted token for a $VAR reference, which Qwen Code's docs support for stdio env. Bright Data's own docs also describe a hosted server at https://mcp.brightdata.com/mcp?token=... (or OAuth 2.1); that route is not part of its Qwen Code guide and we did not test it with a token. Choose it when the target is a protected site and you accept running a local process.
Zyte: hosted, but not on Zyte's Qwen Code list
Zyte launched a hosted MCP server at https://mcp.zyte.com/v1/mcp on September 30, 2026. Its documentation names Claude Code, Codex CLI, GitHub Copilot CLI, VS Code and claude.ai, plus a generic block for other clients. Qwen Code is not listed. The likeliest entry is httpUrl with the Zyte URL and a sign-in, which we could not complete: with no account, qwen mcp list showed Zyte as Disconnected. We did not create an account, so whether Qwen Code's OAuth flow can finish Zyte's sign-in is untested. Choose it if you already pay for Zyte API or Scrapy Cloud.
Crawlora: pick a narrow endpoint
Crawlora's MCP server is hosted streamable HTTP with three views of the same tools. The default endpoint lists 5,248 tools in the catalog; on November 16 its first tools/list page held 1000 tools (about 1.3 MB) and the live list was larger still. Two narrower views suit a client with a 5-second handshake and a tool-search step:
/mcp/agentserves 3 tools (search_tools,get_tool,call_tool) and reaches the whole catalog through search./mcp/family/webserves 9 tools (web_search,web_scrape,web_crawl,web_mapand their status and result companions). Every platform has its own family;GET https://mcp.crawlora.net/mcp/family/lists them.
{
"mcpServers": {
"crawlora": {
"httpUrl": "https://mcp.crawlora.net/mcp/agent",
"headers": { "Authorization": "Bearer $CRAWLORA_API_KEY" }
}
}
}
Get a free key at crawlora.net (2,000 credits a month, no card), export CRAWLORA_API_KEY, and write the entry into the file by hand. On Qwen Code 0.27.4 all three endpoints connected with that reference, and an entry with a wrong key came up Disconnected, so qwen mcp list doubles as a quick key check. Billing is per successful call only. Choose it when you want one specific record from a named platform (a price, a ranking, a listing, a filing) rather than a page to read.
How to choose, by job
- Reading docs or an article into context with the least setup? Firecrawl, entered by hand as a
$FIRECRAWL_API_KEYreference. - Scraping a protected site and happy to run a process? Bright Data, minus the
PRO_MODEline. - Already on Zyte API or Scrapy Cloud? Zyte's hosted server, once you have confirmed sign-in works in your Qwen Code build.
- Structured data from many named platforms? Crawlora through
/mcp/agent, or/mcp/family/webfor web search and scraping only. - In a team repo? Keep shared servers in
.qwen/settings.json, keep keys as references, and expect each person to approve project servers once.
Add structured web data to Qwen Code
One API key, billed only on success. 2,000 free credits a month, no card.
Sources
Related reading
- Best MCP Servers for Gemini CLI in 2026 · Best MCP Servers for OpenCode in 2026: two other open-source terminal agents.
- Best MCP Servers for Kiro in 2026 · Best MCP Servers for Pi in 2026: clients that defer or search tools instead of declaring them all.
- Crawlora vs Firecrawl · Crawlora vs Bright Data · Crawlora vs Zyte.
- Give your AI agent live web data with MCP: how MCP works and how to connect in three minutes.
Frequently asked questions
Does Qwen Code support MCP servers?
Yes. Qwen Code reads MCP servers from ~/.qwen/settings.json (user) or .qwen/settings.json (project) under mcpServers. Remote streamable HTTP servers use the key httpUrl with optional headers, legacy SSE servers use url, and local servers use command, args and env. qwen mcp add and qwen mcp list manage and check them.
Why does my MCP config from another client not work in Qwen Code?
Most clients use url for remote servers. Qwen Code uses httpUrl for streamable HTTP and reads url as the legacy SSE transport, so a config copied from Claude Code, Cursor or Kiro needs that one key changed.
Does qwen mcp add store my API key in plaintext?
It can. In our test on Qwen Code 0.27.4, running qwen mcp add --header 'Authorization: Bearer $KEY' with KEY exported in the shell wrote the resolved value into ~/.qwen/settings.json, a file created readable by all users. With KEY not exported it stored the $KEY reference. A $KEY or ${KEY} reference written into the JSON by hand was expanded when Qwen Code started. Check the file after adding a server.
Why is a project's MCP server pending approval in Qwen Code?
Servers declared in a project's .mcp.json do not connect until you approve them; qwen mcp list shows them as Pending approval. Put servers you always want in ~/.qwen/settings.json. Qwen Code also supports trust: true per server, plus mcp.allowed and mcp.excluded glob lists, where excluded wins.
Which web-data MCP servers work with Qwen Code?
Firecrawl and Bright Data each publish a Qwen Code setup page. Zyte's hosted server and Crawlora's hosted server are generic remote entries that Qwen Code's docs do not mention. Crawlora's /mcp/agent, /mcp/family/web and default endpoints all connected with a Bearer key on Qwen Code 0.27.4; we did not run a real model session or any tool end to end.
