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

@cadivus/mcp-server-visual-stack-browser

v0.1.2

Published

MCP server for visual browser navigation, OCR-based coordinate clicking, and JS stack trace debugging.

Readme

mcp-server-visual-stack-browser

A Model Context Protocol (MCP) server that gives LLMs and AI Agents the ability to navigate, interact with, and debug web applications visually and programmatically.

Built on top of Playwright and Tesseract OCR, this server bypasses the limitations of standard DOM-scraping by allowing agents to "see" the screen, click by exact (x,y) coordinates, and pull deep JavaScript execution context via stack traces.

It provides spatial text coordinates via OCR, allowing agents to interact with visual elements without relying on expensive and slow vision-model screenshot analysis.


🚀 Why this exists

Standard web-scraping and AI browser tools rely heavily on the DOM tree. But what happens when the DOM is empty, obfuscated, or when vision models are too expensive? mcp-server-visual-stack-browser is specifically designed for:

  • Cost-Efficient AI Browsing: Get exact coordinates for text elements via lightweight OCR, entirely bypassing the high token costs and latency of sending full screenshots to vision models.
  • Canvas & WebGL Apps: Games, maps, or complex visualizers where UI elements don't exist in the HTML.
  • Flutter for Web: Applications rendered entirely on a canvas.
  • Complex SPAs & Legacy UIs: Where standard CSS selectors fail or change dynamically.
  • Deep Debugging: Correlating visual UI errors with underlying JavaScript console logs and stack traces.

✨ Core Capabilities

  • 👁️ Visual Navigation (Zero-Vision Mode): Perform OCR to find text bounding boxes and click via exact coordinates. No CSS selectors or expensive vision models required.
  • 🐛 Deep Execution Tracing: Capture console logs, intercept errors, and pull full JavaScript stack traces directly from the browser runtime.
  • 🤖 Human-like Interaction: Scroll natively, simulate real keystrokes with human-like delays, and execute arbitrary JS in the page context.

🛠️ Available MCP Tools

This server exposes the following tools via the MCP ListTools / CallTool API:

Browser & Session Management

  • start_browser: Launches a Chrome or Firefox session (headed or headless) and returns a session ID. Begins real-time capture of console logs and page errors.
  • Maps: Navigates the browser to a URL. Supports waiting for specific load conditions (load, DOMContentLoaded, networkidle, commit).
  • get_current_url: Returns the current page URL and title for the active session.

Visual & OCR Interactivity

  • ocr_screenshot: Runs Tesseract OCR on the current viewport. Returns the text alongside exact (x, y) coordinates and bounding boxes for text blocks. This allows the model to locate and interact with UI elements purely through text data, avoiding the need for expensive screenshot analysis.
  • ocr_screenshot_search: Runs OCR to search for a specific "needle" string, returning exact matches with positional data ready for coordinate clicking.
  • take_screenshot: Captures a PNG screenshot of the current viewport, returned as a base64 image blob (for when full visual analysis is actually needed).
  • click_at_coordinates: Clicks a point in the viewport by (x, y). Automatically handles scaling if the LLM is working from a resized/downscaled screenshot.

Page Interaction

  • scroll: Scrolls the viewport up, down, left, or right by a percentage. Returns current scroll state and whether further scrolling is possible.
  • type_text: Simulates character-by-character typing into the currently focused element. Includes optional per-keystroke delays to emulate human behavior.
  • press_key: Sends specific key presses or combinations (e.g., Enter, Tab, Ctrl+V).

JavaScript & Debugging

  • execute_javascript: Runs arbitrary JavaScript in the current page context. Fully supports async code (await).
  • get_console_logs: Retrieves console log entries collected since the session started. Supports filtering by severity level (ALL, DEBUG, INFO, WARNING, SEVERE).
  • get_console_log_stacktrace: Retrieves the deep execution stack trace for a specific log entry ID (powered by Chrome CDP).

⚙️ Installation & Quick Start

Claude Desktop Configuration

To use this with Claude Desktop, add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "visual-stack-browser": {
      "command": "npx",
      "args": ["-y", "@cadivus/mcp-server-visual-stack-browser"]
    }
  }
}

🏷️ Keywords

mcp, model-context-protocol, playwright, browser-automation, ocr, canvas-testing, webgl-automation, javascript-debugging, stack-trace, llm-tools, ai-agent