qwen-expert
Qwen Studio Browser Gateway
Unofficial localhost-only gateway that gives Claude Code one additional untrusted expert opinion from Qwen 3.8 Max through a manually authorized web session at chat.qwen.ai.
This is not the official Qwen API, not a primary agent, and not a source of guaranteed-correct answers. The user signs in manually on each host; the project does not transfer cookies/tokens, bypass CAPTCHA/MFA, or give Qwen access to the shell, filesystem, or local tools.
Flow
Claude Code
└─ MCP ask_qwen_expert
└─ http://127.0.0.1:8798/v1/expert
└─ FIFO, active = 1
└─ CDP http://127.0.0.1:9333
└─ одна видимая вкладка https://chat.qwen.ai
└─ точная Qwen3.8-MaxBefore each Send, the gateway selects and confirms qwen3.8-max / Qwen3.8-Max. A model mismatch, unknown DOM, challenge, missing login, or remote endpoint result in an error. After Send, browser generation is not repeated automatically.
Related MCP server: claude-consult-mcp
Requirements
Node.js 22+;
Chrome/Chromium with a graphical window;
Linux for prebuilt systemd user templates (the Node.js gateway itself is portable);
your own Qwen account and the right to use the web service.
Installation
npm ci
npm run check
npm run build
npm testCreate a private configuration:
install -d -m 700 ~/.config/qwen-studio-browser-gateway
cp .env.example ~/.config/qwen-studio-browser-gateway/server.env
chmod 600 ~/.config/qwen-studio-browser-gateway/server.envEdit server.env:
set the local
QWEN_BROWSER_EXECUTABLE_PATH;generate a new random
QWEN_LOCAL_API_KEYfor this host;do not change loopback endpoints;
before use, confirm the current ID/label of the strongest model in the live UI.
Do not commit server.env or the browser profile.
Manual login
Run a separate browser:
set -a
source ~/.config/qwen-studio-browser-gateway/server.env
set +a
./start-qwen-browser.shIn the opened window, sign in to https://chat.qwen.ai manually. Only the user can complete CAPTCHA and MFA. Leave one Qwen tab open.
In another terminal, start the gateway:
set -a
source ~/.config/qwen-studio-browser-gateway/server.env
set +a
node dist/cli.js serveFor a persistent Linux user service, use the templates in systemd/ and the instructions in docs/setup.md.
Safe smoke tests
These requests do not trigger generation:
node dist/cli.js browser doctor
curl -fsS -H "Authorization: Bearer $QWEN_LOCAL_API_KEY" \
http://127.0.0.1:8798/health
curl -fsS -H "Authorization: Bearer $QWEN_LOCAL_API_KEY" \
http://127.0.0.1:8798/v1/models
node dist/cli.js mcp install-configPOST /v1/expert and POST /v1/chat/completions start real web generation and may consume quota.
Claude Code MCP
After npm run build, run:
node dist/cli.js mcp install-configThe command prints portable JSON with the current paths to Node.js and dist/cli.js. Add the qwen-expert object to the Claude Code MCP configuration on this host. MCP publishes only ask_qwen_expert; the response is always marked as advisory and must be checked independently.
Security boundaries
HTTP and CDP accept only loopback endpoints.
QWEN_WEB_URLaccepts only the originhttps://chat.qwen.ai.A local API key is required.
Prompts are not logged; screenshots are disabled by default.
One tab and one FIFO queue prevent responses from mixing.
Qwen does not receive executable tools or local files.
The project is not intended to bypass site restrictions or to enable mass automation.
More: AGENTS.md, docs/architecture.md, docs/security.md, docs/troubleshooting.md.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
No-data MCP handoff for local Claude Code to Codex harness moves. $49 lifetime.
Share context and questions between Claude instances — VS Code, claude.ai web, and mobile.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables Claude Code to consult external LLMs (GPT, Gemini) through multi-turn sessions for second opinions, parallel consultations, and web-grounded research.MIT- AlicenseAqualityDmaintenanceEnables OpenAI Codex to consult Claude Code for co-analysis, adversarial second opinions, and read-only file review over the Model Context Protocol, with Claude remaining advisory and unable to modify files.923 npmMIT
- AlicenseAqualityCmaintenanceBridges Codex to a local Claude Opus 5 collaborator via Claude Code, enabling controlled read-only consultation or write-capable tasks on allowed workspaces with independent verification.3MIT
- AlicenseAqualityBmaintenanceEnables Codex to consult Claude Code for a second opinion through a local stdio MCP server, exposing the ask_claude tool for text-only reviews and recommendations using existing Claude Code authentication. Codex can request findings and tradeoff analysis without allowing Claude to edit files or run commands.11MIT