原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MCP Webgate

作者:x-hannibal版本 0.1.33i★ –i在你的电脑上运行
注册名称io.github.x-hannibal/mcp-webgate

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "webgate": {
      "command": "uvx",
      "args": [
        "mcp-webgate"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add webgate -- uvx mcp-webgate

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "webgate": {
      "command": "uvx",
      "args": [
        "mcp-webgate"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "webgate": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-webgate"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 x-hannibal 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 5651 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 5651 个服务器的 8% 更新
  • 基础检查结果等于或优于此分类中其他 5651 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MCP Webgate 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.33)于7个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT昨天更新
安装

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

在你的电脑上运行★ 48,148MIT21天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT上个月更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

mcp-webgate

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

mcp-webgate is an MCP server that gives your AI clean, bounded web content — across all major AI clients:

  • IDEs: Claude Desktop, Claude Code, Zed, Cursor, Windsurf, VSCode
  • CLI Agents: Gemini CLI, Claude CLI, custom agents

🌱 A Gentle Introduction

What is mcp-webgate? When your AI uses a standard "fetch URL" tool, it gets the raw HTML of the page — ads, menus, scripts, cookie banners and all. A single news article can dump 200,000 tokens of garbage into the AI's memory, wiping out your entire conversation.

mcp-webgate is a protective filter that sits between your AI and the web:

  1. Strips the junk — menus, scripts, ads, footers are removed with surgical HTML parsing; only readable text passes through
  2. Hard-caps every response — no page can ever blow up your context window, no matter how big the original was
  3. Optionally summarizes — route results through a secondary local LLM that produces a compact Markdown report with citations; your primary AI gets a polished briefing instead of a wall of text

The result: clean, bounded, useful web content — always.

🔬 Real example: what happens under the hood

Searching for *"mcp model context protocol"* with LLM features on:

Query → LLM expands to 5 search variants → 20 pages found, 13 fetched in parallel

Raw HTML downloaded 5.16 MB (~1,290,000 tokens) After cleaning 52.1 KB ( ~13,000 tokens) — 99% noise stripped After LLM summary 5.8 KB ( ~1,450 tokens) — structured report with citations

13 sources distilled into ~1,450 tokens. A single naive fetch of just *one* of those pages (e.g. a security blog at 563 KB) would dump ~140,000 tokens of raw HTML into your AI's context. webgate processes all 13 and delivers a clean briefing that fits in a footnote.

This is an intensive case (5 queries × 5 results). A typical search with 3–5 results still saves 95%+ of context compared to raw fetching — and your AI gets structured, ranked content instead of a wall of HTML soup.

🚀 Quick Start

1. Make sure you have uvx
pip install uv

uvx runs Python tools without installing them permanently. You only need to do this once.

2. Set up a search backend

The easiest option is SearXNG — free, no account, runs locally:

docker run -d -p 8080:8080 --name searxng searxng/searxng

No Docker? Use a cloud backend instead (Brave, Tavily, Exa, SerpAPI) — see Backends.

3. Add webgate to your AI client

See the Integrations table for your specific client. As a quick example, for Claude Desktop:

Open the config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add this:

{

"mcpServers": { "webgate": { "command": "uvx", "args": ["mcp-webgate"], "env": { "WEBGATE_DEFAULT_BACKEND": "searxng", "WEBGATE_SEARXNG_URL": "http://localhost:8080" } } } }

Restart the client after editing.

4. Ask your AI to search!
Search the web for: latest news on AI regulation

The AI will use webgate_query automatically. You're done.

🔍 How it works

Your question

↓ Search backend (SearXNG / Brave / Tavily / Exa / SerpAPI) ↓ [deduplicate URLs, block binary files, filter domains] Fetch pages in parallel (streaming — hard size cap per page) ↓ [optional: retry failed pages from reserve pool] Strip HTML junk (menus, ads, scripts, footers — lxml) ↓ Clean up text (invisible chars, unicode junk, BiDi tricks) ↓ BM25 reranking (best-matching results first — always active) ↓ [optional: LLM reranking] Cap total output to budget ↓ [optional: LLM summarization → compact Markdown report] Clean result lands in your AI's context

🛠️ Tools

webgate gives your AI three tools:

webgate_fetch — read a single page

Use this when you already know the URL you want. The AI passes the URL and gets back the cleaned text — up to max_query_budget characters (default 32,000).

{ "url": "https://example.com/article", "max_chars": 32000 }
{

"url": "https://example.com/article", "title": "Article Title", "text": "cleaned text...", "truncated": true, "char_count": 12450 }

webgate_query — search + fetch + clean

Runs a full search cycle. Pass one query (or several) and get back cleaned, ranked results.

{ "queries": "how to set up a VPN on Linux", "num_results_per_query": 5 }

Multiple queries run in parallel and are merged:

{

"queries": ["VPN Linux setup", "best VPN Linux 2024"], "num_results_per_query": 5 }

Output without LLM — returns cleaned page content for each result:

{

"sources": [ { "id": 1, "title": "...", "url": "...", "content": "cleaned text...", "truncated": false } ], "snippet_pool": [ { "id": 6, "title": "...", "url": "...", "snippet": "..." } ], "stats": { "fetched": 5, "total_chars": 18200, "per_page_limit": 6400 } }

Output with LLM summarization — returns a compact Markdown report:

{

"summary": "## How to set up a VPN on Linux\n\nTo install...1", "citations": [{ "id": 1, "title": "...", "url": "..." }], "stats": { "fetched": 5, "total_chars": 58000 } }

Output when LLM fails — error reason shown, full sources returned as fallback:

{

"llm_summary_error": "ReadTimeout: LLM did not respond in time", "sources": [ "..." ], "stats": { "..." : "..." } }

snippet_pool contains extra results from the search that were not fetched (search-engine snippet only). The AI can use these to decide if more fetches are worthwhile.

webgate_onboarding — how-to guide

Returns a JSON guide explaining how to use webgate effectively. The AI should call this once at the start of a session if in doubt about which tool to use.

🔧 Using webgate with local or smaller models

Most frontier models follow MCP tool instructions automatically. Smaller or local models sometimes ignore the server-provided guidance and fall back to a built-in fetch tool instead — returning raw HTML that floods the context with noise.

If you notice this happening, add an explicit instruction block to your system prompt:

You have access to webgate tools for web search and page retrieval.

Follow these rules in every session:

  • To search the web: use webgate_query — never use a built-in fetch, browser, or HTTP tool
  • To retrieve a URL: use webgate_fetch — never fetch URLs directly
  • Built-in fetch tools return raw HTML that floods your context; webgate returns clean, bounded text

At the start of each session, call webgate_onboarding to read the full operational guide.

This works because user system prompt instructions take precedence over MCP server-level guidance, making the constraint explicit at the highest-priority layer the model sees.

Tip: if your client supports named system prompts or prompt templates, save the block above as a reusable preset so you don't have to paste it every time.

🎛️ Tuning

This section explains what the key parameters do and when to change them. The defaults work well for most cases — only tweak if you have a specific reason.

What is a "character budget"?

webgate measures text in characters (not tokens). A rough conversion for English text:

4 characters ≈ 1 token

CharactersApproximate tokens
8,000~2,000
32,000~8,000
96,000~24,000
webgate_fetch budget

When you fetch a single URL, the ceiling is max_query_budget (default 32,000 chars). The tool parameter max_chars can request less, but never more than this ceiling.

Why `max_query_budget` and not `max_result_length`? Because you're fetching one page — the "total output" IS that one page, so the right limit is the overall context budget, not the per-page cap designed for multi-source queries.

webgate_query budget — without LLM

With no LLM, the cleaned sources go directly to your AI's context. webgate distributes max_query_budget across all fetched pages so the total never exceeds the budget:

Per-page limit = max_query_budget ÷ number of results

(capped at max_result_length)

Results fetchedPer-page limitTotal output
18,000 (cap)≤ 8,000
56,400≤ 32,000
103,200≤ 32,000
201,600≤ 32,000

The total output is always at most max_query_budget, regardless of how many results you request — the per-page share automatically shrinks to compensate.

webgate_query budget — with LLM summarization

When a secondary LLM is summarizing, it *compresses* the content before passing the result to your primary AI. This means it's safe — and beneficial — to give it more raw material to work from.

webgate scales up the input using input_budget_factor (default 3):

LLM input budget = max_query_budget × input_budget_factor

Default: 32,000 × 3 = 96,000 chars

Results fetchedLLM input / pageTotal LLM inputOutput to your AI
196,00096,000compact report
519,20096,000compact report
109,60096,000compact report
204,80096,000compact report

The secondary LLM sees much more content per page. Your primary AI sees only the final report — typically 1,000–3,000 tokens — regardless of how many sources were processed. This is the main efficiency advantage of LLM mode.

Quick tuning guide
SymptomFix
AI responses feel slow, too much textReduce max_query_budget (e.g. 16000)
AI answers are shallow or miss detailsIncrease max_query_budget (e.g. 48000)
LLM summary is thin or misses thingsIncrease input_budget_factor (e.g. 5)
LLM summary times out or is very slowReduce input_budget_factor (e.g. 2) or reduce results_per_query
fetch returns too little of a long pageIncrease max_query_budget (e.g. 64000)
Pages are slow to downloadReduce max_download_mb (e.g. 1, already default)
Server downloads too much garbageReduce max_download_mb (e.g. 1)

🤖 LLM Features

Optional, opt-in. When llm.enabled = false (the default), webgate is fully deterministic. Enable the [llm] block to unlock three extra capabilities.

🤔 When to enable LLM features
SituationRecommended setupTypical latency overhead
Fast answers, general researchLLM disabled (default) — BM25-ranked clean sources, zero latency overheadnone
Deep research on a complex topicSummarization on — get a cited Markdown report instead of raw pages+5–30s
Broad topic, one query isn't enoughExpansion + Summarization — LLM generates variants and synthesizes all results+6–35s
Result order matters more than speedLLM reranking on — semantic ordering at the cost of one extra LLM call per query+1–5s

Privacy: with LLM disabled, no data leaves your machine except web requests. With LLM enabled, cleaned search results (not raw HTML) are sent to the configured `base_ur

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx