Zoom Search
MCP search and evidence tool for AI agents. Rewrites queries, zooms into source domains, and returns sourced answers with metrics.
README
Zoom Search
<table> <tr> <td align="center" colspan="3"> <h2>Better Answers, Bounded Extra Cost</h2> <strong>Direct search baseline vs Zoom Search workflow</strong> </td> </tr> <tr> <td align="center"><h3>Useful results</h3></td> <td align="center"><h3>Answer quality</h3></td> <td align="center"><h3>Extra budget</h3></td> </tr> <tr> <td align="center"><h2>1-5 -> 4-12</h2>more good sources</td> <td align="center"><h2>2.0-7.2 -> 7.8-8.7</h2>stronger final answers</td> <td align="center"><h2>+5.9s to +12.2s</h2>+2.3k to +5.1k tokens</td> </tr> </table>
<p align="center"> <img src="https://img.shields.io/badge/python-%3E%3D3.10-3776AB" alt="Python >=3.10" /> <img src="https://img.shields.io/badge/license-MIT-0F766E" alt="License: MIT" /> <img src="https://img.shields.io/badge/package-zoom--search-2563EB" alt="Package: zoom-search" /> <img src="https://img.shields.io/badge/tests-pytest-0F172A" alt="Tests: pytest" /> </p>
<p align="center"> <a href="#quickstart">Quickstart</a> · <a href="#agent-tool-example">Agent Tool</a> · <a href="./docs/agent-integration.md">Agents</a> · <a href="./docs/benchmarks.md">Benchmarks</a> · <a href="./docs/advanced-configuration.md">Advanced Configuration</a> </p>
Zoom Search is a search and evidence tool for AI agents. It helps agents rewrite search questions, gather broader web evidence, zoom into high-value source domains, and return sourced answers with metrics.
It is built for agentic applications that need stronger source discovery, traceability, and answer grounding than a single search call.
Why Zoom Search
- Agent search tool: expose structured answers, sources, warnings, and metrics for tool-calling agents.
- Better evidence gathering: rewrite agent questions into stronger search variants.
- Source-domain zoom-in: search broadly first, then focus on high-value domains.
- Traceable outputs: preserve source domains, duplicate provenance, warnings, and runtime metrics.
- MCP/LangGraph ready: use Zoom Search through MCP or LangGraph integrations.
- Provider-flexible: use built-in engines or custom OpenAI-compatible and native HTTP providers.
Install
pip install zoom-search
Quickstart
Run a deterministic local demo without API keys:
import asyncio
from zoom_search import search
async def main() -> None:
response = await search(
question="What hotels in Shenzhen have rooms with exercise bikes?",
demo_mode=True,
output_mode="answer_with_sources",
seed=7,
)
print(response.answer)
print(response.results)
asyncio.run(main())
Agent Tool Example
Install the MCP extra:
pip install "zoom-search[mcp]"
Add Zoom Search to your MCP client:
{
"mcpServers": {
"zoom-search": {
"command": "zoom-search-mcp",
"env": {
"ZOOM_SEARCH_LLM_ENGINE": "gemini",
"ZOOM_SEARCH_LLM_MODEL": "gemini-2.5-flash",
"ZOOM_SEARCH_LLM_API_KEY": "YOUR_GEMINI_API_KEY",
"ZOOM_SEARCH_SEARCH_ENGINE": "tavily",
"ZOOM_SEARCH_SEARCH_API_KEY": "YOUR_TAVILY_API_KEY"
}
}
}
}
Your agent can then call the zoom_search tool with a question argument:
{
"question": "Which vector databases support hybrid search and metadata filtering for Python apps?",
"output_mode": "answer_with_sources"
}
The tool returns sourced answers, source-domain zoom-in, warnings, and runtime metrics.
Or wrap it as a LangGraph/LangChain tool:
import os
from langchain.tools import tool
from zoom_search import search
@tool
async def zoom_search_evidence(query: str) -> dict:
response = await search(
question=query,
llm_engine=os.environ["ZOOM_SEARCH_LLM_ENGINE"],
llm_model=os.environ["ZOOM_SEARCH_LLM_MODEL"],
llm_api_key=os.environ["ZOOM_SEARCH_LLM_API_KEY"],
search_engine=os.environ["ZOOM_SEARCH_SEARCH_ENGINE"],
search_api_key=os.environ["ZOOM_SEARCH_SEARCH_API_KEY"],
output_mode="answer_with_sources",
)
return response.to_dict()
See docs/agent-integration.md for MCP client configuration and provider environment variables.
Benchmarks
Historical evaluations compare direct search against the Zoom Search agent workflow, showing better useful result coverage and stronger final answers with bounded extra time and token cost.
| Case | Good results | Answer quality | Extra time | Extra tokens |
|---|---|---|---|---|
| Playwright authentication reuse | 5 -> 7 | 6.6 -> 8.7 | +5.89s | +2,324 |
| GitHub Actions secrets inherit | 1 -> 4 | 2.0 -> 7.8 | +8.93s | +2,936 |
| Hydrangea pruning comparison | 4 -> 12 | 7.2 -> 8.4 | +12.17s | +5,073 |
See the full benchmark notes in docs/benchmarks.md.
Runnable examples for demo mode, streaming, conversation history, and LangGraph are available in the examples/ directory.
Documentation
- Advanced configuration: https://github.com/goofrey/zoom-search/blob/main/docs/advanced-configuration.md
- Agent integration: https://github.com/goofrey/zoom-search/blob/main/docs/agent-integration.md
- Development checks: https://github.com/goofrey/zoom-search/blob/main/docs/development.md
- Benchmarks: https://github.com/goofrey/zoom-search/blob/main/docs/benchmarks.md
License
Zoom Search is open source under the MIT 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 模型以安全和受控的方式获取实时的网络信息。