Web Search MCP Server
Enables AI assistants to search the web, fetch news, and retrieve page content via DuckDuckGo or Brave Search, with domain whitelisting and audit logging.
README
Web Search MCP Server
An Apify Actor that runs a persistent Model Context Protocol (MCP) server, giving AI assistants real-time web search capabilities. Connect Claude Desktop, Cursor, or any MCP-compatible AI client to search the web without leaving your workflow.
Features
- 🔍 search_web — Search the web via DuckDuckGo (free, no key) or Brave Search (higher quality)
- 📰 search_news — Search for recent news articles
- 📄 fetch_page — Fetch and extract clean text content from any URL
- 🔐 Domain whitelist — Restrict
fetch_pageto approved domains - 📊 Audit log — Optionally log all searches to an Apify dataset
- ⚡ Always-on — Runs in Apify Standby mode for persistent 24/7 availability
Quick Start
1. Run on Apify
- Go to the Apify Console and find this actor
- Click Try for free → configure inputs → Start
- Copy the Standby URL from the actor run logs (looks like
https://web-search-mcp.username.apify.actor)
2. Connect to Claude Desktop
Add the following to your Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"web-search": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://YOUR-STANDBY-URL/sse"]
}
}
}
Restart Claude Desktop and you'll see the tools appear in the interface.
3. Connect to Cursor / other MCP clients
Set the SSE URL to: https://YOUR-STANDBY-URL/sse
Input Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
defaultMaxResults |
integer | 10 |
Default number of results returned per search |
braveApiKey |
string | — | Optional Brave Search API key for better results |
enableFetchTool |
boolean | true |
Enable the fetch_page tool |
enableNewsTool |
boolean | true |
Enable the search_news tool |
allowedDomains |
string[] | [] |
Whitelist domains for fetch_page (empty = all allowed) |
logSearches |
boolean | false |
Log all queries to the Apify dataset |
MCP Tools Reference
search_web
Search the web and get ranked results.
Parameters:
query(string, required) — The search querymaxResults(integer, optional, default: 10) — Number of results (1–50)safeSearch(enum, optional) —strict,moderate, oroff
Returns: Ranked list of results with title, URL, and snippet.
search_news
Search for recent news articles.
Parameters:
query(string, required) — News search querymaxResults(integer, optional) — Number of articles (1–20)
Returns: List of news articles with publication time when available.
fetch_page
Fetch a web page and return its clean text content.
Parameters:
url(string, required) — Full URL to fetchmaxLength(integer, optional, default: 8000) — Max characters (500–50000)
Returns: Page title, meta description, and extracted body text.
API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/sse |
GET | MCP SSE connection endpoint |
/messages?sessionId=X |
POST | MCP message handler |
/health |
GET | Health check + active sessions |
/ |
GET | Server info and instructions |
Architecture
AI Client (Claude, Cursor, etc.)
│ SSE connection
▼
Express HTTP Server (:3000)
│
MCP Server (McpServer)
│
┌─────┴──────────┐
│ Search Tools │
└─────┬──────────┘
│
┌─────┴─────────────────────┐
│ DuckDuckGo HTML API │ (default, no key needed)
│ Brave Search REST API │ (optional, with API key)
└────────────────────────────┘
Local Development
git clone https://github.com/your-org/web-search-mcp
cd web-search-mcp
npm install
npm start
The server starts on http://localhost:3000. Connect any MCP client to http://localhost:3000/sse.
Example Usage (in Claude)
Once connected, you can ask Claude:
"Search for the latest news about AI regulations in Europe"
"What are the top Python web frameworks in 2025? Search the web and summarize."
"Fetch the content from https://example.com/blog/post and summarize the key points."
License
Apache 2.0 — see LICENSE
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。