npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

qwen-cli-chrome-bridge-host

v0.0.1

Published

Bridge service + MCP server for the Qwen Chrome Extension (HTTP bridge, browser MCP tools)

Readme

Qwen Chrome Bridge Native Host (MCP-ready)

Bridge service + browser MCP server for the Qwen Chrome Extension. Provides an HTTP bridge on 127.0.0.1:18765 and the chrome-browser MCP tools (read_page, capture_screenshot, get_network_logs, get_console_logs, fill_form, input_text). The MCP entry auto-starts the bridge host; no manual node host.js needed.

Requirements

  • Node.js 18+ recommended (14+ minimum per engines)
  • Qwen Chrome Extension installed/loaded

Development (TypeScript)

  • npm run dev watches/compiles TypeScript to dist/ (used by the shim entries host.js and src/*.js), handy to keep running alongside npm run dev in packages/chrome-extension.
  • npm run build cleans and emits production-ready JS + .d.ts to dist/ (also invoked by the Chrome extension npm run build).

Install & add to Qwen as MCP

From repo root:

cd packages/chrome-extension/native-host
npm install -g .          # or: npm pack && npm install -g qwen-cli-bridge-host-*.tgz

# 按照 Qwen CLI 文档(基于 settings.json 的 mcpServers)
# stdio 传输,命令为本包的可执行文件
qwen mcp add --transport stdio chrome-browser "chrome-browser-mcp"

# 验证
qwen mcp list
  • chrome-browser-mcp (别名 browser-bridge-mcp) 是本包提供的可执行文件(stdio MCP)。被加载时会健康检查并拉起 host.js;host 提供 /api/events 给扩展访问。

后台常驻(可选)

如果希望在添加 MCP 后立即有 18765 端口、无需等待 Qwen 首次加载 MCP,可直接将 host 跑成后台:

cd packages/chrome-extension/native-host
./scripts/run-daemon.sh   # 启动 host.js,监听 127.0.0.1:18765,日志写 ~/.qwen/chrome-bridge/qwen-bridge-host.log
# 停止:kill $(cat ~/.qwen/chrome-bridge/qwen-bridge-host.pid)

Manual run (optional)

  • Run only the HTTP bridge host: npm run start (listens on 127.0.0.1:18765).
  • Run only the MCP server (will spawn host if needed): npm run mcp.

Logs

Host log: ~/.qwen/chrome-bridge/qwen-bridge-host.log (fallback /tmp/qwen-bridge-host.log).

Notes

  • The bridge assumes the Chrome extension is loaded and allowed to fetch http://127.0.0.1:18765/*.
  • If you change the port, set BRIDGE_BASE/BRIDGE_URL env vars before launching chrome-browser-mcp.