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

scraper-builder-mcp

v1.1.2

Published

MCP server for building and running web scrapers with Playwright

Readme

Scraper Builder MCP

Build, save, and run web scrapers with AI assistance. An MCP server that lets AI agents explore websites and generate reusable TypeScript scrapers.

Why This MCP?

Other browser MCPs help AI extract data once. This one saves reusable TypeScript scrapers you can run anytime — in scripts, cron jobs, or pipelines.

Usage Examples

Creating a Scraper

Just describe what you want and provide a JSON schema:

"Use scraper-builder-mcp to create a scraper for https://example.com/jobs
Extract data matching this schema:

{ "title": "string", "company": "string", "location": "string", "url": "string" }

Save it as example_jobs and run it to verify it works"

The AI will:

  1. Navigate to the page and take a screenshot
  2. Explore the DOM to find the right selectors
  3. Write a TypeScript scraper that outputs your schema
  4. Save it to your project folder
  5. CRITICAL: Run it immediately to verify it works (and fix if needed)

Tips:

  • If your IDE has built-in browser tools, say "use scraper-builder-mcp" explicitly
  • Scrapers save to scrapers/ and data to data/ in the current project's root directory
  • Always ask the AI to run the scraper after saving to catch issues early

Running a Saved Scraper

"Run the example_jobs scraper"

Or:

"List my scrapers"

More Examples

| You say... | AI does... | |------------|------------| | "Scrape the top 10 products from this page" | Explores, extracts, returns data | | "Save this as a reusable scraper called products" | Saves to scrapers/products.ts | | "Run the products scraper" | Runs scraper, saves data to data/products/, returns results | | "The website changed, update the products scraper" | Edits the saved scraper |

Quick Start

Install via npx (Recommended)

Add to your MCP config (Claude Desktop, Cursor, etc.):

{
  "mcpServers": {
    "scraper-builder-mcp": {
      "command": "npx",
      "args": ["-y", "scraper-builder-mcp"]
    }
  }
}

Auto-Approve Permissions (Recommended)

To avoid confirming every tool execution (like taking screenshots or scrolling), follow these steps for your client:

| Client | How to Auto-Approve | | :--- | :--- | | Cursor | Add scraper-builder-mcp:* to the MCP Allowlist in Settings. | | Claude Desktop | Click "Always approve" when the first tool permission prompt appears. | | Windsurf / Others | Approve when prompted; most clients will remember your choice for the session or permanently. |

If you prefer not to use a wildcard, add these individually:

scraper-builder-mcp:navigate
scraper-builder-mcp:screenshot
scraper-builder-mcp:get_page_content
scraper-builder-mcp:find_elements
scraper-builder-mcp:extract_text
scraper-builder-mcp:click
scraper-builder-mcp:type
scraper-builder-mcp:scroll
scraper-builder-mcp:wait_for
scraper-builder-mcp:execute_javascript
scraper-builder-mcp:download_resource
scraper-builder-mcp:save_scraper
scraper-builder-mcp:list_scrapers
scraper-builder-mcp:run_scraper

To show the browser window while scraping, add:

{
  "mcpServers": {
    "scraper-builder-mcp": {
      "command": "npx",
      "args": ["-y", "scraper-builder-mcp"],
      "env": { "HEADED": "true" }
    }
  }
}

Chromium will be installed automatically on first use.

Install from Source

git clone https://github.com/emilneander/scraper-builder-mcp.git
cd scraper-builder-mcp
npm install
npm run build

Then point your MCP config to dist/index.js.

Tools

Scraper Workflow

| Tool | Description | |------|-------------| | save_scraper | Save a reusable TypeScript scraper script | | list_scrapers | List all saved scrapers | | run_scraper | Execute a saved scraper and get fresh data |

Browser Automation

| Tool | Description | |------|-------------| | navigate | Go to a URL for web scraping | | screenshot | Capture page for visual analysis | | get_page_content | Get HTML or simplified DOM for finding selectors | | find_elements | Test CSS selectors and verify matches | | extract_text | Preview data extraction results | | click | Click on an element | | type | Type into input fields | | scroll | Scroll the page (handles lazy loading) | | wait_for | Wait for elements or network idle | | execute_javascript | Run JS in browser context | | download_resource | Download files with browser cookies/auth |

License

MIT