跳转至

Exa 搜索

快速变化的技能。 Exa MCP 的工具名称、参数、账户限制可能会变化。在依赖特定的搜索模式、类别或实时爬取行为之前,请查看已发布的工具列表和最新的 Exa 文档。

通过 Exa MCP 服务器对网页内容、代码、企业和人物进行神经搜索。

何时激活

  • 当用户需要最新的网络信息或新闻时
  • 搜索代码示例、API 文档或技术参考资料时
  • 调研企业、竞争对手或市场参与者时
  • 搜索某个领域的专家资料或人物时
  • 为开发任务进行背景调研时
  • 当用户说“search for”“look up”“find”“what's the latest on”时

MCP 要求

需要配置 Exa MCP 服务器。请添加到 ~/.claude.json:

"exa-web-search": {
  "command": "npx",
  "args": ["-y", "exa-mcp-server"],
  "env": { "EXA_API_KEY": "YOUR_EXA_API_KEY_HERE" }
}

请在 exa.ai 获取 API 密钥。 当前仓库中的 Exa 配置记录了已发布的工具列表:web_search_exa 和 get_code_context_exa。 如果 Exa 服务器发布了更多工具,请在文档或提示中依赖之前确认准确名称。

核心工具

web_search_exa

用于最新信息、新闻或事实的通用网络搜索。

web_search_exa(query: "latest AI developments 2026", numResults: 5)

参数:

参数 类型 默认值 备注
query string 必需 搜索查询
numResults number 8 结果数量
type string auto 搜索模式
livecrawl string fallback 必要时优先实时爬取
category string 无 可选聚焦,如 company 或 research paper

get_code_context_exa

从 GitHub、Stack Overflow 和文档网站搜索代码示例和文档。

get_code_context_exa(query: "Python asyncio patterns", tokensNum: 3000)

参数:

参数 类型 默认值 备注
query string 必需 代码或 API 搜索查询
tokensNum number 5000 内容的 Token 数(1000-50000)

使用模式

web_search_exa(query: "Node.js 22 new features", numResults: 3)

代码调研

get_code_context_exa(query: "Rust error handling patterns Result type", tokensNum: 3000)

企业与人物调研

web_search_exa(query: "Vercel funding valuation 2026", numResults: 3, category: "company")
web_search_exa(query: "site:linkedin.com/in AI safety researchers Anthropic", numResults: 5)

技术细节调研

web_search_exa(query: "WebAssembly component model status and adoption", numResults: 5)
get_code_context_exa(query: "WebAssembly component model examples", tokensNum: 4000)

提示

  • 对于最新信息、企业搜索和广泛发现,使用 web_search_exa
  • 使用 site:、引用短语、intitle: 等搜索运算符来缩小结果范围
  • 对于精选代码片段使用较低的 tokensNum(1000-2000),对于全面上下文使用较高值(5000+)
  • 如果需要 API 用法或代码示例而不是普通网页,使用 get_code_context_exa
  • deep-research — 结合 firecrawl 和 exa 的完整调研工作流
  • market-research — 包含决策框架的商业导向调研

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 ev/ECC