Webfetch logo

Webfetch

Self-hosted web search that fetches, ranks, compresses, and caches results for MCP-compatible agents.

Install Webfetch

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "webfetch": {
      "command": "uvx",
      "args": [
        "--from",
        "webfetch-llm@latest",
        "webfetch-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx --from webfetch-llm@latest webfetch-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The webfetch MCP server runs a local search pipeline across DuckDuckGo, Brave, Serper, and Tavily, then fetches, ranks, and compresses page content. It exposes MCP tools for web search, direct URL fetching, cache control, status checks, savings reports, and optional finding storage. DuckDuckGo works without an API key, while additional engines can be enabled through environment variables. Reach for it when you need self-hosted search, reduced context size, semantic caching, or local control over retrieval.

Use cases

  • Search the web from a self-hosted MCP client
  • Fetch and compress pages before sending them to a model
  • Reuse results for repeated or paraphrased queries
  • Retrieve a cited page in full
  • Track search usage and estimated savings

Key features

  • Multi-engine search with reciprocal-rank fusion
  • Local page extraction and sentence-level compression
  • Exact and semantic SQLite caching
  • Configurable freshness and forced refresh
  • Direct URL fetching
  • Usage and savings reporting

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

21/21 checks healthy over the last 78d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · webfetch-llm@latest (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars61Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Webfetch works

What the webfetch MCP server does

The webfetch MCP server gives an MCP client a self-hosted web search workflow rather than relying on a hosted search feature. Its main search tool combines results from DuckDuckGo, Brave, Serper, and Tavily when their credentials are available. DuckDuckGo can operate without a key, so a basic installation can search without provider fees.

After finding candidate pages, the pipeline fetches and extracts their content locally. It supports ordinary HTML extraction and can use Playwright for JavaScript-heavy pages or some access barriers. Retrieved text is divided into chunks, ranked with lexical and embedding-based methods when the full dependency set is installed, and compressed to sentences relevant to the query.

The webfetch MCP server also stores page text and ranked query results in SQLite. Exact queries use an exact cache, while paraphrased queries can use semantic matching with additional verification. Cache lifetimes vary according to the query's expected volatility, and results include cache provenance. A caller can request fresh data when cached content is unsuitable.

How it works

The default provider mode fuses available search engines with reciprocal-rank fusion. Alternative modes can use a fallback arrangement or one named engine. Search results are then fetched and processed locally before being returned to the model. The full_results option disables the normal compressed presentation when broader excerpts are needed for list or ranking tasks.

A separate URL-fetch operation retrieves one cited page in full and can reuse content already fetched by the pipeline. The server can also record model-supplied findings through save_finding; those entries are labeled unverified and follow the normal cache-expiration rules. Usage data is retained in the cache database for session and lifetime reporting.

Setup and configuration

Install the package with pip install webfetch-llm. The complete installation is available with pip install "webfetch-llm[all]"; the extra dependencies add semantic ranking, Playwright rendering, PDF handling, and table extraction. The slim package runs with reduced functionality, including BM25 ranking, exact-only caching, and lexical compression.

An MCP client can launch the server through the webfetch-mcp console command. For Claude, the documented launcher uses uvx --from webfetch-llm@latest webfetch-mcp, or an existing installation can be registered directly. A .env file is read by the console scripts and server from their working directory, while exported variables and client command-line settings take precedence.

BRAVE_API_KEY, SERPER_API_KEY, and TAVILY_API_KEY add their respective engines. WEBFETCH_PROVIDER selects multi-engine fusion, fallback mode, or a single engine. WEBFETCH_CACHE_DB changes the SQLite cache location; the default is ~/.webfetch/cache.db.

Tools and capabilities

The available MCP operations include:

  • web_search for searching, fetching, ranking, and compressed result delivery.
  • fetch_url for retrieving one page in full.
  • status for checking configured providers and optional components without displaying key values.
  • savings_report for session and lifetime usage counters.
  • save_finding for storing model-contributed information as explicitly unverified content.

Search calls can use freshness hints to influence cache lifetime, force_fresh to bypass cached data, and full_results to request uncompressed excerpts.

Limitations and notes

Additional API keys are optional, but recall and provider coverage depend on which engines are configured. The full semantic pipeline requires heavier dependencies and may take longer to install; PDF extraction is an optional component. JavaScript rendering also depends on Playwright being installed.

The webfetch MCP server is local software, so its cache and processing run in the environment where the MCP process starts. Library imports do not load .env automatically. Cached model findings are marked unverified, and deployments that do not want them stored can disable the save-finding feature.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Webfetch

webfetch is an MCP server that connects AI agents to DuckDuckGo, Brave, Serper, Tavily, and fetched web pages. Its main tools include web_search, fetch_url, status, savings_report, and save_finding. It searches, extracts, ranks, compresses, and caches web content locally, with DuckDuckGo available without an API key.

Install it with pip install webfetch-llm or pip install "webfetch-llm[all]" for the full feature set. Then register the webfetch-mcp console command with your MCP client. The documented Claude command uses uvx to install and launch the latest package automatically.

Yes, webfetch works with DuckDuckGo without an API key. Brave, Serper, and Tavily require their corresponding keys, and adding them enables those engines in multi-provider search. With no keys configured, the default provider resolves to DuckDuckGo.

Set the search call's force_fresh option to bypass cached results. You can also provide freshness hints to influence how long results remain valid. The cache uses different lifetimes for volatile information such as prices and more stable material such as specifications.

The full installation adds semantic ranking, semantic caching, Playwright-based JavaScript rendering, PDF extraction, and HTML table extraction. The slim installation still runs, but uses BM25 ranking, exact-only caching, and lexical compression instead of the complete processing stack.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWebfetch AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/webfetch?style=directory)](https://allmcps.com/mcp/webfetch)
HTML Embed
<a href="https://allmcps.com/mcp/webfetch"><img src="https://allmcps.com/api/badge/webfetch?style=directory" alt="Webfetch on AllMCPs" /></a>