mcpscraper-cli
v0.42.0
Published
Command-line interface for the unified mcpscraper.dev MCP and REST APIs
Readme
mcpscraper-cli
Command-line interface for the unified mcpscraper.dev MCP and REST APIs.
The CLI provides friendly shortcuts for common operations plus universal discovery and invocation for every one of the 376 unified MCP tools, including provider-neutral X-Ray surveys, attribution-impact reporting, and truthful evidence-status operations.
Install
npm install -g mcpscraper-cliAuth
export MCPSCRAPER_API_KEY=sk_live_your_keyor pass --api-key <key> on any command.
Commands
Every MCP tool
mcpscraper tools list
mcpscraper tools describe prepare-memory-write
mcpscraper tools call prepare-memory-write --args '{"title":"Example","content":"..."}' --json
mcpscraper tools call export_connected_service_data --args '{"connectionId":"conn_123","dataset":"emails","lastDays":7}' --json
mcpscraper tools call export_connected_service_data --args '{"connectionId":"meta_conn_123","dataset":"meta_ads_insights","lastDays":30,"delivery":"artifact"}' --json
mcpscraper tools call export_connected_service_data --args '{"connectionId":"gsc_conn_123","dataset":"search_console_performance","lastDays":28}' --json
mcpscraper tools call describe_service_connection_tool --args '{"connectionId":"conn_123","tool":"provider-tool-name"}' --json
mcpscraper tools call renew_connected_data_download --args '{"artifactId":"artifact_123"}' --json
mcpscraper tools call archive_read --args '{"url":"https://github.com/octocat/Hello-World/archive/refs/heads/master.zip"}' --json
mcpscraper tools call list_scheduled_runs --args '{"view":"inbox","limit":30}' --json
mcpscraper tools call lead_list_enrich --args '{"idempotencyKey":"roofing-dallas-001","source":{"kind":"rows","rows":[{"Business":"White Rock Roofing","City":"Dallas","Website":"https://roofwhiterock.com"}]},"columnMap":{"name":"Business","city":"City","websiteUrl":"Website"},"defaultEntityType":"business","emailSearchFallback":"serp_snippets","peopleDiscovery":"owners","peopleQueryTemplates":["{business} owner of company {city}","{business} founder {city}"],"outputFormats":["csv","xlsx"]}' --json
mcpscraper tools call gmail_search_messages --args '{"connectionId":"gmail_conn_123","query":"has:attachment newer_than:30d","limit":25}' --json
mcpscraper tools call gmail_prepare_selection --args '{"connectionId":"gmail_conn_123","purpose":"memory_import","source":{"kind":"query","query":"has:attachment newer_than:30d"}}' --json
mcpscraper tools call gmail_import_status --args '{"ingestId":"opaque_ingest_id"}' --jsontools list contains exactly 376 manifest-backed names. tools call accepts any one of them. Tools marked destructive require --yes.
Integration connections are included with an active Starter plan or higher and have no extra connection-operation debit in this release. Scheduled occurrences cost 75 Credits; agent-mode runs also add 1.5 times OpenRouter's actual reported cost. Inspect the live policy with mcpscraper tools call get-schedule-status --args '{}'.
Current Google search pricing is 60 Credits per SERP search and 400 Credits plus 10 Credits per returned question for PAA. One optional concurrency pack adds two browser slots for $5/month; quantity n adds 2n browser slots.
Use mcpscraper tools call harvest_paa_start --args '{"query":"...","pages":2,"idempotencyKey":"..."}' --json
to request a second organic-results page, then poll the returned jobId with
harvest_paa_status. One page is the default, and the second page never creates
a second PAA graph. Pagination can be null for older saved jobs.
When a tool returns inline MCP media, the CLI writes each block to a private local file and prints its path instead of dumping base64. Use --media-dir <path> to choose the destination; the default is ~/Downloads/mcp-scraper.
mcpscraper search <query>
$ mcpscraper search "best roofing companies denver"
1. TOP 10 BEST Roofing Companies in Denver, CO
https://www.yelp.com/search?find_desc=Roofing+Companies&find_loc=Denver%2C+CO
2. Recomendations for roofing company in Denver - ASAP
https://www.reddit.com/r/Denver/comments/1kh2gd3/...Options: --location <location>, --json.
mcpscraper scrape <url>
$ mcpscraper scrape https://example.com --deposit-to-vault --vault research
Example Domain
This domain is for use in illustrative examples...
Vault deposit: saved to researchOptions: --screenshot, --deposit-to-vault, --vault <name>, --json.
mcpscraper crawl <url>
Starts a durable background export that retains complete JSON, acquired HTML, and Markdown for every successful page. Options: --max-pages <n> (default 100), --preserve-media, --idempotency-key <key>, --json.
Poll and read the export without downloading and unpacking the ZIP:
mcpscraper export-status <job-id>
mcpscraper export-read <job-id> --representation manifest
mcpscraper export-read <job-id> --representation html --page-id <page-id> --output page.html
mcpscraper export-image <job-id> <image-id> --output image.jpgmcpscraper map <url>
Discovers all URLs on a site (no extraction). Options: --json.
mcpscraper maps-search <query> --location <location>
$ mcpscraper maps-search "roofers" --location "Denver, CO"
1. Forest Roofs (4.9★)
701 Birch Street
2. Mike & Sons Roofing (4.8★)
...Options: --json.
mcpscraper memory search <query>
Semantic search across your mcp-memory vaults, dispatched through your mcpscraper.dev API key (no separate memory key needed).
$ mcpscraper memory search "roofing warranty terms"
[0.83] note:competitor-research/roofing-warranties.md
Standard roofing warranty terms cover materials for 25-30 years...mcpscraper memory list-vaults
$ mcpscraper memory list-vaults
Ideas (2 notes, owner)
Inspiration (2 notes, owner)
Knowledge (3 notes, owner)Every command supports --json
$ mcpscraper map https://example.com --json
{
"urls": ["https://example.com/", "https://example.com/about"]
}See also
Repo README (multi-language examples with real sample output) · mcpscraper-sdk · mcpscraper-memory-sdk · Python: mcpscraper-sdk · mcpscraper-memory-sdk
Release changes: SDK 0.43.0 release notes.
