exa-search
Exa Search
通过 Exa MCP (https://mcp.exa.ai/mcp) 执行 web_search_exa,并解析 text/event-stream 响应。
环境变量 EXA_API_KEY 可选, 可在 https://dashboard.exa.ai/api-keys 获取
Usage
node {baseDir}/scripts/search.mjs "today is 2026-02-09
美国最新娱乐新闻"
node {baseDir}/scripts/search.mjs "美国最新娱乐新闻" --num-results 5 --type auto --livecrawl fallback
node {baseDir}/scripts/search.mjs "美国最新娱乐新闻" --exa-api-key YOUR_EXA_KEY
EXA_API_KEY=YOUR_EXA_KEY node {baseDir}/scripts/search.mjs "美国最新娱乐新闻"
Options
--type <value>: Exa 搜索类型,默认auto--num-results <number>: 返回条数,默认5--livecrawl <value>: 实时抓取策略,默认fallback--exa-api-key <key>: 可选 API Key;传入后会自动拼接到 URL?exaApiKey=...--endpoint <url>: 可选 MCP endpoint,默认https://mcp.exa.ai/mcp--timeout <ms>: 请求超时毫秒,默认30000--raw: 输出原始text/event-stream,不做解析
Notes:
https://mcp.exa.ai/mcp?exaApiKey=YOUR_EXA_KEY为可选写法- 如果
--endpoint已包含exaApiKey,脚本不会重复追加 - 默认输出会提取
event: message的dataJSON 中result.content[].text
More from xream/scripts
pollinations-image-gen
Generate images using the Pollinations.ai API. Supports models such as flux, zimage, imagen-4, klein, klein-large, gptimage (free), and seedream, kontext, nanobanana, gptimage-large (paid). Use when the user asks to generate, create, or draw images from text prompts.
33ollama-web
Use Ollama Cloud web APIs for single-query web search and single-page web fetch. Requires OLLAMA_API_KEY and uses shell HTTP requests, preferably curl.
3fetch-webpage
Fetch webpages into Markdown by URL, with a selectable --provider parameter for pure.md, defuddle.md, markdown.new, or r.jina.ai.
1google-search
Use this tool when you need up-to-date information from the internet. It grounds the model with real-time Google Search results across languages, improving factual accuracy and enabling responses with verifiable citations beyond the model's knowledge cutoff.
1