Web search (Brave) and SSRF-safe page fetching, extraction and comparison for agents
Connect Runs on your machine
claude mcp add mcp-web-research -e BRAVE_SEARCH_API_KEY=<BRAVE_SEARCH_API_KEY> -e WEB_RESEARCH_SEARCH_PROVIDER=<WEB_RESEARCH_SEARCH_PROVIDER> -e USER_AGENT=<USER_AGENT> -e SEARCH_CACHE_TTL=<SEARCH_CACHE_TTL> -e PAGE_CACHE_TTL=<PAGE_CACHE_TTL> -e FETCH_TIMEOUT_MS=<FETCH_TIMEOUT_MS> -e MAX_HTML_SIZE=<MAX_HTML_SIZE> -- npx -y @opafex/[email protected]
{
"mcpServers": {
"mcp-web-research": {
"command": "npx",
"args": [
"-y",
"@opafex/[email protected]"
],
"env": {
"BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
"WEB_RESEARCH_SEARCH_PROVIDER": "<WEB_RESEARCH_SEARCH_PROVIDER>",
"USER_AGENT": "<USER_AGENT>",
"SEARCH_CACHE_TTL": "<SEARCH_CACHE_TTL>",
"PAGE_CACHE_TTL": "<PAGE_CACHE_TTL>",
"FETCH_TIMEOUT_MS": "<FETCH_TIMEOUT_MS>",
"MAX_HTML_SIZE": "<MAX_HTML_SIZE>"
}
}
}
}
{
"mcpServers": {
"mcp-web-research": {
"command": "npx",
"args": [
"-y",
"@opafex/[email protected]"
],
"env": {
"BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
"WEB_RESEARCH_SEARCH_PROVIDER": "<WEB_RESEARCH_SEARCH_PROVIDER>",
"USER_AGENT": "<USER_AGENT>",
"SEARCH_CACHE_TTL": "<SEARCH_CACHE_TTL>",
"PAGE_CACHE_TTL": "<PAGE_CACHE_TTL>",
"FETCH_TIMEOUT_MS": "<FETCH_TIMEOUT_MS>",
"MAX_HTML_SIZE": "<MAX_HTML_SIZE>"
}
}
}
}
{
"servers": {
"mcp-web-research": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@opafex/[email protected]"
],
"env": {
"BRAVE_SEARCH_API_KEY": "<BRAVE_SEARCH_API_KEY>",
"WEB_RESEARCH_SEARCH_PROVIDER": "<WEB_RESEARCH_SEARCH_PROVIDER>",
"USER_AGENT": "<USER_AGENT>",
"SEARCH_CACHE_TTL": "<SEARCH_CACHE_TTL>",
"PAGE_CACHE_TTL": "<PAGE_CACHE_TTL>",
"FETCH_TIMEOUT_MS": "<FETCH_TIMEOUT_MS>",
"MAX_HTML_SIZE": "<MAX_HTML_SIZE>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
BRAVE_SEARCH_API_KEYOptional, secret | Brave Search API key; enables web_search and research_topic (recommended) |
WEB_RESEARCH_SEARCH_PROVIDEROptional | Search provider: "brave" or "duckduckgo" (unofficial HTML scraper, explicit opt-in only) |
USER_AGENTOptional | User-Agent sent with every request (default identifies the bot and links to the repo) |
SEARCH_CACHE_TTLOptional | Search result cache TTL in seconds (default: 900) |
PAGE_CACHE_TTLOptional | Fetched page cache TTL in seconds (default: 3600) |
FETCH_TIMEOUT_MSOptional | Per-request timeout in milliseconds, across all redirect hops (default: 10000) |
MAX_HTML_SIZEOptional | Maximum bytes read from a page body (default: 1000000) |
Details
| Package | @opafex/[email protected] (NPM, stdio) |
| First published | 24 Oct 2026 |
| Last updated | 24 Oct 2026 |
| Registry name | io.github.Opafex/mcp-web-research |
More search and web servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
