# mcp-webgate [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/x-hannibal/mcp-webgate  
**GitHub Stars:** 3  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-webgate

## Description
Web search that doesn't wreck your AI's memory.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-webgate": {
    "command": "uvx",
    "args": ["mcp-webgate"],
    "env": {
      "WEBGATE_DEFAULT_BACKEND": "",
      "WEBGATE_SEARXNG_URL": ""
    }
  }
}
```

**Requires environment variables:** `WEBGATE_DEFAULT_BACKEND`, `WEBGATE_SEARXNG_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-webgate does

The mcp-webgate MCP server provides bounded web retrieval for AI clients. It can fetch a known URL or run one or more web searches, retrieve selected pages, remove page elements such as navigation, scripts, advertisements, and footers, then return readable text. Results can also be summarized into a Markdown report with citations through an optional secondary local LLM.

The server is intended for cases where a normal browser or URL-fetching tool would pass raw HTML into the model context. It limits the amount of returned content, which helps keep large pages and multi-source searches within a defined character budget.

## How it works

A query is sent to a configured search backend. The server merges multiple queries, removes duplicate URLs, filters domains, blocks binary files, and fetches pages in parallel. Failed fetches may be retried from a reserve pool. HTML is parsed with lxml, invisible or problematic Unicode characters are cleaned, and BM25 ranking places the most relevant material first. Optional LLM reranking and summarization can be applied after retrieval.

Without summarization, the response contains cleaned sources and additional search snippets that were not fetched. With summarization enabled, the response contains a compact report and citation metadata. If the LLM request fails, the error is reported and the fetched sources are returned as a fallback.

## Setup and configuration

The mcp-webgate MCP server requires Python 3.11 or newer and can be launched with `uvx`. Install `uv` first, then configure an MCP client to run `uvx mcp-webgate`.

SearXNG can run locally with Docker on port 8080 and does not require an account. The documented cloud backend alternatives are Brave, Tavily, Exa, and SerpAPI. Restart the client after changing its MCP configuration.

## Tools and capabilities

- `webgate_fetch` retrieves and cleans one URL. Its `max_chars` argument can request a smaller response, subject to the server's overall budget.
- `webgate_query` accepts one query or a list of queries, searches and fetches results, and returns ranked cleaned content, snippets, statistics, or an optional cited summary.
- `webgate_onboarding` returns usage guidance for selecting and applying the other tools.

The default single-page ceiling is 32,000 characters. For multi-result searches, the total budget is divided across fetched pages and each page is also subject to a per-page limit.

## Limitations and notes

The mcp-webgate MCP server is marked beta in the repository. Output budgets are measured in characters rather than tokens; the README gives roughly four English characters per token as a rule of thumb. Smaller or local models may ignore MCP guidance and use a built-in fetch tool instead, so the README recommends explicitly instructing them to use `webgate_query` and `webgate_fetch`.

The documented client integrations include Claude Desktop, Claude Code, Zed, Cursor, Windsurf, VS Code, Gemini CLI, Claude CLI, and custom agents.

_Full upstream README: https://allmcps.com/mcp/mcp-webgate/readme_

