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.
@@ -0,0 +1,22 @@
1
+ export interface Comment {
2
+ index: number;
3
+ username: string | null;
4
+ text: string | null;
5
+ likes: string | null;
6
+ time: string | null;
7
+ replies: Comment[];
8
+ }
9
+ export interface ScrapeResult {
10
+ videoId: string | null;
11
+ url: string;
12
+ commentCount: number;
13
+ replyCount: number;
14
+ comments: Comment[];
15
+ }
16
+ export interface ScrapeOptions {
17
+ url: string;
18
+ maxScrollAttempts?: number;
19
+ maxReplyRounds?: number;
20
+ headless?: boolean;
21
+ }
22
+ export declare function scrape(options: ScrapeOptions): Promise<ScrapeResult>;
@@ -0,0 +1,15 @@
1
+ export declare function checkSubscription(email: string): Promise<{
2
+ subscribed: boolean;
3
+ deviceLimitReached?: boolean;
4
+ maxDevices?: number;
5
+ }>;
6
+ export declare function setEmail(email: string): Promise<string>;
7
+ export declare function getStatus(): Promise<{
8
+ email: string;
9
+ subscribed: boolean;
10
+ uses: number;
11
+ usesLeft: number;
12
+ canScrape: boolean;
13
+ }>;
14
+ export declare function incrementUses(): void;
15
+ export declare function isConfigured(): boolean;
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "tiktok-scraper-mcp",
3
+ "author": "Benetti Corporation",
4
+ "license": "UNLICENSED",
5
+ "version": "1.0.0",
6
+ "description": "MCP server that scrapes all TikTok comments and replies from any video. Runs locally via Puppeteer — no data leaves your machine.",
7
+ "homepage": "https://github.com/benetti-corporation/tiktok-scraper-mcp",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/benetti-corporation/tiktok-scraper-mcp.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/benetti-corporation/tiktok-scraper-mcp/issues"
14
+ },
15
+ "keywords": [
16
+ "mcp",
17
+ "mcp-server",
18
+ "tiktok",
19
+ "scraper",
20
+ "comments",
21
+ "replies",
22
+ "puppeteer",
23
+ "ai",
24
+ "claude",
25
+ "model-context-protocol"
26
+ ],
27
+ "type": "module",
28
+ "bin": {
29
+ "tiktok-scraper-mcp": "./build/index.js"
30
+ },
31
+ "files": [
32
+ "build/",
33
+ "README.md",
34
+ "LICENSE"
35
+ ],
36
+ "scripts": {
37
+ "build": "tsc && node esbuild.config.js",
38
+ "prepublishOnly": "npm run build",
39
+ "start": "node build/index.js",
40
+ "dev": "tsc --watch"
41
+ },
42
+ "dependencies": {
43
+ "@modelcontextprotocol/sdk": "^1.12.1",
44
+ "puppeteer": "^24.0.0",
45
+ "zod": "^3.24.0"
46
+ },
47
+ "devDependencies": {
48
+ "@types/node": "^22.0.0",
49
+ "esbuild": "^0.28.0",
50
+ "typescript": "^5.7.0"
51
+ },
52
+ "engines": {
53
+ "node": ">=22"
54
+ }
55
+ }