You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ai/mcp-server.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,35 @@ Here's the main article from Anthropic on [how to add MCP servers to Claude code
154
154
155
155
Then, after you've added the server, you need to completely quit and restart the app you used above. In Claude Desktop, you should see an MCP server indicator (🔧) in the bottom-right corner of the chat input or see `ScraplingServer` in the `Search and tools` dropdown in the chat input box.
156
156
157
+
### Custom Browser Executable
158
+
159
+
Browser-based tools (`fetch`, `bulk_fetch`, `stealthy_fetch`, `bulk_stealthy_fetch`, and `open_session`) can use a custom Chromium-compatible browser executable instead of the bundled Chromium. This is useful for custom browser builds or lightweight browser engines.
160
+
161
+
To configure it once for the whole MCP server, pass the executable path when starting the server:
You can also set the `SCRAPLING_EXECUTABLE_PATH` environment variable before starting the server. Tool calls can still pass `executable_path` directly when a single request or session needs a different browser executable.
185
+
157
186
### Streamable HTTP
158
187
As per version 0.3.6, we have added the ability to make the MCP server use the 'Streamable HTTP' transport mode instead of the traditional 'stdio' transport.
159
188
@@ -356,4 +385,4 @@ This protection runs automatically on all MCP tool responses. Keep `main_content
356
385
357
386
---
358
387
359
-
*Built with ❤️ by the Scrapling team. Happy scraping!*
388
+
*Built with ❤️ by the Scrapling team. Happy scraping!*
:param wait_selector_state: The state to wait for the selector given with `wait_selector`. The default state is `attached`.
531
547
:param real_chrome: If you have a Chrome browser installed on your device, enable this, and the Fetcher will launch an instance of your browser and use it.
532
548
:param cdp_url: Instead of launching a new browser instance, connect to this CDP URL to control real browsers through CDP.
549
+
:param executable_path: Absolute path to a custom Chromium-compatible browser executable. Overrides the server-wide default for this request.
533
550
:param google_search: Enabled by default, Scrapling will set a Google referer header.
534
551
:param extra_headers: A dictionary of extra headers to add to the request. _The referer set by `google_search` takes priority over the referer set here if used together._
535
552
:param proxy: The proxy to be used with requests, it can be a string or a dictionary with the keys 'server', 'username', and 'password' only.
@@ -550,6 +567,7 @@ async def fetch(
550
567
extra_headers=extra_headers,
551
568
useragent=useragent,
552
569
cdp_url=cdp_url,
570
+
executable_path=executable_path,
553
571
timeout=timeout,
554
572
disable_resources=disable_resources,
555
573
wait_selector=wait_selector,
@@ -576,6 +594,7 @@ async def bulk_fetch(
576
594
extra_headers: Optional[Dict[str, str]] =None,
577
595
useragent: Optional[str] =None,
578
596
cdp_url: Optional[str] =None,
597
+
executable_path: Optional[str] =None,
579
598
timeout: int|float=30000,
580
599
disable_resources: bool=False,
581
600
wait_selector: Optional[str] =None,
@@ -612,6 +631,7 @@ async def bulk_fetch(
612
631
:param wait_selector_state: The state to wait for the selector given with `wait_selector`. The default state is `attached`.
613
632
:param real_chrome: If you have a Chrome browser installed on your device, enable this, and the Fetcher will launch an instance of your browser and use it.
614
633
:param cdp_url: Instead of launching a new browser instance, connect to this CDP URL to control real browsers through CDP.
634
+
:param executable_path: Absolute path to a custom Chromium-compatible browser executable. Overrides the server-wide default for this request.
615
635
:param google_search: Enabled by default, Scrapling will set a Google referer header.
616
636
:param extra_headers: A dictionary of extra headers to add to the request. _The referer set by `google_search` takes priority over the referer set here if used together._
617
637
:param proxy: The proxy to be used with requests, it can be a string or a dictionary with the keys 'server', 'username', and 'password' only.
:param hide_canvas: Add random noise to canvas operations to prevent fingerprinting.
723
745
:param block_webrtc: Forces WebRTC to respect proxy settings to prevent local IP address leak.
724
746
:param cdp_url: Instead of launching a new browser instance, connect to this CDP URL to control real browsers through CDP.
747
+
:param executable_path: Absolute path to a custom Chromium-compatible browser executable. Overrides the server-wide default for this request.
725
748
:param google_search: Enabled by default, Scrapling will set a Google referer header.
726
749
:param extra_headers: A dictionary of extra headers to add to the request. _The referer set by `google_search` takes priority over the referer set here if used together._
727
750
:param proxy: The proxy to be used with requests, it can be a string or a dictionary with the keys 'server', 'username', and 'password' only.
:param hide_canvas: Add random noise to canvas operations to prevent fingerprinting.
820
845
:param block_webrtc: Forces WebRTC to respect proxy settings to prevent local IP address leak.
821
846
:param cdp_url: Instead of launching a new browser instance, connect to this CDP URL to control real browsers through CDP.
847
+
:param executable_path: Absolute path to a custom Chromium-compatible browser executable. Overrides the server-wide default for this request.
822
848
:param google_search: Enabled by default, Scrapling will set a Google referer header.
823
849
:param extra_headers: A dictionary of extra headers to add to the request. _The referer set by `google_search` takes priority over the referer set here if used together._
824
850
:param proxy: The proxy to be used with requests, it can be a string or a dictionary with the keys 'server', 'username', and 'password' only.
0 commit comments