tiktok-scraper-mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,130 @@
1
+ # TikTok Comment Scraper MCP Server
2
+
3
+ An [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) server that scrapes all comments and replies from any TikTok video. Works with Claude Desktop, Claude Code, and any MCP-compatible AI assistant.
4
+
5
+ Runs entirely on your local machine via Puppeteer. No data is sent to external servers (except for subscription verification).
6
+
7
+ ## Features
8
+
9
+ - **Full comment extraction** — scrapes every comment including nested replies
10
+ - **Structured JSON output** — usernames, text, likes, timestamps, reply threads
11
+ - **Automatic scrolling** — loads all comments by scrolling the comment container
12
+ - **Reply expansion** — clicks "View replies" and "View more" buttons automatically
13
+ - **Local execution** — Puppeteer runs on your machine, using your own IP and session
14
+ - **Privacy-first** — scraped data never leaves your device
15
+
16
+ ## Tools
17
+
18
+ | Tool | Description |
19
+ |------|-------------|
20
+ | `scrape_tiktok_comments` | Scrape all comments and replies from a TikTok video URL |
21
+ | `set_email` | Set your subscription email (3 free scrapes, then PRO required) |
22
+ | `subscription_status` | Check your subscription status and remaining free scrapes |
23
+
24
+ ## Installation
25
+
26
+ ### Claude Desktop
27
+
28
+ 1. Install the package:
29
+ ```bash
30
+ npm install -g tiktok-scraper-mcp
31
+ ```
32
+
33
+ 2. Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json` on Mac):
34
+ ```json
35
+ {
36
+ "mcpServers": {
37
+ "tiktok-scraper": {
38
+ "command": "tiktok-scraper-mcp"
39
+ }
40
+ }
41
+ }
42
+ ```
43
+
44
+ 3. Restart Claude Desktop.
45
+
46
+ ### Claude Code
47
+
48
+ ```bash
49
+ claude mcp add tiktok-scraper -- npx tiktok-scraper-mcp
50
+ ```
51
+
52
+ ### Manual
53
+
54
+ ```bash
55
+ npx tiktok-scraper-mcp
56
+ ```
57
+
58
+ ## Usage
59
+
60
+ Once installed, you can ask your AI assistant:
61
+
62
+ > "Scrape all comments from this TikTok video: https://www.tiktok.com/@username/video/1234567890"
63
+
64
+ The server will:
65
+ 1. Launch a headless Chrome browser
66
+ 2. Navigate to the video
67
+ 3. Scroll to load all comments
68
+ 4. Expand all reply threads
69
+ 5. Extract structured data
70
+ 6. Return JSON with all comments and replies
71
+
72
+ ### Example output
73
+
74
+ ```json
75
+ {
76
+ "videoId": "1234567890",
77
+ "url": "https://www.tiktok.com/@username/video/1234567890",
78
+ "commentCount": 47,
79
+ "replyCount": 123,
80
+ "comments": [
81
+ {
82
+ "index": 1,
83
+ "username": "user123",
84
+ "text": "This is amazing!",
85
+ "likes": "1.2K",
86
+ "time": "3d ago",
87
+ "replies": [
88
+ {
89
+ "index": 1,
90
+ "username": "creator",
91
+ "text": "Thank you!",
92
+ "likes": "89",
93
+ "time": "2d ago"
94
+ }
95
+ ]
96
+ }
97
+ ]
98
+ }
99
+ ```
100
+
101
+ ## Pricing
102
+
103
+ - **3 free scrapes** included — no credit card required
104
+ - **PRO: $9.67/mo** — unlimited scraping, cancel anytime
105
+ - Subscribe at: https://buy.stripe.com/4gM00l1OC52Tc7V7YN6EU00
106
+
107
+ ## Configuration
108
+
109
+ Config is stored at `~/.tiktok-scraper-mcp/config.json`. Set your email with the `set_email` tool or by editing the file directly.
110
+
111
+ ## Requirements
112
+
113
+ - Node.js 22+
114
+ - Chrome/Chromium (installed automatically by Puppeteer)
115
+
116
+ ## Privacy
117
+
118
+ - Scraping runs locally via Puppeteer — your data never touches our servers
119
+ - The only network call is a subscription check (`email` → `subscribed: true/false`)
120
+ - No analytics, no tracking, no data collection
121
+ - Full privacy policy: https://us-central1-benetti-417611.cloudfunctions.net/privacy-policy?product=tiktok-scraper
122
+
123
+ ## Support
124
+
125
+ - Email: benettimedia@gmail.com
126
+ - Issues: https://github.com/benetti-corporation/tiktok-scraper-mcp/issues
127
+
128
+ Built by [Benetti Corporation](https://github.com/benetti-corporation).
129
+
130
+ If this tool saves you time, consider buying us a beer: [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WXQKYYKPHWXHS)
@@ -0,0 +1 @@
1
+ export {};