MCP server for web search and page fetching via a stealth browser

MCP server for web search and page fetching via a stealth browser

mcp-server-for-stealth-web-search-and-fetching•bymaxylev

SearchFetch is an MCP server exposing read-only web search and fetch tools that render JavaScript pages in Chromium and return compact Markdown.

License: Not specified•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Provides a websearch tool supporting DuckDuckGo, Google, template names, or inline JSON templates, with fallback chains when engines fail.
  • •Provides a webfetch tool that renders pages with JavaScript in an isolated browser context and converts them to Markdown with paging via start_index and max_length.
  • •Strips scripts, styles, SVGs, inline styles and data images before conversion and blocks images, media and fonts at the network layer.
  • •Includes built-in extraction templates for sites such as GitHub, npm, PyPI, Wikipedia, MDN, Reddit and YouTube, and accepts custom inline templates.

BEST FOR

  • •AI agents that need to search the web and read rendered pages as token-efficient Markdown.
  • •Clients that want consistent tooling in either a Python or Node.js runtime.
  • •Agents extracting structured content from package registries and documentation sites.

ABOUT MCP-SERVER-FOR-STEALTH-WEB-SEARCH-AND-FETCHING

MCP server for web search and page fetching via a stealth browser is cataloged as an MCP server attributed to maxylev. SearchFetch is an MCP server exposing read-only web search and fetch tools that render JavaScript pages in Chromium and return compact Markdown. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for web search and page fetching via a stealth browser are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What happens when a fetch times out or the browser disconnects?

SearchFetch relaunches a disconnected browser and retries timeouts, network failures and HTTP 429 once, honoring Retry-After capped at 30 seconds.

How is page content kept small for the model?

Scripts, styles, SVGs, inline styles and embedded data images are removed before conversion, and images, media and fonts are blocked at the network layer.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 771baf35f69a · 采集于 2026-11-13 10:57:26 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

SearchFetch

An MCP server that gives AI agents web search and page fetching through a stealth browser. Pages are rendered with JavaScript, stripped of noise, and returned as compact Markdown.

  • Browser rendering: CloakBrowser runs Chromium with humanized input. Each fetch uses an isolated browser context. Sites may still demand logins or challenges.
  • Fault tolerance: relaunches a disconnected browser and retries timeouts, network failures and HTTP 429 (honoring Retry-After, capped at 30 s) once. Built-in search engines fall back to DuckDuckGo HTML and then DuckDuckGo Lite.
  • Token-efficient output: scripts, styles, SVGs, inline styles and embedded data: images are removed before conversion; images, media and fonts are blocked at the network layer.
  • Template-driven extraction: JSON templates for GitHub, GitLab, npm, PyPI, crates.io, docs.rs, Docker Hub, Wikipedia, MDN, Reddit, YouTube, DEV, pkg.go.dev, Javadoc and generic documentation sites. Custom templates can be passed inline.
  • Two runtimes: Python (uvx, Python 3.11.5+) or Node.js (npx, Node 24+), with the same tools, templates and output. The first run downloads the browser binary.

Setup

No manual install is needed. Point your MCP client at uvx or npx:

{
  "mcpServers": {
    "searchfetch": {
      "command": "uvx",
      "args": ["searchfetch"]
    }
  }
}

For Node.js, use "command": "npx", "args": ["-y", "searchfetch"]. In Cursor, add a command server with uvx searchfetch or npx -y searchfetch.

Tools

Both tools are read-only. Failures are returned as MCP tool errors.

websearch

ParameterTypeDefaultDescription
querystringrequiredSearch query (must not be blank).
enginestring"duckduckgo""duckduckgo", "google", a search template name, or an inline JSON template.
regionstring/nullnullRegion-language code such as "us-en". DuckDuckGo: kl; Google: gl and hl.
safe_searchboolean/nullnulltrue or false sets the engine's safe search; null keeps the engine default.
max_resultsinteger10Maximum results (positive).
block_mediabooleantrueBlock images, media and fonts at the network layer.

Results are a numbered list of titles, URLs and snippets. When an engine fails or returns no results, the next template in its fallback chain is tried (google → duckduckgo-search → duckduckgo-lite-search), and a [websearch: …] note at the top of the output explains why.

webfetch

ParameterTypeDefaultDescription
urlstringrequiredAbsolute http/https URL.
templatestring"auto""auto" (detect by URL), a template name, or inline JSON template.
start_indexinteger0Start offset in Unicode code points (non-negative).
max_lengthinteger10000Maximum code points to return (positive).
block_mediabooleantrueBlock images, media and fonts at the network layer.

Output ends with a footer naming the template and the character window, plus the next start_index when more content remains. Pages that match no template are converted whole after removing navigation, headers, footers, sidebars, dialogs and media (template="auto (fallback)"). The raw template converts the full <body> with no removal.

Templates

Built-in templates live in templates/ and are shared by both runtimes. Page templates: github-repo, github-issue, npm-package, pypi-package, crates-package, docs-rs, javadoc, docs-page, docker-hub, wikipedia, gitlab, reddit, mdn-web-docs, devto, go-pkg, youtube, raw. Search templates: google-search, duckduckgo-search, duckduckgo-lite-search.

Templates are validated when they are loaded or passed inline:

FieldDescription
nameRequired unique name (inline templates default to "custom").
sectionsRequired list of sections (see below).
orderPrecedence for auto detection; lower wins.
url_patternsRegular expressions (compatible with JavaScript and Python) that select the template for auto.
removeCSS selectors removed before extraction. Defaults to scripts, styles, SVG, nav, footer, iframes.
source_urlRaw Markdown source tried first, e.g. "{url}.md"; HTML responses are ignored.
cookiesPlaywright cookies added to the browser context.
block_resourcesResource types blocked when block_media is on. Default: image, media, font.
url_templateSearch URL with {placeholders}; makes the template usable by websearch.
url_paramsPer placeholder: required, default, and encode: "url".
engine"duckduckgo" or "google": how region and safe_search map to URL parameters.
fallbackName of the search template to try when this one fails.

Each section has a name, a selector (empty selects <body>), and optionally format (text, markdown, attribute with attribute, or html), transform (one or a list of strip, decode_google_url, decode_ddg_url, json_parse, resolve_href), required, multiple, max_items, and children (fields extracted from inside each matched element).

Selectors separated by top-level commas are ordered fallbacks: the first selector that matches wins, and an empty fallback selects the current element. Children search inside their parent element and its ancestors, never neighbouring results, so a missing field stays missing. Missing required sections or fields are reported as errors.

A records section whose first item has Author/User and Comment/Body fields is rendered as a comment thread; other records render as indented Key: value blocks.

Development

npm ci && uv sync --locked --extra dev
git config core.hooksPath .githooks   # optional: format, lint and unit tests before commits

npm test               # Node (node:test) and Python (pytest) unit tests
npm run lint           # ESLint and Ruff
npm run format         # Prettier and Ruff format (format:check to verify)
npm run e2e            # real browser against local fixtures, plus the packed npm and wheel builds
npm run check          # everything CI runs
npm run inspect:node   # MCP Inspector (inspect:py for Python)

Layout

PathContents
src/Node.js runtime (index.js is the searchfetch executable).
searchfetch/Python package (python -m searchfetch or the searchfetch script).
templates/Shared templates; bundled into the npm package and the Python wheel.
tests/fixtures/Shared fixtures that keep both runtimes' extraction and output identical.
tests/node, tests/pythonUnit tests.
tests/e2e/MCP end-to-end tests over stdio against a local HTTP server.

The runtimes mirror each other module for module (templates, extract, markdown, compose, browser, server). Any change to one should be made to the other, with a shared fixture if the behavior is observable.

Releasing

Bump version in both package.json and pyproject.toml (then npm install and uv lock), commit, and push a matching tag:

git tag -a v4.0.1 -m "v4.0.1" && git push origin main v4.0.1

The Publish workflow checks that the tag matches both versions, runs lint and unit tests, publishes to npm and PyPI, and then creates the GitHub Release with generated notes. To retry a tag, run the workflow manually from the Actions tab with that tag.

Limits

  • HTML-to-Markdown conversion uses turndown (Node) and markdownify (Python). They agree on common content, but edge cases such as tables differ.
  • After the DOM is ready, each fetch waits up to five seconds for network activity to settle. Pages that keep rendering after that may return partial content.
  • E2E tests use local fixtures. Live search-engine availability and third-party page layouts change over time and need separate live checks.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for web search and page fetching via a stealth browser from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-for-stealth-web-search-and-fetching)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research