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

@glance-mcp/server

v1.3.0

Published

MCP server for Glance — capture what a web page looks like and does

Readme

@glance-mcp/server

MCP server for Glance — web perception for AI agents. Capture what a web page looks like and does, or render HTML/CSS to an image or PDF.

Zero dependencies. Node 18+ builtins only. No build step.

Setup

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "glance": {
      "command": "node",
      "args": ["/path/to/node_modules/@glance-mcp/server/src/index.mjs"],
      "env": { "GLANCE_API_KEY": "gt_..." }
    }
  }
}

Cursor

Add to Cursor's MCP settings (Settings > MCP Servers):

{
  "glance": {
    "command": "node",
    "args": ["/path/to/node_modules/@glance-mcp/server/src/index.mjs"],
    "env": { "GLANCE_API_KEY": "gt_..." }
  }
}

Claude Code

claude mcp add glance node /path/to/node_modules/@glance-mcp/server/src/index.mjs

Set GLANCE_API_KEY in your environment.

npx (any MCP host)

{
  "command": "npx",
  "args": ["-y", "@glance-mcp/server"],
  "env": { "GLANCE_API_KEY": "gt_..." }
}

Getting an API key

No key? The signup tool provisions one from inside the MCP session — no dashboard, no credit card. 100 free calls/month.

Or, from a terminal:

curl -s https://api.glance.tools/v1 -d '{
  "jsonrpc": "2.0", "method": "signup",
  "params": {"email": "[email protected]"}, "id": 1
}'

Tools

capture

Capture a web page. Submits the job, polls for completion, and returns screenshots, network traffic, console output, DOM, text, and metadata in a single call.

| Param | Type | Description | |---|---|---| | url | string | Absolute URL to capture. Required. | | waitMs | integer | Max ms to wait for network idle. Default: 2000. | | settleMs | integer | Extra ms to wait after idle. Default: 0. | | dom | boolean | Include rendered DOM. Default: true. | | text | boolean | Include visible text. Default: true. | | meta | boolean | Extract JSON-LD, Open Graph, title. Default: true. | | only | string[] | Restrict artifacts: screenshots, network, console, dom, text, meta. | | burst | integer | Capture N frames for transition analysis. | | click | string | CSS selector to click at burst midpoint. | | interactions | object[] | Scripted interaction sequence (see below). |

render

Render HTML/CSS to a PNG, JPEG, or PDF. Pass markup and get back a pixel-perfect image or document.

| Param | Type | Description | |---|---|---| | html | string | HTML content to render. Required. | | css | string | Additional CSS to inject into the page. | | format | string | Output format: png, jpeg, or pdf. Default: png. | | width | integer | Viewport width in pixels. Default: 1280. | | height | integer | Viewport height in pixels. If omitted, captures full content height. | | scale | number | Device scale factor (e.g., 2 for retina). Default: 2. |

usage

Check remaining API quota for the current billing period.

feedback

Send feedback to the Glance team. Supports threading: include a thread_id to continue an existing conversation, or omit it to start a new one. Returns a thread_id for follow-ups and any operator replies.

| Param | Type | Description | |---|---|---| | message | string | Feedback message. Max 2000 characters. Required. | | thread_id | string | Thread ID from a previous feedback call. Omit to start a new thread. |

signup

Provision an API key from an email address. The key is active for the current session; the response includes ready-to-run commands to persist it in your MCP config.

Interactions

The interactions param on capture accepts an array of sequential actions:

[
  {"type": "type", "selector": "#search", "value": "query"},
  {"type": "click", "selector": "#submit"},
  {"type": "wait", "ms": 2000},
  {"type": "screenshot", "name": "results"}
]

| Action | Fields | Description | |---|---|---| | wait | ms | Pause (default 1000ms). | | click | selector | Click an element. | | type | selector, value | Set an input's value. | | keypress | key | Dispatch a key event. | | eval | script | Run JavaScript in the page. | | screenshot | name | Capture the viewport at this point. |

Environment variables

| Variable | Description | |---|---| | GLANCE_API_KEY | API key for authenticated methods. | | GLANCE_API_URL | Override the API endpoint (default: https://api.glance.tools/v1). |

How it works

The server speaks MCP (Model Context Protocol) over stdio — JSON-RPC 2.0 with newline framing. It's a thin client of the Glance hosted API. No engine, no Chrome, no local browser needed.

License

MIT