scrapeless-mcp-server

v0.6.4
io.github.scrapeless-ai/scrapeless-mcp-server Checked 9 hours ago Published 2 months ago

Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ai_scraper

Create an AI Scraper task for an explicit Scrapeless actor, then poll every 5 seconds until the answer is ready or the timeout is reached. Supports ChatGPT, Gemini, Perplexity, Copilot, Google AI Mode, Google AI Overview, Grok, and Alexa. Defaults to a 3 minute timeout. The timeout can be set from 60 to 600 seconds. On timeout, returns the task_id and instructions for manually fetching the result.

ParameterTypeDescription
actor *stringScrapeless actor to run. Choose one explicitly: scraper.chatgpt, scraper.gemini, scraper.perplexity, scraper.copilot, scraper.aimode, scraper.overview, scraper.grok, or scraper.alexa.
prompt *stringQuestion or prompt to send to the selected AI Scraper actor.
countrystringCountry or region code used by the actor. Defaults to US.
locationstringGoogle canonical location for Google AI Mode or Google AI Overview. Mutually exclusive with uule.
modestringRequired for scraper.copilot or scraper.grok. Copilot: search, smart, chat, reasoning, study. Grok: MODEL_MODE_FAST, MODEL_MODE_EXPERT, MODEL_MODE_AUTO.
shoppingbooleanFetch shopping/product data for scraper.chatgpt, scraper.aimode, or scraper.overview when explicitly provided.
timeout_secondsintegerMaximum polling time in seconds. Defaults to 180. Minimum is 60 and maximum is 600.
uulestringPre-encoded Google UULE for Google AI Mode or Google AI Overview. Mutually exclusive with location.
web_searchbooleanEnable web search for scraper.chatgpt or scraper.perplexity when explicitly provided.
webhookobjectOptional webhook object passed to the Scrapeless task request.

crawl_cancel

Cancel an in-progress crawl job by its id (the id returned by crawl_start). Returns the cancelled status.

ParameterTypeDescription
id *stringThe crawl job id returned when the job was created.

crawl_result

Fetch the result of a crawl job by its id (the id returned by crawl_start). Polls the job status until it reaches a terminal state (completed / failed / cancelled) or the timeout is reached. If the timeout is reached before the job finishes, the latest status is returned along with the job id so you can retry later.

ParameterTypeDescription
id *stringThe crawl job id returned when the job was created.
pollIntervalnumberInterval between status checks in seconds. Defaults to 5 seconds.
timeoutnumberMaximum time to wait in seconds before returning the latest result. Defaults to 300 (5 minutes).

crawl_start

Start an asynchronous crawl job. Crawls a website starting from a base URL, following links according to the provided options, and captures page content in various formats (markdown, html, links, screenshot, etc.). Returns a job id that can be used with crawl_result to fetch results and crawl_cancel to cancel the job. Only 'url' is required; all other parameters are optional.

ParameterTypeDescription
url *stringThe base URL to start crawling from.
allowBackwardLinksbooleanAllow the crawler to follow links that are not part of the URL hierarchy you specify.
allowExternalLinksbooleanAllow the crawler to follow links to external websites.
browserOptionsobjectOptions that control the underlying scraping browser session.
deduplicateSimilarURLsbooleanControls whether similar URLs should be deduplicated.
delaynumberDelay in seconds between scrapes. This helps respect website rate limits.
excludePathsarrayURL pathname regex patterns that exclude matching URLs from the crawl.
ignoreQueryParametersbooleanDo not re-scrape the same path with different (or none) query parameters.
ignoreSitemapbooleanIgnore the website sitemap when crawling.
includePathsarrayURL pathname regex patterns that include matching URLs in the crawl.
limitnumberMaximum number of pages to crawl. Default limit is 10000.
maxDepthnumberMaximum depth to crawl relative to the base URL (max number of slashes in the pathname).
maxDiscoveryDepthnumberMaximum depth to crawl based on discovery order.
regexOnFullURLbooleanControls whether the include/exclude regex should be applied to the full URL.
scrapeOptionsobjectOptions that control how each page is scraped.

scrape_html

Scrape a URL and return its full HTML content. Restrictions: Activated for URLs that require JavaScript rendering or bot protection. Valid: Get HTML from a dynamic, JS-heavy single-page application. Invalid: Fetching a simple static page (use a standard HTTP client).

ParameterTypeDescription
url *stringtarget URL

scrape_markdown

Scrape a URL and return its content as Markdown. Restrictions: Best for articles, blog posts, and other text-heavy pages. Valid: Scrape a news article to get its readable content. Invalid: Scrape a complex web application dashboard.

ParameterTypeDescription
url *stringtarget URL

scrape_screenshot

Capture a high-quality screenshot of any webpage. Restrictions: Bypasses bot detection and CAPTCHAs using residential proxies. Valid: Get a screenshot of a price-checker page protected by Cloudflare. Invalid: Taking a screenshot of the local browser (use browser_screenshot)

ParameterTypeDescription
url *stringtarget URL

browser_click

Click a specific element on the page. Restrictions: Requires a valid CSS selector for the target element. Valid: Click the button with selector "#submit-button". Invalid: Click "the login button" without providing a selector.

ParameterTypeDescription
selector *stringThe CSS selector of the element to click.
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_close

Closes the current session by disconnecting the cloud browser. This will terminate the recording for the session.

ParameterTypeDescription
sessionId *stringThe session ID to identify target browser. If not provided or invalid, you cannot close the session.

browser_create

Create or reuse a cloud browser session using Scrapeless. Updates the active session.

ParameterTypeDescription
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, a new session is created.

browser_get_html

Get the full HTML of the current page. Restrictions: Returns the entire raw HTML source code. Valid: Get the HTML of the current page to parse its structure. Invalid: Get only the visible text (use "browser_get_text")

ParameterTypeDescription
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_get_text

Get all visible text from the current page. Restrictions: Extracts only text content, ignoring HTML tags. Valid: Get the text content of the current page for summarization. Invalid: Get the page's HTML structure (use "browser_get_html")

ParameterTypeDescription
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_go_back

Go back one step in browser history. Restrictions: Only works if a previous page exists in the session history. Valid: After navigating from page A to B, go back to A. Invalid: Attempting to go back on the first page of a session.

ParameterTypeDescription
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_go_forward

Go forward one step in browser history. Restrictions: Only works after a "go_back" action has been performed. Valid: After going back from page B to A, go forward to B. Invalid: Attempting to go forward without a preceding "go_back" action.

ParameterTypeDescription
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_goto

Navigate browser to a specified URL. Restrictions: Only for direct URL navigation, not for searches. Valid: Go to https://google.com. Invalid: Search for "cats" on Google (use google_search).

ParameterTypeDescription
url *stringThe URL to navigate to in the browser session.
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_press_key

Simulate a key press. Restrictions: Must specify a valid key name; optional target selector. Valid: Press Enter in #search. Invalid: Press a key without specifying the key name.

ParameterTypeDescription
key *stringName of the key to press or a character to generate, such as `ArrowLeft` or `a`
selectorstringThe CSS selector of the element to focus.

browser_screenshot

Capture a screenshot of the current page. Restrictions: Can capture either the full page or the visible viewport. Valid: Take a screenshot of the current browser view. Invalid: Capture a screenshot of a specific element (not supported).

ParameterTypeDescription
fullPagebooleanWhether to screenshot the full page (default: false) You should avoid fullscreen if it's not important, since the images can be quite large
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_scroll

Scroll the current page to a specific position. Restrictions: Requires pixel coordinates for scrolling. Valid: Scroll to the bottom of the page (e.g., { x: 0, y: 10000 }). Invalid: Scroll to "the top" without specifying coordinates.

ParameterTypeDescription
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_scroll_to

Scroll a specific element into view. Restrictions: Requires a valid CSS selector for the target element. Valid: Scroll to the element "#footer". Invalid: Scroll to the bottom of the page (use "browser_scroll").

ParameterTypeDescription
x *numberX coordinate to scroll to.
y *numberY coordinate to scroll to.
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_snapshot

Capture the complete structure of a webpage, including DOM and resources, for inspection and analysis.

ParameterTypeDescription
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_type

Type text into a specified input field. Restrictions: Requires a CSS selector for an input/textarea and the text to type. Valid: Type "hello world" into input "[name='q']". Invalid: Type "hello world" without specifying a target field.

ParameterTypeDescription
selector *stringCSS selector for the element to type into.
text *stringText to type.
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_wait

Pause execution for a fixed duration. Restrictions: Requires a duration in milliseconds. Should be used sparingly. Valid: Wait for 2000 milliseconds. Invalid: Wait for a page to finish loading (use "browser_wait_for")

ParameterTypeDescription
time *integerTime to wait in milliseconds (default: 30000).
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.

browser_wait_for

Wait for a specific page element to appear. Restrictions: Requires a valid CSS selector for the element to wait for. Valid: Wait for the element "#results" to become visible. Invalid: Wait for "the results to load" without a selector.

ParameterTypeDescription
selector *stringCSS selector of the element to wait for.
sessionIdstringOptional session ID to use/reuse. If not provided or invalid, the active session is used.
timeoutnumberMaximum time to wait in milliseconds (default: 30000).