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

tiktok-scraper-mcp

v1.0.2

Published

MCP server that scrapes all TikTok comments and replies from any video. Runs locally via Puppeteer — no data leaves your machine.

Readme

TikTok Comment Scraper MCP Server

An MCP (Model Context Protocol) server that scrapes all comments and replies from any TikTok video. Works with Claude Desktop, Claude Code, and any MCP-compatible AI assistant.

Runs entirely on your local machine via Puppeteer. No data is sent to external servers (except for subscription verification).

Features

  • Full comment extraction — scrapes every comment including nested replies
  • Structured JSON output — usernames, text, likes, timestamps, reply threads
  • Automatic scrolling — loads all comments by scrolling the comment container
  • Reply expansion — clicks "View replies" and "View more" buttons automatically
  • Local execution — Puppeteer runs on your machine, using your own IP and session
  • Privacy-first — scraped data never leaves your device

Tools

| Tool | Description | |------|-------------| | scrape_tiktok_comments | Scrape all comments and replies from a TikTok video URL | | set_email | Set your subscription email (3 free scrapes, then PRO required) | | subscription_status | Check your subscription status and remaining free scrapes |

Installation

Claude Desktop

  1. Install the package:
npm install -g tiktok-scraper-mcp
  1. Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on Mac):
{
  "mcpServers": {
    "tiktok-scraper": {
      "command": "tiktok-scraper-mcp"
    }
  }
}
  1. Restart Claude Desktop.

Claude Code

claude mcp add tiktok-scraper -- npx tiktok-scraper-mcp

Manual

npx tiktok-scraper-mcp

Usage

Once installed, you can ask your AI assistant:

"Scrape all comments from this TikTok video: https://www.tiktok.com/@username/video/1234567890"

The server will:

  1. Launch a headless Chrome browser
  2. Navigate to the video
  3. Scroll to load all comments
  4. Expand all reply threads
  5. Extract structured data
  6. Return JSON with all comments and replies

Example output

{
  "videoId": "1234567890",
  "url": "https://www.tiktok.com/@username/video/1234567890",
  "commentCount": 47,
  "replyCount": 123,
  "comments": [
    {
      "index": 1,
      "username": "user123",
      "text": "This is amazing!",
      "likes": "1.2K",
      "time": "3d ago",
      "replies": [
        {
          "index": 1,
          "username": "creator",
          "text": "Thank you!",
          "likes": "89",
          "time": "2d ago"
        }
      ]
    }
  ]
}

Pricing

  • 3 free scrapes included — no credit card required
  • PRO: $9.67/mo — unlimited scraping, cancel anytime
  • Subscribe at: https://buy.stripe.com/4gM00l1OC52Tc7V7YN6EU00

Configuration

Config is stored at ~/.tiktok-scraper-mcp/config.json. Set your email with the set_email tool or by editing the file directly.

Requirements

  • Node.js 22+
  • Chrome/Chromium (installed automatically by Puppeteer)

Privacy

  • Scraping runs locally via Puppeteer — your data never touches our servers
  • The only network call is a subscription check (emailsubscribed: true/false)
  • No analytics, no tracking, no data collection
  • Full privacy policy: https://us-central1-benetti-417611.cloudfunctions.net/privacy-policy?product=tiktok-scraper

Support

  • Email: [email protected]
  • Issues: https://github.com/benetti-corporation/tiktok-scraper-mcp/issues

Built by Benetti Corporation.

If this tool saves you time, consider buying us a beer: PayPal