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

@p2k0/agentlens-mcp

v3.0.0

Published

AgentLens MCP Server - Local bridge between browser extension and AI assistants

Readme

AgentLens MCP Server

Local Bridge for AI Visual Perception

[中文] | English

AgentLens MCP Server is a local bridge that connects your AI Assistant (Cursor, Claude Desktop, Windsurf, etc.) with the AgentLens Browser Extension. It enables your AI to "see" visual feedback, bug reports, and DOM elements marked in the browser.

Features

  • Visual Context: Retrieve annotations, comments, and bug reports associated with specific DOM elements.
  • Snapshots: Access visual snapshots (screenshots) of the reported issues.
  • Issue Management: Mark issues as resolved directly from your IDE/AI chat.
  • Smart Analysis: Auto-categorize feedback into Bugs, UI/UX issues, or Feature requests.

Method 1: Quick Start (Recommended)

If you have Node.js, you can run it directly using npx (requires package published to NPM):

{
	"mcpServers": {
		"agentlens": {
			"command": "npx",
			"args": ["-y", "@p2k0/agentlens-mcp"]
		}
	}
}

Method 2: Manual Installation (Zip/Offline)

  1. Download: Get mcp-release.zip from the GitHub Releases.
  2. Unzip: Extract to a local directory (e.g., ~/agentlens-mcp).
  3. Install Dependencies:
    cd ~/agentlens-mcp
    npm install --production
  4. Configure:
{
	"mcpServers": {
		"agentlens": {
			"command": "node",
			"args": ["/absolute/path/to/agentlens-mcp/dist/index.js"]
		}
	}
}

Available Tools

AgentLens MCP provides the following tools for AI to retrieve page context and manage annotations:

| Tool Name | Description | Parameters | | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | get_page_annotations | Retrieve all unresolved annotations for a URL. Returns structured JSON. | url: Page URL | | get_annotation_snapshot | Get the visual snapshot (base64 image) for a specific annotation. | url: Page URLannotationId: Annotation ID | | get_annotations_markdown | Get a token-efficient Markdown summary of annotations (optimized for LLM context). | url: Page URL | | analyze_annotations | Smart analysis to categorize issues (Bug/UI/UX/Feature) and sort by priority. | url: Page URL | | fix_page_issues | Core Diagnostic Tool: Generates a comprehensive report with visual context, CSS styles, and snapshots to guide AI fixes. | url: Page URL, autoMode: Enable auto analysis (default: true) | | resolve_annotation | Mark a specific annotation as resolved/fixed. | url: Page URL, annotationId: Annotation ID, resolution: Fix description (optional) | | resolve_all_annotations | Batch mark all unresolved annotations on a page as resolved. | url: Page URL, resolution: Batch fix description (optional) | | clear_annotations | Permanently delete all annotation records for a page (Use with caution). | url: Page URL |

Resources

  • agentlens://annotations/list: Returns a JSON list of all URLs that have stored annotations.
  • agentlens://server/status: Get Sidecar service runtime status (PID, Port, etc).
  • agentlens://store/raw: Get full raw annotations.json data.