Multi-Provider Web Search Server
搜索与获取by guptabhishek
整合 Google、Tavily、DuckDuckGo 与 Brave 的 Web Search,支持自动回退,统一结果格式并提升搜索配额利用率。
什么是 Multi-Provider Web Search Server?
整合 Google、Tavily、DuckDuckGo 与 Brave 的 Web Search,支持自动回退,统一结果格式并提升搜索配额利用率。
核心功能 (1 个工具)
searchPerforms a web search using multiple providers (google, tavily, duckduckgo, brave).
README
MCP Search Server
This package exists to provide a unified MCP (Model Context Protocol) interface for multi-provider web search. It allows you to leverage the free monthly quota given by multiple search services (such as Google and Tavily) by automatically falling back between them, maximizing your available search capacity for automation and AI workflows.
Features
- Supports Google Custom Search, Tavily Search, DuckDuckGo Search, and Brave Search.
- Exposes a single MCP tool:
search. - Allows specifying a provider directly or uses a priority-based fallback (default: Tavily, Google, DuckDuckGo, Brave).
- Standardizes search results into a common format.
- Configurable via environment variables.
- Brave Search support (requires API key passed via MCP env, not .env).
Getting Free API Credentials
Tavily
- Go to Tavily and sign up for a free account.
- After verifying your email, log in to your Tavily dashboard.
- Navigate to the API section and generate a free API key.
- Copy the API key and use it as
TAVILY_API_KEYin your configuration.
Brave Search
- Go to Brave Search API and click "Get started".
- Sign in or create a Brave account.
- Follow the instructions to subscribe to the Brave Search API (free tier available).
- Once subscribed, go to your Brave dashboard and generate an API key.
- Copy the API key and use it as
BRAVE_API_KEYin your MCP client configuration (must be passed via MCP env, not .env).
Google Custom Search
- Go to the Google Cloud Console and create a new project (or select an existing one).
- Enable the Custom Search API for your project.
- Go to the Custom Search Engine and create a new search engine.
- For "Sites to search", you can enter
www.example.com(you can edit this later to search the entire web). - After creation, go to the control panel of your search engine and enable "Search the entire web" in the "Sites to search" section.
- For "Sites to search", you can enter
- Copy the Search Engine ID (CX) and use it as
GOOGLE_CX. - In the Cloud Console, go to APIs & Services > Credentials and create an API key.
- Use this API key as
GOOGLE_API_KEYin your configuration.
Setup
Installing via Smithery
To install multi-search-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @guptabhishek/multi-search-mcp --client claude
Installing Manually
After updating your configuration or credentials, run:
npm run build
npm start
-
Clone/Download: Get the server code.
-
Install Dependencies:
bashnpm install -
Configure API Keys (via MCP Client Settings):
- Instead of using a
.envfile, you can configure the API keys and optional port directly within your MCP client's JSON settings (e.g., Cline'scline_mcp_settings.json). - Add or modify the server entry for
mcp-search-serverand provide the necessary keys in theenvobject:
json{ "servers": { // ... other servers ... "search": { // Or your chosen name for this server "autoApprove": [], "disabled": false, // Set to false to enable "timeout": 120, "command": "npx", // Or the command to run the server "args": [ "-y", "mcp-search-server" ], "env": { // Required API Keys "TAVILY_API_KEY": "YOUR_TAVILY_API_KEY", "GOOGLE_API_KEY": "YOUR_GOOGLE_API_KEY", "GOOGLE_CX": "YOUR_GOOGLE_CUSTOM_SEARCH_ENGINE_ID", "BRAVE_API_KEY": "YOUR_BRAVE_SEARCH_API_KEY", // Brave Search API Key (must be passed via MCP env, not .env) // DuckDuckGo does not require an API key. // Optional: Configure providers and strategy "SEARCH_PROVIDERS": "tavily,google,duckduckgo,brave", // Comma-separated list of providers in desired priority "SEARCH_STRATEGY": "random", // Or "priority" // Optional Port Override "PORT": "3002" // Example: run on port 3002 instead of default }, "transportType": "stdio" // Assuming stdio transport } // ... other servers ... } }- Replace the placeholder values (
YOUR_..._KEY,/path/to/your/MCP/...) with your actual keys and the correct path to the builtindex.jsfile. - Ensure you provide keys for the providers you intend to use.
- Instead of using a
Running the Server
npm start
The server will start, typically on port 3001 (or the port specified in .env). It will print the available tool name and the status of loaded API keys.
MCP Tool: search
- Description: Performs a web search using multiple providers (Tavily, Google, DuckDuckGo, Brave) with priority fallback.
- Input Schema:
query(string, required): The search term.provider(string, optional, enum: ["google", "tavily", "duckduckgo", "brave"]): Specify a provider directly. If omitted, uses priority fallback.num_results(integer, optional, default: 10): Number of results desired (min: 1, max: 20).
- Output: A JSON object containing an array of content objects, where each object represents a structured search result:
json
{ "content": [ { "type": "search_result", // Or another appropriate type "title": "Result Title", "link": "https://example.com/result", "snippet": "Description or snippet of the result.", "provider": "tavily" // Indicates which provider returned this result }, // ... more results ] }
Connecting to Cline (or other MCP clients)
Add the server command (e.g., node build/index.js) or connection details to your MCP client's configuration. Cline should then detect the search tool.
Modifying Provider Priority
Edit the PROVIDER_LIST array in src/config.ts (and rebuild) to change the fallback order. The default is ['tavily', 'google', 'duckduckgo', 'brave'].
常见问题
Multi-Provider Web Search Server 是什么?
整合 Google、Tavily、DuckDuckGo 与 Brave 的 Web Search,支持自动回退,统一结果格式并提升搜索配额利用率。
Multi-Provider Web Search Server 提供哪些工具?
提供 1 个工具,包括 search。
相关 Skills
技能搜索
by daymade
通过CCPM直接搜索、查看、安装、更新和卸载Claude Code Skill,适合查找PDF、代码审查等场景插件,也能列出已装Skill并自动执行命令返回结果。
✎ 想给Claude Code找对技能时,用它能一站式搜索、安装和管理CCPM注册表里的能力,省去到处翻找的时间。
深度研究
by daymade
围绕既定模板拆题、多轮检索、整理证据表并交叉校验引用,产出格式严格、可追溯的研究报告,适合市场调研、竞品分析、政策追踪等高要求写作任务
✎ 把网页搜索、信息检索和研究分析串成一条链路,适合需要快速汇总线索、做深度判断的开发与研究工作。
标准研究员
by levnikolaevich
基于项目技术栈和 Epic/Story 需求,用 MCP Ref 检索相关 RFC、行业标准与架构模式,整理成可直接写入 Story Technical Notes 的研究结论与参考链接。
✎ 做技术方案时先让标准研究员帮你查标准与设计模式,基于 MCP Ref 产出可复用的技术注释研究,省下大量检索整理时间。
相关 MCP Server
网页抓取
编辑精选by Anthropic
Fetch 是 MCP 官方参考服务器,让 AI 能抓取网页并转为 Markdown 格式。
✎ 这个服务器解决了 AI 直接处理网页内容时格式混乱的问题,适合需要让 Claude 分析在线文档或新闻的开发者。不过作为参考实现,它缺乏生产级的安全配置,你得自己处理反爬虫和隐私风险。
Brave 搜索
编辑精选by Anthropic
Brave Search 是让 Claude 直接调用 Brave 搜索 API 获取实时网络信息的 MCP 服务器。
✎ 如果你想让 AI 助手帮你搜索最新资讯或技术文档,这个工具能绕过传统搜索的限制,直接返回结构化数据。特别适合需要实时信息的开发者,比如查 API 更新或竞品动态。不过它依赖 Brave 的 API 配额,高频使用可能受限。
Puppeteer 浏览器控制
编辑精选by Anthropic
Puppeteer 是让 Claude 自动操作浏览器进行网页抓取和测试的 MCP 服务器。
✎ 这个服务器解决了手动编写 Puppeteer 脚本的繁琐问题,适合需要自动化网页交互的开发者,比如抓取动态内容或做端到端测试。不过,作为参考实现,它可能缺少生产级的安全防护,建议在可控环境中使用。