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

chromectx

v0.1.1

Published

macOS CLI and MCP server for Chrome tab context

Readme

chromectx

For those who routinely end up with 90+ Chrome tabs. Search all your open tabs by title or full page content, save entire windows to JSON, restore them later, and expose everything as RAG context for AI tools via MCP.

# Fast — searches tab titles and URLs only
chromectx search 'figma design system'

Instantly finds the right tab across 90+ open tabs. No page fetching — results appear in milliseconds.

# Deep — fetches and indexes full page content
chromectx search 'max connections pool timeout' --deep

You read something 20 tabs ago about connection pool limits causing timeouts in production — but which tab was it? The title just says "Configuration" or "Advanced Settings." --deep fetches every open page's content and searches the actual text, so you find it without retracing your steps.

And even better: make your open browser tabs RAG context for Claude, Cursor, and other AI tools via the Model Context Protocol.

Install

npx chromectx install

This one command:

  1. Checks your environment (macOS, Chrome, automation permissions)
  2. Installs chromectx globally
  3. Offers to configure the MCP server for your AI tools (Claude Desktop, Cursor, VS Code, etc.)

Manual setup

If you prefer to set things up yourself:

npm i -g chromectx          # install the CLI globally
chromectx setup             # configure MCP for your AI tools

Or add the MCP server config directly:

{
  "mcpServers": {
    "chromectx": {
      "command": "npx",
      "args": ["-y", "chromectx@latest", "mcp"]
    }
  }
}

Requirements

  • macOS (uses AppleScript/JXA to communicate with Chrome)
  • Google Chrome
  • Node.js >= 18
  • Automation permission: your terminal must be allowed to control Chrome (System Settings > Privacy & Security > Automation)

Commands

| Command | Description | | -------------------------- | ------------------------------------------------------------- | | chromectx install | One-time guided setup (env check, global install, MCP config) | | chromectx setup | Configure MCP server for AI tools | | chromectx doctor | Check runtime environment and report readiness | | chromectx list | List open Chrome windows and tabs, or saved sessions | | chromectx search <query> | Search tab titles and URLs; --deep searches page content | | chromectx save | Save a Chrome window as a session file | | chromectx restore | Restore a saved session to Chrome | | chromectx rag <query> | RAG search across open tabs (JSON output for agents/scripts) | | chromectx mcp | Start the MCP server over stdin/stdout |

Global flags

-h, --help     Show help
--version      Print version
--json         Structured JSON output (where supported)
-q, --quiet    Reduce output
-v, --verbose  Increase diagnostic output

MCP tools

When running as an MCP server, chromectx exposes:

  • **rag_chrome_search** -- Search the content of all open Chrome tabs using BM25 ranking. Fetches and indexes every open tab, then runs a keyword search. Supports chunk-level or full-page results.
  • **doctor** -- Inspect the local macOS runtime and report whether chromectx is ready to run.

Updating

The MCP server auto-updates: each restart fetches the latest version via npx.

For the global CLI, re-run:

npx chromectx install

chromectx will also notify you in the terminal when a new version is available.

License

MIT License

Copyright 2025-2026 Anubhav Saha