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

@gnkz/websight-mcp-server

v0.1.0-alpha.1

Published

Local MCP bridge server for the Websight Chrome extension.

Downloads

42

Readme

@gnkz/websight-mcp-server

Local MCP stdio server for pairing Websight with a Chrome extension, exposing browser tools to MCP clients over a localhost bridge.

Overview

This package is the server half of Websight. It starts an MCP server over stdio, serves a localhost pairing page, manages browser pairing sessions, and forwards browser tool requests to the Websight extension over a websocket bridge.

If your MCP client can launch a local process, you can use this package to add browser-aware tools like page snapshots, selector queries, clicks, scrolls, and input filling.

Quick Start

  1. Run the published package.
npx -y @gnkz/websight-mcp-server
  1. Load the Websight extension in Chrome or Brave.

  2. Create a pairing session from your MCP client.

  3. Open the returned http://127.0.0.1:44646/connect/<pairingId> URL.

  4. Click Connect and approve the request in the extension window.

Once the pairing reaches connected, browser tools are ready to use.

Installation

Published package

npx -y @gnkz/websight-mcp-server

Local development

From the monorepo root:

bun run dev:server

Or run the source entry directly:

bun apps/mcp-server/src/index.ts

Usage

This package is meant to be launched by an MCP client as a local stdio server.

Example OpenCode entry:

{
  "websight-local": {
    "type": "local",
    "command": [
      "bun",
      "/absolute/path/to/websight/apps/mcp-server/src/index.ts"
    ],
    "enabled": true,
    "timeout": 300000
  }
}

The default local endpoints are:

  • health: http://127.0.0.1:44646/health
  • pairing page: http://127.0.0.1:44646/connect/<pairingId>
  • bridge websocket: ws://127.0.0.1:44646/bridge
  • MCP metadata endpoint: http://127.0.0.1:44646/mcp

Pairing Flow

The intended agent flow is:

  1. Call create_pairing_session
  2. Open the returned localhost URL in the browser with the extension installed
  3. Click Connect on the page
  4. Approve the connection in the extension window
  5. Poll get_pairing_status until it becomes connected
  6. Start using browser tools like get_active_tab and get_page_snapshot

Available Tools

Pairing

  • create_pairing_session
  • get_pairing_status

Browser access

  • get_active_tab
  • get_page_snapshot
  • query_selector_all
  • fill_input
  • click_element
  • scroll_to
  • wait_for_element

Configuration

| Variable | Description | Default | |----------|-------------|---------| | WEBSIGHT_BRIDGE_PORT | Localhost port for the HTTP bridge and websocket endpoint | 44646 | | WEBSIGHT_HOST | Bind host for the local server | 127.0.0.1 | | WEBSIGHT_MCP_ENDPOINT | MCP metadata path | /mcp |

Troubleshooting

The server starts but browser tools say the bridge is unavailable

Check http://127.0.0.1:44646/health. If bridgeConnected is false, reload the extension and complete a fresh pairing flow.

Pairing is approved but the bridge does not connect

Reload the extension build and create a new pairing session. Pairing links are one-time and short-lived.

Page snapshot fails on a normal site

Make sure the extension was rebuilt and reloaded after any manifest changes. The active tab must also be a normal http or https page.

Notes

  • This package provides the local MCP server only. You still need the companion Websight extension loaded in the browser.
  • The current extension setup uses broad host permissions for local testing.