
Intercept
io.github.bighippoman由 GitHub 账号 bighippoman 发布v3.0.8更新于 Oct 24, 2026
Give your AI the ability to read the web. Fetches URLs as clean markdown with multi-tier fallback.
概览
一个本地 MCP 服务器,让助手把网页抓取为干净的 Markdown,并提供站点专用处理、多级回退、搜索和结构化提取。
- 可以做什么
- 抓取单个网址并返回 Markdown,覆盖推文、YouTube、arXiv、PDF、维基百科和 GitHub 页面,带多级回退和长内容分页;直接图片网址以图片块返回,供助手的视觉模型读取。并行抓取最多 10 个网址,可设置每个网址的长度上限。搜索网页,可按站点或时间范围限定,并提供搜索加抓取的组合研究调用。从页面按 CSS 选择器提取指定字段或 HTML 表格,返回结构化 JSON。以资源形式列出本次会话最近抓取的网址,并提供研究与文章提取提示词。
- 适用场景
- 适合助手需要读取经常拦截普通请求的网页内容,或希望用一次调用完成搜索加阅读的场景。适用于文章、论文、视频、代码仓库和文档的资料调研。
- 运行要求
- 通过 npx 以 stdio 在本地运行,需要 Node.js 20 或更高版本。抓取无需任何密钥。可选:BRAVE_API_KEY 或 SEARXNG_URL 用于搜索,GITHUB_TOKEN 提高 GitHub API 限额,CF_API_TOKEN 与 CF_ACCOUNT_ID 用于 JavaScript 较重的页面,以及出站流量的代理设置。
安装
在 SourceWeft 中
- 打开 控制台中的 Intercept,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
intercept-mcp
Give your AI the ability to read the web. One command, no API keys required.
Without it, your AI hits a URL and gets a 403, a wall, or a wall of raw HTML. With intercept, it almost always gets the content — clean markdown, ready to use.
Handles tweets, YouTube videos (with transcripts when available), arXiv papers, PDFs, Wikipedia articles, and GitHub repos. If the first strategy fails, it tries up to 14 more before giving up.
Works with any MCP client: Claude Code, Claude Desktop, Codex, Cursor, Windsurf, Cline, and more.
[intercept-mcp MCP server]Install
Claude Code
Codex
Cursor
Settings → MCP → Add Server:
Windsurf
Settings → MCP → Add Server → same JSON config as above.
Claude Desktop
Add to your claude_desktop_config.json:
Other MCP clients
Any client that supports stdio MCP servers can run npx -y intercept-mcp.
No API keys needed for the fetch tool.
How it works
URLs are processed in four stages:
1. Site-specific handlers
Known URL patterns are routed to dedicated handlers before the fallback pipeline:
The GitHub API endpoints work unauthenticated (60 requests/hour). Set GITHUB_TOKEN to raise the limit.
2. Shared cache (agentsweb.org)
After specialized handlers, public requests check agentsweb.org for a complete result within the requested freshness window. Partial, stale, mismatched, and blocked responses are rejected. Cache latency depends on the network and storage location.
Complete public live retrievals can contribute refresh hints. agentsweb verifies a page through its own retrieval pipeline before publishing it. Confirmations do not reset retrieval time. Authenticated, signed, and GitHub-token requests never use the public cache.
Opt out entirely with INTERCEPT_SHARED_CACHE=false, or use read-only mode (consume but never contribute) with INTERCEPT_CACHE_READ_ONLY=true.
agentsweb.org API
agentsweb.org also exposes standalone endpoints for direct use:
/web?q=— search the web/research?q=— search + fetch + cache in one call/fetch?url=— fetch on demand, auto-cached
See agentsweb.org/docs for full API documentation.
3. Fallback pipeline
If no handler matches (or the handler returns nothing), the URL enters the multi-tier pipeline:
A successful hosted result stops a slower provider after a 200 ms comparison window. Repeated provider failures trigger a short cooldown. Direct-host health is tracked per host. Historical snapshots never outrun live sources; noCache disables archives unless allowArchive is explicitly true.
4. Caching
Results are cached in-memory with TTL (60 min for successes, 5 min for failures). Max 250 entries with LRU eviction. Failures are cached by retrieval policy, so a shallow failed attempt does not prevent a later broader retry. Duplicate in-flight requests share work while retaining independent cancellation. All three knobs are configurable via INTERCEPT_CACHE_TTL_MS, INTERCEPT_CACHE_FAILURE_TTL_MS, and INTERCEPT_CACHE_SIZE.
Tools
fetch
Fetch a URL and return its content as clean markdown.
url(string, required) — URL to fetchmaxTier(number, optional, 1-5) — Stop at this tier for speed-sensitive casesmaxLength(number, optional, default 50000) — Maximum characters to returnstartIndex(number, optional, default 0) — Character offset for paginating long contentnoCache(boolean, optional) — Skip session and shared caches and fetch livetimeoutMs— Overall deadline, including downloads (default 25000; research 35000)maxAgeSeconds— Maximum cache age (default 3600; 0 forces retrieval)allowArchive— Permit labeled historical fallbacks (disabled bynoCacheunless explicitly enabled)
Long pages are truncated at maxLength with a notice telling the agent which startIndex continues the content. Structured output reports source, quality, contentLength, truncated, nextStartIndex, and cacheAgeSeconds so agents can branch on them programmatically. It also reports completeness, sourceKind, retrievedAt, verifiedAt when available, canonicalUrl, contentHash, and title. Research includes verbatim relevant passages with offsets and citation URLs; set passagesOnly to return those excerpts instead of full documents.
Direct image URLs (.png, .jpg, .gif, .webp, up to 5 MB) are returned as an MCP image block instead of text, so the agent's own vision model can read charts, diagrams, screenshots, and scanned documents. The structured output reports source: "image", mimeType, and bytes.
fetch_batch
Fetch up to 10 URLs in parallel, each through the same handler/fallback chain.
urls(string[], required, 1-10) — URLs to fetchmaxTier,noCache— as infetchmaxLength(number, optional, default 20000) — Per-URL character budget
research
Search the web and fetch the top results in one call — replaces a search followed by several fetches.
query(string, required) — Search querycount(number, optional, 1-5, default 3) — Results to fetchmaxLength(number, optional, default 20000) — Per-result character budgetsite(string, optional) — Restrict to a domainfreshness(string, optional) —day,week,month, oryear
search
Search the web and return results.
query(string, required) — Search querycount(number, optional, 1-20, default 5) — Number of resultssite(string, optional) — Restrict results to a domainfreshness(string, optional) —day,week,month, oryearpage(number, optional, 1-10) — Results page for pagination
Uses Brave Search API if BRAVE_API_KEY is set, then SearXNG if SEARXNG_URL is set, then DuckDuckGo as an unreliable last resort. freshness and page are ignored by the DuckDuckGo fallback.
extract
Extract specific values from a page as JSON instead of markdown prose — for when you need particular data, not the whole page. Honors per-domain auth and proxies.
url(string, required) — The URL to extract fromselectors(object, optional) — Map of field name → CSS selector. Each value is either a selector string (returns the first match's text) or{ selector, attr?, all? }—attrextracts an attribute (e.g.href),all: truereturns every match as an array.tables(boolean, optional) — Convert every HTML table to an array of row objects (defaults to true when noselectorsare given).
Returns the extracted fields and/or tables as structured output.
Resources
intercept://session/recent
Markdown list of URLs fetched and cached in this session, most recent first. Re-fetching any of them is instant.
Prompts
research-topic
Search for a topic and fetch the top results for a multi-source summary.
topic(string) — The topic to researchdepth(string, default "3") — Number of top results to fetch
extract-article
Fetch a URL and extract the key points from the content.
url(string) — The URL to fetch and summarize
Environment variables
Search: Has a DuckDuckGo fallback but it's rate-limited and unreliable. For production use, self-host SearXNG and set SEARXNG_URL (see below), or get a Brave Search API key.
Fetch: Works without any keys. Set CF_API_TOKEN + CF_ACCOUNT_ID to enable Cloudflare Browser Run (formerly Browser Rendering) for JavaScript-heavy pages (SPAs, React sites).
Stealth fetch (USE_STEALTH_FETCH)
Use at your own risk. When enabled, this adds a fetcher that impersonates real browser TLS fingerprints (Chrome/Firefox cipher suites, HTTP/2 settings, header ordering) using got-scraping. This can bypass bot detection and CAPTCHA triggers on sites that would otherwise block automated requests.
This fetcher runs at tier 3 after the regular raw fetch. If the raw fetch gets blocked (CAPTCHA, Cloudflare challenge, 403), the stealth fetcher retries with browser impersonation.
This may violate the terms of service of some websites. The authors of intercept-mcp take no responsibility for how this feature is used. It is disabled by default and must be explicitly opted into.
Challenge solving (FLARESOLVERR_URL)
The stealth fetcher impersonates a browser's TLS fingerprint, but it can't execute a JavaScript challenge — so sites protected by a Cloudflare "Checking your browser" / DDoS-Guard interstitial still block it. FlareSolverr runs a real headless browser that solves the challenge and returns the page HTML.
Run it (Docker):
Then set FLARESOLVERR_URL=http://localhost:8191. It runs at tier 3 as a last resort after the raw and stealth fetchers, and only when this variable is set. Solving a challenge can take 30–60s, so it's the slowest fetcher — but it recovers pages nothing else can.
Commercial web unlocker (WEB_UNLOCKER_URL)
For the hardest targets — sites that need residential IP rotation and real-browser rendering and CAPTCHA handling together — a commercial unlocker is the pragmatic answer. intercept-mcp supports any unlocker that exposes a "GET this URL, return the HTML" endpoint, via a template with a {url} placeholder that holds your API key:
intercept substitutes the (URL-encoded) target for {url} and converts the returned HTML (or JSON wrapping it) to markdown. It runs at tier 3 as a paid last resort after the free fetchers, only when this variable is set — and your credentials in the template are only ever sent to the unlocker, never to the target. Bright Data's proxy-based Web Unlocker is just an authenticated proxy, so use HTTPS_PROXY / INTERCEPT_PROXIES for that instead. This bills per request.
Bring-your-own proxy (HTTPS_PROXY)
If raw fetches start getting flagged, the most effective fix is usually a clean outbound IP — not a fancier fingerprint. intercept-mcp honors the standard HTTPS_PROXY / HTTP_PROXY / NO_PROXY env vars, so you can route all outbound traffic through whatever proxy you already have:
This works with any HTTP(S) proxy — a self-hosted Squid, a Tailscale exit node, a $5 VPS running 3proxy, or commercial residential proxies (Bright Data, Oxylabs, etc.). The stealth fetcher and got-scraping calls also pick this up automatically.
Proxy rotation (INTERCEPT_PROXIES)
A single proxy still presents a single IP, which can itself get flagged under load. Set INTERCEPT_PROXIES to a comma- or space-separated list and intercept-mcp round-robins across them, automatically retrying through the next proxy when a request comes back blocked (HTTP 403, 429, 451, 503) or errors:
Requests spread across the list, and a blocked response is retried through a different egress (up to 3 attempts) before giving up — so a handful of cheap proxies, or a rotating residential endpoint listed multiple times, behave like a pool. INTERCEPT_PROXIES takes precedence over HTTPS_PROXY, applies per request (so the stealth and archive.ph got-scraping calls rotate too), and accepts HTTP(S) proxies. Invalid entries are ignored.
Per-domain authentication (INTERCEPT_AUTH)
Most of the web is behind a login. INTERCEPT_AUTH lets you attach your own headers or cookies to requests for a specific origin, so the fetch tools can read content you're legitimately signed in to — a paid subscription, a private dashboard, an intranet, an authenticated API.
It's a JSON object mapping a domain to a header map. A domain also matches its subdomains:
To get a cookie: open the site logged-in, open DevTools → Network, copy the Cookie request header from any request to that domain.
Security model — read this before using it
- Credentials only ever go to the configured origin. Headers are keyed on the actual host being contacted. Requests matching per-domain authentication use direct origin retrieval only. Redirects are revalidated and custom credentials are stripped across origins.
- Authenticated responses never touch the shared cache. When a request matches an
INTERCEPT_AUTHentry, intercept does not read from or write to the public agentsweb.org cache for that URL — so your private/paid content is never published, and you always get your authenticated view rather than a stranger's anonymous copy. (The in-process session cache still applies.) - Treat the value as a secret. It contains live session tokens. Environment variables are visible to the process and its children and may be captured in shell history or process listings — prefer a secrets manager or a non-committed env file, and never commit it. Cookies expire, so you'll periodically need to refresh them.
- You are responsible for authorized use. Only supply credentials for accounts you own or are permitted to use, and respect each site's terms of service. intercept simply forwards the headers you provide.
Self-hosting SearXNG
For reliable search, self-host SearXNG with Docker. A config is included in the repo:
Then set SEARXNG_URL=http://localhost:8888. No rate limits, no CAPTCHAs, aggregates Google + Bing + DuckDuckGo + Wikipedia + Brave.
Or use any existing SearXNG instance — just set SEARXNG_URL to its URL.
URL normalization
Incoming URLs are automatically cleaned:
- Strips 60+ tracking params (UTM, click IDs, analytics, A/B testing, etc.)
- Removes hash fragments
- Upgrades to HTTPS
- Cleans AMP artifacts
- Preserves functional params (
ref,format,page,offset,limit)
SSRF protection
Agents pass URLs taken from untrusted web content, so the fetch tools refuse anything pointing at local or internal infrastructure: loopback and private IPv4/IPv6 ranges, link-local addresses (including the 169.254.169.254 cloud metadata endpoint), CGNAT, multicast/reserved ranges, and local hostnames (localhost, *.local, *.internal, *.home.arpa). Literal IPs are checked, including alternate notations (decimal, hex) normalized by the URL parser; DNS is not resolved, so public hostnames pointing at private IPs are not caught.
Content quality detection
Each fetcher result is scored for quality. Automatic fail on:
- CAPTCHA / Cloudflare challenges
- Login walls
- HTTP error pages in body
- Content under 200 characters
Requirements
- Node.js >= 22.18.0
- No API keys required for basic use
Validate and release
npm run check runs deterministic regression tests and builds the package. npm run test:live is the optional network smoke suite; provider availability can vary. npm pack produces a reviewable release tarball. npm publish runs the deterministic checks again. CI tests Node.js 22 and 24.
Version 6 preserves functional URL variants and changes fallback ordering to live-first. Consumers should use completeness and sourceKind, rather than assuming every successful result is a complete live document. Source content is untrusted data; extraction quality is not an instruction-safety guarantee.
来源:README.md,提交 0c16893
工具
0版本历史
1- v3.0.8最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分