ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

MCP Web Research

โดย opafexรุ่น 0.1.0i★ –iรันบนเครื่อง
ชื่อใน registryio.github.Opafex/mcp-web-research

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Web search (Brave) and SSRF-safe page fetching, extraction and comparison for agents

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ค้นข้อมูลและความจำของ AI
  • ต้องใส่ค่าเหล่านี้: BRAVE_SEARCH_API_KEY

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: BRAVE_SEARCH_API_KEY, WEB_RESEARCH_SEARCH_PROVIDER, USER_AGENT, SEARCH_CACHE_TTL, PAGE_CACHE_TTL, FETCH_TIMEOUT_MS, MAX_HTML_SIZE

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด 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": "ใส่ค่าของคุณ",
        "WEB_RESEARCH_SEARCH_PROVIDER": "ใส่ค่าของคุณ",
        "USER_AGENT": "ใส่ค่าของคุณ",
        "SEARCH_CACHE_TTL": "ใส่ค่าของคุณ",
        "PAGE_CACHE_TTL": "ใส่ค่าของคุณ",
        "FETCH_TIMEOUT_MS": "ใส่ค่าของคุณ",
        "MAX_HTML_SIZE": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add web-research --env BRAVE_SEARCH_API_KEY='ใส่ค่าของคุณ' --env WEB_RESEARCH_SEARCH_PROVIDER='ใส่ค่าของคุณ' --env USER_AGENT='ใส่ค่าของคุณ' --env SEARCH_CACHE_TTL='ใส่ค่าของคุณ' --env PAGE_CACHE_TTL='ใส่ค่าของคุณ' --env FETCH_TIMEOUT_MS='ใส่ค่าของคุณ' --env MAX_HTML_SIZE='ใส่ค่าของคุณ' -- npx -y @opafex/mcp-web-research

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "web-research": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-web-research"
      ],
      "env": {
        "BRAVE_SEARCH_API_KEY": "ใส่ค่าของคุณ",
        "WEB_RESEARCH_SEARCH_PROVIDER": "ใส่ค่าของคุณ",
        "USER_AGENT": "ใส่ค่าของคุณ",
        "SEARCH_CACHE_TTL": "ใส่ค่าของคุณ",
        "PAGE_CACHE_TTL": "ใส่ค่าของคุณ",
        "FETCH_TIMEOUT_MS": "ใส่ค่าของคุณ",
        "MAX_HTML_SIZE": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "web-research": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-web-research"
      ],
      "env": {
        "BRAVE_SEARCH_API_KEY": "ใส่ค่าของคุณ",
        "WEB_RESEARCH_SEARCH_PROVIDER": "ใส่ค่าของคุณ",
        "USER_AGENT": "ใส่ค่าของคุณ",
        "SEARCH_CACHE_TTL": "ใส่ค่าของคุณ",
        "PAGE_CACHE_TTL": "ใส่ค่าของคุณ",
        "FETCH_TIMEOUT_MS": "ใส่ค่าของคุณ",
        "MAX_HTML_SIZE": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • BRAVE_SEARCH_API_KEY ความลับ env
    Brave Search API key; enables web_search and research_topic (recommended)
  • WEB_RESEARCH_SEARCH_PROVIDER env
    Search provider: "brave" or "duckduckgo" (unofficial HTML scraper, explicit opt-in only)
  • USER_AGENT env
    User-Agent sent with every request (default identifies the bot and links to the repo)
  • SEARCH_CACHE_TTL env
    Search result cache TTL in seconds (default: 900)
  • PAGE_CACHE_TTL env
    Fetched page cache TTL in seconds (default: 3600)
  • FETCH_TIMEOUT_MS env
    Per-request timeout in milliseconds, across all redirect hops (default: 10000)
  • MAX_HTML_SIZE env
    Maximum bytes read from a page body (default: 1000000)

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub opafex ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ค้นข้อมูลและความจำของ AIi

  • ดาวมากกว่า 0% ของอีก 7264 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 74% ของอีก 7264 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 7264 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

MCP Web Research ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: BRAVE_SEARCH_API_KEY

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.0) เข้า registry 13 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Context7, Codebase Memory, Exa

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Context7

โดย upstash

ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว

บนเครื่องหรือคลาวด์★ 64,224MITอัปเดต เมื่อวาน
ติดตั้ง

Codebase Memory

โดย DeusData

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

รันบนเครื่อง★ 48,148MITอัปเดต 21 วันที่ผ่านมา
ติดตั้ง

Exa

โดย exa-labs

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

รันบนคลาวด์★ 5,213MITอัปเดต เดือนที่แล้ว
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

@opafex/mcp-web-research

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.

Installation

npx -y @opafex/mcp-web-research

Requires Node.js 20+. No other dependencies to install.

Quick Start

Claude Code
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" } } } }

Claude Desktop

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.

Tools

ToolWhat it doesNeeds a search provider
web_searchSearch the web; returns title, URL and snippet per resultYes
fetch_webpageFetch a URL and return its title and clean text, links, or bothNo
research_topicSearch a topic, fetch the top results, and compile the key sentences from each, by sourceYes
extract_structured_dataFetch a page and return the section around each requested field (e.g. pricing, contact)No
compare_pagesFetch 2–5 pages and compare them, optionally around one focus areaNo
server_infoServer name, version, tools and resources (built in, from @opafex/mcp-shared)No
web_search
ParameterTypeRequiredDescription
querystringYesSearch query
maxResultsnumberNo1–20, default 10
domainstringNoRestrict 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
ParameterTypeRequiredDescription
urlstringYeshttp or https URL
extractMode"text" \"links" \"all"NoDefault "text"
maxLengthnumberNoMaximum 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
ParameterTypeRequiredDescription
topicstringYesWhat to research
depth"quick" \"standard" \"deep"NoSearch 3 / 5 / 10 results and read 2,000 / 4,000 / 8,000 characters of each. Default "standard"
maxSourcesnumberNo1–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
ParameterTypeRequiredDescription
urlstringYesPage to read
fieldsstring[]YesField 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
ParameterTypeRequiredDescription
urlsstring[]Yes2–5 URLs
focusstringNoA 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.

Resources

ResourceDescription
web-research://statusSearch provider in use (or why search is unavailable), cache stats and configuration
web-research://cacheSearch queries currently cached

Search providers

ProviderHow to selectNotes
Brave Search API (recommended)Set BRAVE_SEARCH_API_KEYAn official API with a free tier. Up to 20 results per query.
DuckDuckGo HTML scraperSet WEB_RESEARCH_SEARCH_PROVIDER=duckduckgoOpt-in only — see below
noneNeither of the aboveweb_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.

Environment Variables

VariableTypeDefaultDescription
BRAVE_SEARCH_API_KEYstring—Brave Search API key. Enables web_search and research_topic
WEB_RESEARCH_SEARCH_PROVIDERbrave \duckduckgoBrave if a key is set, else noneChoose the search provider explicitly
USER_AGENTstringopafex-mcp-web-research/ (+https://github.com/Opafex/opafex-mcps)User-Agent sent with every request
FETCH_TIMEOUT_MSnumber10000Timeout per page, across all its redirect hops
MAX_HTML_SIZEnumber (bytes)1000000Bytes read from a page body; the download stops there
SEARCH_CACHE_TTLnumber (seconds)900 (15 min)How long search results are cached
PAGE_CACHE_TTLnumber (seconds)3600 (1 h)How long fetched pages are cached

Security

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:

  • the scheme is not http or https;
  • the host is localhost, *.localhost, or a cloud metadata name (metadata.google.internal);
  • the host is a literal IP — IPv4, or bracketed IPv6 — in a non-public range. Odd IPv4 spellings (http://2130706433/, http://0x7f.1/) are normalised before the check;
  • any address the hostname resolves to, IPv4 (A) or IPv6 (AAAA), is in a non-public range. One public A record does not excuse a private AAAA record;
  • the hostname cannot be resolved. The check fails closed: an address that could not be checked is not fetched.

Blocked ranges:

IPv4IPv6
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 privatefc00::/7 unique local
100.64.0.0/10 carrier-grade NATfe80::/10 link-local, fec0::/10 site-local
127.0.0.0/8 loopbackff00::/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 / benchmarking64: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, broadcastanything 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).

Limits

  • Text only. Pages must be text/*, application/xhtml+xml or application/json; PDFs, images and other binary types are refused.
  • No JavaScript. Pages are fetched as served. Content rendered client-side will be missing.
  • Regex-based HTML parsing. Fast and dependency-free, but not a full HTML parser; unusual markup can leak into the text.
  • Heuristic extraction. research_topic key points and extract_structured_data sections are keyword matching, not understanding.
  • In-memory cache, per process, lost on restart.
  • UTF-8 assumed. Pages in other encodings may decode with replacement characters.
  • Not a crawler. No robots.txt handling; it fetches the URLs it is given.

Development

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

Contributing

Found a bug or have a feature request? Open an issue.

Pull requests welcome — see the main repo for development setup.

License

MIT — see LICENSE.

ถาม PopNx