Wraps web search backends (SearXNG, Brave, Tavily, Exa, SerpAPI) with aggressive HTML cleanup and token budgeting to keep search results from flooding your context window. Exposes three tools: webgate_query for search plus fetch, webgate_fetch for single URL retrieval, and webgate_onboarding for usage guidance. Strips navigation, ads, and scripts with lxml, applies BM25 reranking, and hard-caps output size per page and per query. Optional LLM summarization can condense multiple sources into a cited Markdown report. The real win is making web content safe for extended conversations. A typical search that would dump 200k tokens of raw HTML gets compressed to under 2k tokens of ranked, cleaned text. Works across Claude Desktop, CLI agents, and any MCP-compatible editor.
claude mcp add --transport stdio x-monk-mcp-webgate uvx mcp-webgate