sara-protocol

Web Research MCP — Development skill for Claude Code

Development community

Read-only Web search + page extraction MCP server (Streamable HTTP).

How to install Web Research MCP

This entry records only its repository, not the path inside it, so there is no exact command to give. Open sara-protocol/web-research-mcp and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Web Research MCP does

Read-only Web search + page extraction MCP server (Streamable HTTP). Multi-client: Cursor / Claude Code / ChatGPT / custom agents.

Alternatives in Development

  • Google Ads Meta Ads MCP — Google Ads MCP server + Meta Ads MCP (Facebook Ads MCP) + GA4 + Search Console in one hosted remote MCP for Cl 3.2k ★
  • Obsidian MCP Server — Read, write, search, and surgically edit Obsidian vault notes, tags, and frontmatter via MCP 686 ★
  • Mcpx — MCPX 是运行在开发环境中的 MCP Runtime(网关) 370 ★

README

Web Research MCP Server — 可部署 MVP

一个只读 Web 研究 MCP 服务,使用 MCP 官方 TypeScript SDK 的 **Streamable HTTP** 传输。设计目标是让多个 AI 客户端连接同一个服务端,而不是给每个客户端重复配置一套爬取逻辑。

当前功能

  • web_search:通过 Brave Search API 搜索公开网页,返回标题、URL、摘要。
  • fetch_page:抓取公开 HTTP(S) 网页并提取可读正文。
  • web_research_bundle:先搜索,再抓取最多 3 个结果页,返回带 URL 的材料。
  • /mcp:远程 MCP 端点,必须使用 Bearer token。
  • /public/mcp:可选的无认证、只读端点,供 ChatGPT 网页端在只提供 OAuth/无认证选项时测试接入;默认关闭,并启用每 IP 频率限制和进程内每日搜索上限。
  • /healthz:健康检查。

架构

ChatGPT web ─────────── HTTPS ── /public/mcp (optional, no auth, rate-limited)
Claude Code ─────────── HTTPS ── /mcp (Bearer token)
Cursor ──────────────── HTTPS ── /mcp (Bearer token)
Your Agent / Responses API ───── /mcp (Bearer token)
                                  │
                         Web Research MCP
                         ├── Brave Search API
                         └── Public webpage fetch/extraction

远程客户端需要访问服务器的 HTTPS URL。Compose 默认只把服务绑定到服务器本机的 `127.0.0.1:8787`,建议在前面放 Caddy/Nginx/Cloudflare Tunnel 等 HTTPS 反向代理,不要直接把应用端口开放到公网。

1. 前置条件

  • Docker Engine + Docker Compose plugin。
  • 一个域名(生产部署建议)和 HTTPS 反向代理/隧道。
  • Brave Search API key(web_search 和 web_research_bundle 必需)。
  • 至少 32 字符的随机 MCP_BEARER_TOKEN。

示例生成 token:

openssl rand -hex 32

2. 配置和启动

Windows + Docker Desktop(PowerShell)

在解压目录打开 PowerShell,先运行:

.\scripts\windows-quickstart.ps1
notepad .env

脚本会复制 `.env.example` 并随机生成 `MCP_BEARER_TOKEN`;请在 `.env` 中填写 `BRAVE_SEARCH_API_KEY` 后保存。然后运行:

docker compose up -d --build
docker compose logs -f web-mcp
Invoke-RestMethod http://127.0.0.1:8787/healthz

Linux / macOS

cp .env.example .env
# Edit .env, add a random token and your Brave Search API key

编辑 `.env`:填写 `MCP_BEARER_TOKEN` 和 `BRAVE_SEARCH_API_KEY`。默认 `PUBLIC_MCP_ENABLED=false`,先启动受保护的端点:

docker compose up -d --build
docker compose logs -f web-mcp
curl http://127.0.0.1:8787/healthz

运行冒烟测试:

# Linux/macOS
export MCP_BEARE