MCP Webgate logo

MCP Webgate

Cleans, limits, ranks, and optionally summarizes web search results before they reach an AI context.

Install MCP Webgate

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": {
    "mcp-webgate": {
      "command": "uvx",
      "args": [
        "mcp-webgate"
      ],
      "env": {
        "WEBGATE_DEFAULT_BACKEND": "YOUR_VALUE_HERE",
        "WEBGATE_SEARXNG_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

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 mcp-webgate

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 mcp-webgate MCP server searches the web and retrieves pages through configurable backends such as SearXNG, Brave, Tavily, Exa, and SerpAPI. It removes common HTML noise, filters and deduplicates results, ranks content, and enforces output limits before returning it to an AI client. Its three MCP tools support page fetching, multi-query search, and onboarding guidance. Reach for it when raw web pages would consume too much context or when search results need optional local-LLM summarization with citations.

Use cases

  • Search multiple web queries without flooding model context
  • Fetch a known page as cleaned, bounded text
  • Summarize retrieved sources with citations
  • Use local SearXNG for account-free web search
  • Guide smaller models toward controlled web retrieval

Key features

  • HTML cleanup and text extraction
  • Per-page and total output budgets
  • Parallel multi-query retrieval
  • BM25 result reranking
  • Optional LLM summaries with citations
  • Fallback source output when summarization fails

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.

25/26 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · mcp-webgate (PyPI)

Adoption & maintenance

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

GitHub stars3Stargazers on the source repository.
Last commit8mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How MCP Webgate works

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.

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 MCP Webgate

mcp-webgate is an MCP server that connects AI clients to web search backends and web pages while returning cleaned, bounded content. Its main tools are webgate_query for searching and retrieving sources, webgate_fetch for reading a known URL, and webgate_onboarding for usage guidance. Optional LLM summarization produces cited Markdown reports.

Install Python 3.11 or newer and the uv package, then configure your MCP client to run `uvx mcp-webgate`. You also need a search backend, such as local SearXNG or a documented cloud backend. Restart the client after saving its MCP configuration.

SearXNG can be run locally with Docker, while the other listed services are cloud backend options.

Yes, Cursor is one of the clients named in the README. The server is configured as an MCP server, and the documented quick-start pattern runs `uvx mcp-webgate` with backend settings supplied through the client's environment configuration.

It removes common HTML noise, limits fetched page sizes, distributes a total character budget across multi-page searches, and can summarize results with an optional local LLM. These steps prevent raw HTML and very large pages from being passed directly into the AI context.

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 PreviewMCP Webgate AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-webgate?style=directory)](https://allmcps.com/mcp/mcp-webgate)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-webgate"><img src="https://allmcps.com/api/badge/mcp-webgate?style=directory" alt="MCP Webgate on AllMCPs" /></a>