mcp-scraper 0.3.25 → 0.3.26
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/dist/bin/api-server.cjs +68 -38
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +1 -1
- package/dist/bin/mcp-scraper-cli.cjs +1 -1
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +1 -1
- package/dist/bin/mcp-scraper-install.cjs +1 -1
- package/dist/bin/mcp-scraper-install.cjs.map +1 -1
- package/dist/bin/mcp-scraper-install.js +1 -1
- package/dist/bin/mcp-stdio-server.cjs +66 -26
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/{chunk-FE2WC4JR.js → chunk-2GHI2D6Q.js} +67 -27
- package/dist/{chunk-FE2WC4JR.js.map → chunk-2GHI2D6Q.js.map} +1 -1
- package/dist/chunk-MS2UZ6HR.js +7 -0
- package/dist/chunk-MS2UZ6HR.js.map +1 -0
- package/dist/{server-RRCKVBHG.js → server-HIGHKTEV.js} +3 -13
- package/dist/server-HIGHKTEV.js.map +1 -0
- package/docs/spec-server-instructions.md +94 -0
- package/package.json +1 -1
- package/dist/chunk-WPHAMNT7.js +0 -7
- package/dist/chunk-WPHAMNT7.js.map +0 -1
- package/dist/server-RRCKVBHG.js.map +0 -1
package/dist/bin/api-server.cjs
CHANGED
|
@@ -10872,16 +10872,6 @@ var init_catalog_seed = __esm({
|
|
|
10872
10872
|
isSpecial: true,
|
|
10873
10873
|
tagline: "Generate a rank-tracker blueprint",
|
|
10874
10874
|
params: [{ key: "domain", label: "Domain", type: "string", required: true }]
|
|
10875
|
-
},
|
|
10876
|
-
{
|
|
10877
|
-
key: "deep_research_workflow",
|
|
10878
|
-
label: "Deep Research",
|
|
10879
|
-
kind: "simple",
|
|
10880
|
-
endpoint: "/workflows/run",
|
|
10881
|
-
mcpName: "workflow_run",
|
|
10882
|
-
isSpecial: true,
|
|
10883
|
-
tagline: "Multi-source, fact-checked research report",
|
|
10884
|
-
params: [{ key: "question", label: "Question", type: "string", required: true }]
|
|
10885
10875
|
}
|
|
10886
10876
|
]
|
|
10887
10877
|
}
|
|
@@ -24879,7 +24869,7 @@ var PACKAGE_VERSION;
|
|
|
24879
24869
|
var init_version = __esm({
|
|
24880
24870
|
"src/version.ts"() {
|
|
24881
24871
|
"use strict";
|
|
24882
|
-
PACKAGE_VERSION = "0.3.
|
|
24872
|
+
PACKAGE_VERSION = "0.3.26";
|
|
24883
24873
|
}
|
|
24884
24874
|
});
|
|
24885
24875
|
|
|
@@ -24889,33 +24879,73 @@ var init_server_instructions = __esm({
|
|
|
24889
24879
|
"src/mcp/server-instructions.ts"() {
|
|
24890
24880
|
"use strict";
|
|
24891
24881
|
SERVER_INSTRUCTIONS = `
|
|
24892
|
-
|
|
24893
|
-
|
|
24894
|
-
|
|
24895
|
-
|
|
24896
|
-
|
|
24897
|
-
|
|
24898
|
-
|
|
24899
|
-
-
|
|
24900
|
-
-
|
|
24901
|
-
|
|
24902
|
-
|
|
24903
|
-
|
|
24904
|
-
|
|
24905
|
-
-
|
|
24906
|
-
|
|
24907
|
-
-
|
|
24908
|
-
|
|
24909
|
-
|
|
24910
|
-
|
|
24911
|
-
|
|
24912
|
-
|
|
24913
|
-
-
|
|
24914
|
-
|
|
24915
|
-
|
|
24916
|
-
|
|
24917
|
-
-
|
|
24918
|
-
|
|
24882
|
+
# MCP Scraper
|
|
24883
|
+
|
|
24884
|
+
Scrapes and analyzes web, search, maps, social, and site data. **Pick a tool by NAME from the map
|
|
24885
|
+
below, then load its schema before calling.** Where a tool needs a value another tool produces, the
|
|
24886
|
+
seam is noted so you can chain them.
|
|
24887
|
+
|
|
24888
|
+
## Search & research
|
|
24889
|
+
- Organic Google results, rankings, local pack -> **search_serp**.
|
|
24890
|
+
- Full SERP plus People-Also-Ask and AI-Overview detail -> **harvest_paa**.
|
|
24891
|
+
- \`search_serp\` returns \`organicResults[].url\` (often including reddit.com threads) \u2014 feed those into
|
|
24892
|
+
\`extract_url\` or \`reddit_thread\`.
|
|
24893
|
+
|
|
24894
|
+
## Pages & sites
|
|
24895
|
+
- One page -> **extract_url** (takes a url).
|
|
24896
|
+
- Whole site, crawl + SEO report -> **extract_site** (takes a url).
|
|
24897
|
+
- Just the URL list/inventory -> **map_site_urls** (takes a url).
|
|
24898
|
+
- \`map_site_urls\` returns urls you can feed straight into \`extract_url\`.
|
|
24899
|
+
|
|
24900
|
+
## Google Maps
|
|
24901
|
+
- Find multiple places/competitors/prospects -> **maps_search** (returns \`results[]\` with name,
|
|
24902
|
+
placeUrl, cid).
|
|
24903
|
+
- One business deep-dive + reviews -> **maps_place_intel** (takes businessName + location, NOT an id \u2014
|
|
24904
|
+
call it directly with a name from a \`maps_search\` result or from the user).
|
|
24905
|
+
|
|
24906
|
+
## YouTube
|
|
24907
|
+
- Find or list videos -> **youtube_harvest** (returns \`videos[].videoId\`).
|
|
24908
|
+
- Transcribe one video -> **youtube_transcribe** (takes a videoId from \`youtube_harvest\`, or a url).
|
|
24909
|
+
|
|
24910
|
+
## Facebook
|
|
24911
|
+
- Find advertisers -> **facebook_ad_search** (returns \`advertisers[]\` with pageId, libraryId).
|
|
24912
|
+
- One advertiser's ads -> **facebook_page_intel** (takes pageId, libraryId, or query; returns
|
|
24913
|
+
\`ads[].videoUrl\`).
|
|
24914
|
+
- Transcribe an ad video -> **facebook_ad_transcribe** (takes a videoUrl from \`facebook_page_intel\`).
|
|
24915
|
+
- Transcribe an organic reel/video/post -> **facebook_video_transcribe** (takes the Facebook url directly).
|
|
24916
|
+
|
|
24917
|
+
## Instagram
|
|
24918
|
+
- Profile inventory -> **instagram_profile_content** (returns post/reel/tv urls).
|
|
24919
|
+
- One post or reel -> **instagram_media_download** (takes a url from \`instagram_profile_content\`, or a
|
|
24920
|
+
url the user gives).
|
|
24921
|
+
|
|
24922
|
+
## Reddit
|
|
24923
|
+
- A reddit.com thread/post URL -> **reddit_thread**. Returns the post plus its comment tree and handles
|
|
24924
|
+
Reddit's bot wall itself (no login needed). Find threads first with \`search_serp\`.
|
|
24925
|
+
|
|
24926
|
+
## Other sites & logins (browser agent)
|
|
24927
|
+
For an arbitrary site or a logged-in dashboard with no dedicated tool, use the browser_* agent. **First
|
|
24928
|
+
decide whether the site needs a login:**
|
|
24929
|
+
- **Needs a login** (ChatGPT, Claude, any account) -> save it first: **browser_profile_connect** returns
|
|
24930
|
+
an mcpscraper.dev sign-in link for the user; one profile holds MANY logins (call it again with the same
|
|
24931
|
+
profile + a new domain to add accounts). Poll **browser_profile_list** until AUTHENTICATED, then
|
|
24932
|
+
**browser_open** with that profile.
|
|
24933
|
+
- **No login** -> **browser_open**, then navigate/read.
|
|
24934
|
+
|
|
24935
|
+
## Workflows
|
|
24936
|
+
Multi-step orchestrations \u2014 prefer these over hand-chaining primitives when the whole job is one of these:
|
|
24937
|
+
- Build a local business directory for a niche across a state/region -> **directory_workflow**.
|
|
24938
|
+
- Stand up a rank-tracking blueprint (database + cron + ingestion plan) -> **rank_tracker_workflow**.
|
|
24939
|
+
- Find which sources an AI answer cites for a query (AEO) -> **query_fanout_workflow** (open a browser
|
|
24940
|
+
session on chatgpt.com or claude.ai FIRST, then run it against that session).
|
|
24941
|
+
|
|
24942
|
+
## Notes
|
|
24943
|
+
- Bulk / full-site crawls: call \`extract_site\` with \`rotateProxies:true\` for blocked or rate-limited
|
|
24944
|
+
sites. It returns a saved folder/artifact plus a summary, not the full content inline.
|
|
24945
|
+
- Browser sessions and media transcription cost credits and take longer \u2014 prefer the cheapest tool that
|
|
24946
|
+
answers the question (plain search/extract before browser agents).
|
|
24947
|
+
- Large results are saved to disk or an artifact and returned as a summary plus a path; read the path for
|
|
24948
|
+
full detail rather than expecting the whole payload inline.
|
|
24919
24949
|
`.trim();
|
|
24920
24950
|
}
|
|
24921
24951
|
});
|