Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Explore

  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Tags index
  • Submit a server
  • Pricing

Learn

  • Guides hub
  • What is MCP?
  • Install guide
  • Troubleshooting
  • Security
  • Blog
  • Blog RSS

Tools

  • All tools
  • Config generator
  • Config validator
  • MCP playground
  • OpenAPI β†’ MCP
  • Badge generator

For agents

  • API docs
  • Trust & traffic
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
  • Remote MCP β†— (opens in a new tab)

Company

  • About
  • Contact
  • X (@AllMCPs) β†— (opens in a new tab)
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on Buildlist
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 🧠 Knowledge & Memory
  3. Mcp Webgate
M
Health: Not checked yetWe have not completed a health check for this listing yet.Last checked 8/11/2026, 12:26:14 AM

Mcp Webgate

Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

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

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Install Config Generator

Choose your client
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-webgate": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-webgate"
      ]
    }
  }
}

πŸ’‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Install Directory Badge Claim listing Alternatives🧠 More in Knowledge & Memory

Documentation Overview

mcp-webgate

Python Version License MCP Protocol Latest Release Beta

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:

Code
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

Terminal
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:

Terminal
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:

config.json
{
  "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!

Code
Search the web for: latest news on AI regulation

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

πŸ” How it works

Code
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).

config.json
{ "url": "https://example.com/article", "max_chars": 32000 }
config.json
{
  "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.

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

Multiple queries run in parallel and are merged:

config.json
{
  "queries": ["VPN Linux setup", "best VPN Linux 2024"],
  "num_results_per_query": 5
}

Output without LLM β€” returns cleaned page content for each result:

config.json
{
  "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:

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

Output when LLM fails β€” error reason shown, full sources returned as fallback:

config.json
{
  "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:

Code
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_url. Point it at a local Ollama instance to keep everything on-device.

Latency trade-off: each enabled feature adds one LLM round-trip per query. Expansion adds ~1–5s; summarization adds ~5–30s depending on model and content volume. For interactive use, summarization with a fast local model (e.g. Gemma 3 4B) is a good starting point.

Setup

toml
[llm]
enabled  = true
base_url = "http://localhost:11434/v1"   # Ollama, OpenAI, LM Studio, vLLM, Groq...
api_key  = ""                            # empty for local models
model    = "gemma3:27b"
timeout  = 60                            # local 27B+ models may need up to 60s

Or with env vars:

json
"env": {
  "WEBGATE_LLM_ENABLED": "true",
  "WEBGATE_LLM_BASE_URL": "http://localhost:11434/v1",
  "WEBGATE_LLM_MODEL": "gemma3:27b",
  "WEBGATE_LLM_TIMEOUT": "60"
}

base_url accepts any OpenAI-compatible endpoint: OpenAI, Ollama, LM Studio, vLLM, Together AI, Groq, and others.

Query expansion

When you send a single query and expansion_enabled = true, the LLM automatically generates complementary search variants before hitting the backend. If you already pass multiple queries, this step is skipped.

Code
"best laptop for programming"
    ↓ expansion
["best laptop for programming 2024", "developer laptop recommendations", "laptop specs for coding"]
    ↓ all search in parallel

Falls back silently to your original query if the LLM fails.

Summarization

When summarization_enabled = true, the LLM reads all fetched pages and writes a structured Markdown report with inline citations. Your AI receives the report instead of the raw text.

  • Success: summary + citations (lean output β€” no raw content passed to your AI)
  • Failure: llm_summary_error with the reason + full sources as fallback (your AI can still work with the cleaned content)

The report length target is max_summary_words. When 0 (default), it is derived from max_query_budget / 5 β€” e.g. with a 32k budget, the target is ~6,400 words.

Reranking

Results are always reranked by BM25 (keyword overlap, zero cost) before being returned. Optionally, the LLM can do a second pass for semantic relevance:

TierWhenCost
BM25 (deterministic)AlwaysZero β€” pure math
LLM-assistedllm_rerank_enabled = trueOne LLM call per query

LLM reranking adds latency proportional to your LLM response time. Enable it only if result ordering matters more than speed.

Pipeline: clean β†’ BM25 rerank β†’ (LLM rerank) β†’ (LLM summarize) β†’ output

πŸ”— Integrations

mcp-webgate works with all major AI clients:

PlatformConfiguration GuideNotes
Claude DesktopIDE IntegrationDesktop application
Claude CodeIDE IntegrationCLI coding agent
Zed EditorIDE IntegrationNative MCP support
CursorIDE IntegrationRequires Agent mode
WindsurfIDE IntegrationGlobal config only
VSCodeIDE IntegrationVia Copilot or MCP extension
Gemini CLIAgent IntegrationGoogle's CLI agent
Claude CLIAgent IntegrationAnthropic's CLI agent

πŸ“¦ Installation

Via uvx (recommended β€” no install needed)

bash
uvx mcp-webgate

Via pip / uv

Terminal
pip install mcp-webgate
# or
uv add mcp-webgate

βš™οΈ Full Configuration

Ready-to-use config files are in examples/.

Resolution order

Code
CLI args  >  env vars  >  webgate.toml  >  defaults

Config is read once at startup; restart the server to apply changes.

You can configure webgate in three ways β€” mix and match as needed:

  • webgate.toml β€” checked at startup in ./webgate.toml then ~/webgate.toml
  • Env vars β€” WEBGATE_* prefix, always strings (MCP JSON requirement)
  • CLI args β€” --kebab-case, integers stay integers, ideal for multi-instance setups

Config file (webgate.toml)

toml
[server]
max_download_mb    = 1        # how many MB to download per page before cutting off
max_result_length  = 8000     # max chars per page in multi-source queries (no LLM)
max_query_budget   = 32000    # total char budget for a fetch, or input pool for a query
max_search_queries = 5        # max parallel queries per call
results_per_query  = 5        # results to fetch per query
search_timeout     = 8        # seconds before giving up on a page
oversampling_factor = 2       # fetch 2Γ— more candidates than needed (dedup reserve)
auto_recovery_fetch = false   # retry failed fetches from reserve pool
max_total_results  = 20       # hard cap: never fetch more than this many pages total
blocked_domains    = ["reddit.com", "pinterest.com"]
allowed_domains    = []       # if non-empty, only these domains are allowed
adaptive_budget    = false   # [EXPERIMENTAL] proportional char allocation based on BM25 rank
adaptive_budget_fetch_factor = 3  # generous pre-rank fetch multiplier

[backends]
default = "searxng"

[backends.searxng]
url = "http://localhost:8080"

[backends.brave]
api_key = "BSA..."

[backends.tavily]
api_key = "tvly-..."
search_depth = "basic"

[llm]
enabled  = true
base_url = "http://localhost:11434/v1"
api_key  = ""
model    = "llama3.2"
timeout  = 60
expansion_enabled     = true
summarization_enabled = true
llm_rerank_enabled    = false
max_summary_words     = 0     # 0 = max_query_budget / 5 (e.g. 6400 with budget 32000)
input_budget_factor   = 3     # LLM input = max_query_budget Γ— factor (default: 96000)

MCP client config examples

With env vars (all values must be strings):

config.json
{
  "mcpServers": {
    "webgate": {
      "command": "uvx",
      "args": ["mcp-webgate"],
      "env": {
        "WEBGATE_DEFAULT_BACKEND": "searxng",
        "WEBGATE_SEARXNG_URL": "http://localhost:8080",
        "WEBGATE_LLM_ENABLED": "true",
        "WEBGATE_LLM_TIMEOUT": "60"
      }
    }
  }
}

With CLI args (integers stay integers β€” ideal for running independent instances in Zed, Cursor, etc.):

config.json
{
  "mcpServers": {
    "webgate": {
      "command": "uvx",
      "args": [
        "mcp-webgate",
        "--searxng-url", "http://localhost:8080",
        "--llm-enabled",
        "--llm-model", "gemma3:27b",
        "--llm-timeout", "60"
      ]
    }
  }
}

Boolean flags support --flag / --no-flag syntax (e.g. --llm-enabled, --no-llm-rerank-enabled).

Full reference

CLI argumentEnv varDefaultDescription
--default-backendWEBGATE_DEFAULT_BACKENDsearxngActive backend
--searxng-urlWEBGATE_SEARXNG_URLhttp://localhost:8080SearXNG instance URL
--brave-api-keyWEBGATE_BRAVE_API_KEY(empty)Brave Search API key
--tavily-api-keyWEBGATE_TAVILY_API_KEY(empty)Tavily API key
--exa-api-keyWEBGATE_EXA_API_KEY(empty)Exa API key
--serpapi-api-keyWEBGATE_SERPAPI_API_KEY(empty)SerpAPI key
--serpapi-engineWEBGATE_SERPAPI_ENGINEgoogleSerpAPI engine (google, bing, ...)
--serpapi-glWEBGATE_SERPAPI_GLusSerpAPI country code
--serpapi-hlWEBGATE_SERPAPI_HLenSerpAPI language
--max-download-mbWEBGATE_MAX_DOWNLOAD_MB1Per-page download size cap (MB)
--max-result-lengthWEBGATE_MAX_RESULT_LENGTH8000Per-page char cap (no-LLM queries)
--max-query-budgetWEBGATE_MAX_QUERY_BUDGET32000Total char budget for fetch and query
--max-search-queriesWEBGATE_MAX_SEARCH_QUERIES5Max queries per call
--results-per-queryWEBGATE_RESULTS_PER_QUERY5Default results fetched per query
--search-timeoutWEBGATE_SEARCH_TIMEOUT8HTTP request timeout (seconds)
--oversampling-factorWEBGATE_OVERSAMPLING_FACTOR2Search result multiplier for dedup reserve
--auto-recovery-fetchWEBGATE_AUTO_RECOVERY_FETCHfalseEnable gap-filler (Round 2 fetch)
--max-total-resultsWEBGATE_MAX_TOTAL_RESULTS20Hard cap on total results per call
--debugWEBGATE_DEBUGfalseEnable structured debug logging
--log-fileWEBGATE_LOG_FILE(empty)Log file path (empty = stderr)
--traceWEBGATE_TRACEfalseInclude content in summarized citations; also activates debug logging
--adaptive-budgetWEBGATE_ADAPTIVE_BUDGETfalse[EXPERIMENTAL] Proportional char allocation based on BM25 rank
--adaptive-budget-fetch-factorWEBGATE_ADAPTIVE_BUDGET_FETCH_FACTOR3[EXPERIMENTAL] Generous pre-rank fetch multiplier
--llm-enabledWEBGATE_LLM_ENABLEDfalseEnable LLM features
--llm-base-urlWEBGATE_LLM_BASE_URLhttp://localhost:11434/v1OpenAI-compatible endpoint
--llm-api-keyWEBGATE_LLM_API_KEY(empty)API key (empty for local models)
--llm-modelWEBGATE_LLM_MODELllama3.2Model name
--llm-timeoutWEBGATE_LLM_TIMEOUT30LLM request timeout (seconds)
--llm-expansion-enabledWEBGATE_LLM_EXPANSION_ENABLEDtrueAuto-expand queries into variants
--llm-summarization-enabledWEBGATE_LLM_SUMMARIZATION_ENABLEDtrueLLM summary with citations
--llm-rerank-enabledWEBGATE_LLM_RERANK_ENABLEDfalseLLM-assisted reranking
--llm-max-summary-wordsWEBGATE_LLM_MAX_SUMMARY_WORDS0Summary word target (0 = auto)
--llm-input-budget-factorWEBGATE_LLM_INPUT_BUDGET_FACTOR3LLM input budget multiplier

πŸ”Œ Backends

BackendAuthNotes
SearXNGnoneSelf-hosted, recommended
Brave SearchAPI keyHigh quality, free tier available
TavilyAPI keyAI-oriented snippets, free tier available
ExaAPI keyNeural/semantic search, free tier available
SerpAPIAPI keyProxy for Google, Bing, DuckDuckGo and more, free tier available

SearXNG quickstart (Docker)

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

Then set WEBGATE_SEARXNG_URL=http://localhost:8080.

Exa notes

Exa uses neural (semantic) search by default β€” the primary reason to use it over keyword backends. use_autoprompt is hardcoded to false (not user-configurable) because mcp-webgate handles query expansion via its own LLM expander.

SerpAPI notes

engine selects the underlying search engine (google, bing, duckduckgo, yandex, yahoo). gl and hl significantly affect result quality for non-English queries.

πŸ› Debug mode

When enabled, every tool call logs a structured entry:

  • fetch: URL, raw KB downloaded, clean KB returned, elapsed ms
  • query: queries used, results requested/fetched/failed, raw MB, clean KB, total elapsed ms
server.ts
export WEBGATE_DEBUG=true             # log to stderr
export WEBGATE_LOG_FILE=/tmp/wg.log  # or log to file

πŸ›‘οΈ Protections summary

These protections are always active β€” they are the core value proposition and cannot be disabled.

What could go wrongHow webgate stops it
Page dumps 2 MB of HTMLmax_download_mb hard cap β€” download stops mid-stream, never buffered
Cleaned text is still hugemax_result_length char cap per page
Many results flood the contextmax_query_budget distributes a fixed total across all results
Too many pages fetchedmax_total_results hard cap
PDF / ZIP / DOCX requestedBinary extension filter runs before any network request
Slow or hanging connectionssearch_timeout + 5s connect timeout
Invisible Unicode tricks in contentFull regex sterilization pipeline (zero-width, BiDi, etc.)
Rate limiting (429 / 502 / 503)Exponential retry backoff, respects Retry-After header
Unwanted domainsblocked_domains / allowed_domains filter

πŸ“š Documentation Structure

Integration Guides

  • IDE Integration β€” Claude Desktop, Claude Code, Zed, Cursor, Windsurf, VSCode
  • Agent Integration β€” Gemini CLI, Claude CLI, custom agents
  • Advanced Features β€” BM25/LLM reranking internals, adaptive budget allocation

πŸ§ͺ Beta Status

mcp-webgate is in beta. Core functionality is stable and the server is used in production, but the configuration API may still change before 1.0.

Feedback is very welcome. If something doesn't work as expected, behaves oddly, or you have a use case that isn't covered:

β†’ Open an issue on GitHub

Bug reports, configuration questions, and feature requests all help shape the roadmap.

🀝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for detailed guidelines on:

  • Development setup and workflow
  • Code style and conventions
  • Testing requirements
  • Documentation standards
  • Pull request process

πŸ“„ License

MIT License β€” see LICENSE for details.

πŸ”— Links

  • GitHub Repository β€” Source code and issues
  • PyPI Package β€” Python Package Index
  • MCP Registry β€” Model Context Protocol Registry
  • MCP Protocol β€” Model Context Protocol specification

Need help? Check the documentation or open an issue on GitHub.

Related MCP Servers

View all in Knowledge & Memory View all alternatives
  • Moxie Docs MCP logoMoxie Docs MCP
    β˜… Featured

    MCP & Agent Skills for Automated Documentation, and codebase conventions + context

    🧠 Knowledge & Memory17 views
    Compare vs Moxie Docs MCP β†’
  • Mcp Server logoMcp Server

    Apple Developer Documentation with Semantic Search, RAG, and AI reranking for MCP clients

    🧠 Knowledge & Memory0 views
    Compare vs Mcp Server β†’
  • D
    Dakera Mcp

    Decay-weighted vector memory for AI agents β€” 83 MCP tools: store, recall, search, knowledge graphs.

    🧠 Knowledge & Memory0 views
    Compare vs Dakera Mcp β†’
  • A
    Agent Recall

    Correction-first agent memory. Precision KPI tracks if agents heed warnings. 5 layers, local-only.

    🧠 Knowledge & Memory1 views
    Compare vs Agent Recall β†’

Frequently Asked Questions about Mcp Webgate

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "mcp-webgate": { "command": "npx", "args": ["-y", "mcp-webgate"] } }

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>

Technical Specs & Signals

Category🧠Knowledge & Memory
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
25Quality signal: Emerging Β· 25/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools10/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge β€” we recheck it stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 🧠 Knowledge & Memory β†’Best MCP servers for Memory & Knowledge β†’Alternatives to Mcp Webgate β†’Install in Claude DesktopInstall in CursorInstall in VS Code