# Webfetch

> Self-hosted web search with fetching, ranking, and semantic caching.

- **URL**: https://followmcp.com/en/servers/webfetch
- **Category**: Browser
- **Origin**: Community
- **Stars**: 62
- **FMRS Score**: 56/100 (Grade C)
- **Source**: https://github.com/firish/webfetch
- **Transports**: stdio (local process)
- **Runtimes**: Python
- **Auth**: No credential needed

## Overview
Webfetch is a self-hosted web-search server for LLM agents. It combines multi-engine search, local page fetching and extraction, semantic ranking, and sentence-level compression. DuckDuckGo works without a key; optional Brave, Serper, and Tavily credentials add engines. It also provides exact and semantic caching with cache provenance.

## Best for
- Agent developers who want to run their own web-search pipeline and can accept roughly 10–40 seconds for a fresh search.
- Personal or single-process use cases that need local extraction, ranking, and caching.

## Not for
- Use cases requiring sub-second search responses.
- Deployments requiring a shared cache across processes or teams.
- Use cases that cannot rely on a model to formulate queries and assess results.

## Required permissions
- Needs network access to configured search engines and pages being fetched; DDG works without credentials.
- Needs read and write access to the local cache database, defaulting to `~/.webfetch/cache.db`.
- Optional search-service credentials should be configured as secrets: BRAVE_API_KEY, SERPER_API_KEY, and TAVILY_API_KEY.

## Risks
- A fresh search typically takes 10–40 seconds; cache hits are instant.
- Search-engine free quotas may run out, reducing the available engine set or retrieval quality.
- Semantic caching can miss some paraphrased queries; model-contributed cached findings are labeled unverified.
- The cache is designed for a single process; the README says the server checks PyPI for a newer release once per process.

## Client config (JSON)
```json
{
  "mcpServers": {
    "webfetch": {
      "command": "uvx",
      "args": [
        "--from",
        "webfetch-llm@latest",
        "webfetch-mcp"
      ]
    }
  }
}
```

## Tools (5)
- `web_search`: Search the web and return query-ranked, compressed results; supports full results, freshness hints, and forced fresh searches.
- `fetch_url`: Fetch and extract the content of a specified URL.
- `save_finding`: Store a model-contributed finding; it is marked unverified and can be bypassed with a forced fresh search.
- `status`: Inspect search engines, optional features, and cache status.
- `savings_report`: View session and lifetime usage counters and estimated savings.
