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

@rekl0w/mcp-browser-console

v0.1.1

Published

MCP server that exposes browser console, error, and network events streamed from the MCP Browser Console Chrome Extension.

Readme

@rekl0w/mcp-browser-console

MCP Browser Console is a local-first debugging bridge between Chrome and MCP-compatible clients.

This npm package contains the MCP server. It receives browser console, error, fetch, and XMLHttpRequest events from the companion Chrome Extension over ws://localhost:3712, keeps the latest 500 events in memory, and exposes them as MCP tools over stdio.

Full monorepo, Chrome Extension source, screenshots, privacy policy, and development docs are available at github.com/Rekl0w/mcp-browser-console.

What this package provides

  • MCP stdio server powered by @modelcontextprotocol/sdk
  • Local WebSocket listener on ws://localhost:3712
  • In-memory circular buffer for the latest 500 browser events
  • MCP tools for querying logs, network requests, errors, and runtime status
  • No remote telemetry and no disk persistence for captured browser events

Companion Chrome Extension

This server is designed to be used with the MCP Browser Console Chrome Extension from the same repository:

https://github.com/Rekl0w/mcp-browser-console

The extension captures browser events and forwards them to this local MCP server. The server then makes those events available to MCP clients.

MCP client configuration

Use the package directly with npx:

{
  "mcpServers": {
    "browser-console": {
      "command": "npx",
      "args": ["@rekl0w/mcp-browser-console"]
    }
  }
}

The server writes MCP protocol messages to stdio and opens a local WebSocket listener on port 3712.

Available MCP tools

get_logs

Returns buffered console and runtime error events.

Parameters:

  • level?: string[] — filter by log, warn, error, info, debug, or trace
  • url?: string — case-insensitive substring matched against url and pageUrl
  • since?: number | string — timestamp in milliseconds or ISO date string
  • limit?: number — maximum result count, clamped to 1..500

get_network_requests

Returns buffered fetch and XMLHttpRequest events.

Parameters:

  • url?: string — case-insensitive substring matched against request URL and pageUrl
  • status?: number | number[] — HTTP status code filter; failed requests use status 0
  • since?: number | string — timestamp in milliseconds or ISO date string
  • limit?: number — maximum result count, clamped to 1..500

clear_buffer

Clears all buffered browser events.

get_status

Returns WebSocket listener status, buffer size, connected WebSocket client count, connected tab count, connected tab IDs, and uptime.

Local-first privacy model

Captured browser events are sent only to the local WebSocket endpoint used by this package. The server keeps data in memory and does not write captured events to disk by default.

Because browser logs and network responses can contain sensitive information, treat captured data as local development/debugging data.

Links