Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Web search (Brave) and SSRF-safe page fetching, extraction and comparison for agents
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
BRAVE_SEARCH_API_KEY, WEB_RESEARCH_SEARCH_PROVIDER, USER_AGENT, SEARCH_CACHE_TTL, PAGE_CACHE_TTL, FETCH_TIMEOUT_MS, MAX_HTML_SIZE「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"web-research": {
"command": "npx",
"args": [
"-y",
"@opafex/mcp-web-research"
],
"env": {
"BRAVE_SEARCH_API_KEY": "your-value",
"WEB_RESEARCH_SEARCH_PROVIDER": "your-value",
"USER_AGENT": "your-value",
"SEARCH_CACHE_TTL": "your-value",
"PAGE_CACHE_TTL": "your-value",
"FETCH_TIMEOUT_MS": "your-value",
"MAX_HTML_SIZE": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add web-research --env BRAVE_SEARCH_API_KEY=your-value --env WEB_RESEARCH_SEARCH_PROVIDER=your-value --env USER_AGENT=your-value --env SEARCH_CACHE_TTL=your-value --env PAGE_CACHE_TTL=your-value --env FETCH_TIMEOUT_MS=your-value --env MAX_HTML_SIZE=your-value -- npx -y @opafex/mcp-web-research動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"web-research": {
"command": "npx",
"args": [
"-y",
"@opafex/mcp-web-research"
],
"env": {
"BRAVE_SEARCH_API_KEY": "your-value",
"WEB_RESEARCH_SEARCH_PROVIDER": "your-value",
"USER_AGENT": "your-value",
"SEARCH_CACHE_TTL": "your-value",
"PAGE_CACHE_TTL": "your-value",
"FETCH_TIMEOUT_MS": "your-value",
"MAX_HTML_SIZE": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"web-research": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@opafex/mcp-web-research"
],
"env": {
"BRAVE_SEARCH_API_KEY": "your-value",
"WEB_RESEARCH_SEARCH_PROVIDER": "your-value",
"USER_AGENT": "your-value",
"SEARCH_CACHE_TTL": "your-value",
"PAGE_CACHE_TTL": "your-value",
"FETCH_TIMEOUT_MS": "your-value",
"MAX_HTML_SIZE": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
WEB_RESEARCH_SEARCH_PROVIDER envUSER_AGENT envSEARCH_CACHE_TTL envPAGE_CACHE_TTL envFETCH_TIMEOUT_MS envMAX_HTML_SIZE envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント opafex で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:BRAVE_SEARCH_API_KEY
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.1.0)がレジストリに届いたのは13 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
MCP server for web research — search the web, fetch pages as clean text, pull named sections out of a page, compare pages side by side, and run a two-stage "search then read the top results" pass.
No LLM is involved: research_topic and compare_pages organise extracted text, they do not generate it. Every page fetch is SSRF-checked, including every redirect hop.
Search uses the Brave Search API (free tier available). Without a key, the four page tools still work and the two search tools return an error telling you which variable to set.
npx -y @opafex/mcp-web-research
Requires Node.js 20+. No other dependencies to install.
claude mcp add web-research -e BRAVE_SEARCH_API_KEY=your-key -- npx -y @opafex/mcp-web-research
Or add it to .mcp.json in your project root:
{
"mcpServers": { "web-research": { "command": "npx", "args": ["-y", "@opafex/mcp-web-research"], "env": { "BRAVE_SEARCH_API_KEY": "your-key" } } } }
Add the same block to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": { "web-research": { "command": "npx", "args": ["-y", "@opafex/mcp-web-research"], "env": { "BRAVE_SEARCH_API_KEY": "your-key" } } } }
Omit BRAVE_SEARCH_API_KEY to run with the page tools only.
| Tool | What it does | Needs a search provider |
|---|---|---|
web_search | Search the web; returns title, URL and snippet per result | Yes |
fetch_webpage | Fetch a URL and return its title and clean text, links, or both | No |
research_topic | Search a topic, fetch the top results, and compile the key sentences from each, by source | Yes |
extract_structured_data | Fetch a page and return the section around each requested field (e.g. pricing, contact) | No |
compare_pages | Fetch 2–5 pages and compare them, optionally around one focus area | No |
server_info | Server name, version, tools and resources (built in, from @opafex/mcp-shared) | No |
web_search| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query |
maxResults | number | No | 1–20, default 10 |
domain | string | No | Restrict results to this domain (e.g. "example.com"); adds site: and filters the result URLs |
Result URLs that fail the SSRF check (below) are dropped before they are returned.
Example response
[
{ "title": "Model Context Protocol", "url": "https://modelcontextprotocol.io/", "snippet": "An open protocol that enables seamless integration between LLM applications and external data sources and tools." } ]
</details>
fetch_webpage| Parameter | Type | Required | Description | ||
|---|---|---|---|---|---|
url | string | Yes | http or https URL | ||
extractMode | "text" \ | "links" \ | "all" | No | Default "text" |
maxLength | number | No | Maximum characters of text returned, default 4000 |
Scripts, styles, and are removed. finalUrl is included when the page was reached through redirects.
Example response
{
"title": "Example Domain", "text": "Example Domain\nThis domain is for use in illustrative examples in documents.", "url": "http://example.com/", "fetchedAt": "2026-10-24T12:00:00.000Z" }
</details>
research_topic| Parameter | Type | Required | Description | ||
|---|---|---|---|---|---|
topic | string | Yes | What to research | ||
depth | "quick" \ | "standard" \ | "deep" | No | Search 3 / 5 / 10 results and read 2,000 / 4,000 / 8,000 characters of each. Default "standard" |
maxSources | number | No | 1–10 sources to fetch, default 5 |
Key points are the sentences that mention the topic's words, up to five per source. A source that cannot be fetched falls back to its search snippet.
extract_structured_data| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Page to read |
fields | string[] | Yes | Field names to look for (e.g. ["pricing", "features", "contact"]) |
For each field, returns the first line mentioning it and the ten lines after, up to 1,000 characters — or No " " section found on page. This is heading matching, not a schema extractor.
compare_pages| Parameter | Type | Required | Description |
|---|---|---|---|
urls | string[] | Yes | 2–5 URLs |
focus | string | No | A field to pull from every page (e.g. "pricing") |
A page that fails to fetch is listed with "(fetch failed)" and the reason; the others are still compared.
| Resource | Description |
|---|---|
web-research://status | Search provider in use (or why search is unavailable), cache stats and configuration |
web-research://cache | Search queries currently cached |
| Provider | How to select | Notes |
|---|---|---|
| Brave Search API (recommended) | Set BRAVE_SEARCH_API_KEY | An official API with a free tier. Up to 20 results per query. |
| DuckDuckGo HTML scraper | Set WEB_RESEARCH_SEARCH_PROVIDER=duckduckgo | Opt-in only — see below |
| none | Neither of the above | web_search and research_topic return an error naming BRAVE_SEARCH_API_KEY; the other tools work |
About the DuckDuckGo option. It parses the results page at html.duckduckgo.com. That is not an API: it breaks whenever DuckDuckGo changes its markup, it may be rate-limited or blocked, and DuckDuckGo's terms do not permit automated querying. It sends this server's honest user agent rather than pretending to be a browser, which makes blocking more likely. It is kept for personal experimentation; if you turn it on, you are responsible for complying with DuckDuckGo's terms. Use Brave for anything you depend on.
| Variable | Type | Default | Description | |
|---|---|---|---|---|
BRAVE_SEARCH_API_KEY | string | — | Brave Search API key. Enables web_search and research_topic | |
WEB_RESEARCH_SEARCH_PROVIDER | brave \ | duckduckgo | Brave if a key is set, else none | Choose the search provider explicitly |
USER_AGENT | string | opafex-mcp-web-research/ (+https://github.com/Opafex/opafex-mcps) | User-Agent sent with every request | |
FETCH_TIMEOUT_MS | number | 10000 | Timeout per page, across all its redirect hops | |
MAX_HTML_SIZE | number (bytes) | 1000000 | Bytes read from a page body; the download stops there | |
SEARCH_CACHE_TTL | number (seconds) | 900 (15 min) | How long search results are cached | |
PAGE_CACHE_TTL | number (seconds) | 3600 (1 h) | How long fetched pages are cached |
The page tools fetch URLs chosen by a model, from the machine the server runs on. Without protection, that machine's private network and cloud metadata service are one tool call away (server-side request forgery). Every fetch is checked first, and refused if:
http or https;localhost, *.localhost, or a cloud metadata name (metadata.google.internal);http://2130706433/, http://0x7f.1/) are normalised before the check;Blocked ranges:
| IPv4 | IPv6 |
|---|---|
0.0.0.0/8 this network | :: unspecified, ::1 loopback |
10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 private | fc00::/7 unique local |
100.64.0.0/10 carrier-grade NAT | fe80::/10 link-local, fec0::/10 site-local |
127.0.0.0/8 loopback | ff00::/8 multicast |
169.254.0.0/16 link-local, incl. cloud metadata 169.254.169.254 | ::ffff:0:0/96 IPv4-mapped — judged by the IPv4 address inside |
192.0.0.0/24, 198.18.0.0/15 reserved / benchmarking | 64:ff9b::/96 NAT64 and 2002::/16 6to4 — judged by the IPv4 address inside |
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 documentation | ::/96 IPv4-compatible, 64:ff9b:1::/48, 2001::/32 Teredo, 2001:db8::/32 |
224.0.0.0/4 multicast, 240.0.0.0/4 reserved, broadcast | anything outside global unicast 2000::/3 |
Redirects are followed by hand, and every hop is checked again — at most 5 hops. A public page that redirects to http://169.254.169.254/ is refused before the second request is made. Search result URLs are checked too, and dropped if they fail.
Known limit — DNS rebinding. The check resolves the hostname, then fetch resolves it again to connect. A hostile DNS server with a very short TTL could answer the two lookups differently. Closing that gap means pinning the connection to the checked address, which Node's built-in fetch does not expose without an extra dependency. If this server runs somewhere with sensitive internal services, also limit what it can reach at the network level (container network policy, egress firewall).
text/*, application/xhtml+xml or application/json; PDFs, images and other binary types are refused.research_topic key points and extract_structured_data sections are keyword matching, not understanding.npm run build # Compile TypeScript
npm run dev # Run with tsx (no build needed) npm test # Run tests (no network — fetch and DNS are faked) npm start # Run compiled server
Found a bug or have a feature request? Open an issue.
Pull requests welcome — see the main repo for development setup.
MIT — see LICENSE.