š Advanced semantic search & AI integration toolkit with Exa API and MCP server support
npm install exaflow




AI-Powered Search ⢠Intelligent Content ⢠MCP Integration ⢠Lightning Fast
Semantic search toolkit for AI applications. Built with TypeScript, ExaFlow combines Exa's neural search with intelligent caching, real-time streaming, and MCP integration.
Perfect for:
- š¤ AI applications with enhanced search
- š¬ Research automation & multi-step pipelines
- š° Content analysis with live crawling
- š ļø Developer tools & CLI workflows
- š¢ Enterprise search with advanced filtering
bash
bun install -g exaflow
`$3
`bash
npm install -g exaflow
`$3
`bash
exaflow --version
`Setup
Create a
.env file with your Exa API key:
`env
EXA_API_KEY=your_exa_api_key_here
`Usage
$3
Get code & technical content with token limits.
`bash
exaflow context "React hooks patterns" --tokens 3000
exaflow context "TypeScript patterns" --tokens 5000
`$3
Semantic search with neural ranking.
`bash
exaflow search "machine learning trends 2024" --type neural --num-results 20
exaflow search "AI research papers" --type neural --include-contents
`$3
Extract content from URLs with live crawling.
`bash
exaflow contents --ids urls.txt --livecrawl always --subpages 5
exaflow contents --stdin --subpage-target "about,news"
`$3
Async search with enrichment & polling.
`bash
WEBSET_ID=$(exaflow websets create --output json | jq -r '.data.webset.id')
exaflow websets search --webset-id $WEBSET_ID --search-query "AI research"
exaflow websets poll --webset-id $WEBSET_ID
`$3
Multi-step research with structured output.
`bash
exaflow research --instructions "Analyze latest AI trends" --poll
exaflow research --instructions-file prompt.md --schema output-schema.json
`$3
Integrate with AI applications.
`bash
exaflow mcp-server
exaflow mcp-server --transport http --port 3000
exaflow-mcp # Global binary
`Options
`bash
-c, --concurrency # Parallel operations (1-20, default: 5)
-t, --timeout # Request timeout in ms (default: 30000)
--compact # Compact JSON output
--silent # Suppress event streaming
--output # Output format: json|text (default: json)
`Architecture
`
src/
āāā clients/ # Exa API clients
ā āāā base-client.ts
ā āāā exa-context.ts
ā āāā exa-search.ts
ā āāā exa-contents.ts
ā āāā exa-websets.ts
ā āāā exa-research.ts
āāā util/ # Utilities
ā āāā concurrency.ts
ā āāā http.ts
ā āāā http-cache.ts
ā āāā streaming.ts
ā āāā fs.ts
āāā cli.ts
āāā mcp-server.ts
āāā schema.ts
`Response Format
All commands return structured JSON with status, timing, citations, and data:
`json
{
"status": "success|partial|error",
"taskId": "unique-task-id",
"timing": {
"startedAt": "2024-01-01T00:00:00Z",
"completedAt": "2024-01-01T00:01:00Z",
"duration": 60000
},
"citations": [
{
"url": "https://example.com",
"title": "Article Title",
"snippet": "Relevant excerpt...",
"author": "Author Name",
"publishedDate": "2024-01-01T00:00:00Z"
}
],
"data": {}
}
`Development
`bash
bun install # Install dependencies
bun run build # Build project
bun run dev # CLI development
bun run dev:mcp # MCP server development
``- ā” 885,371 requests/second - Search throughput
- š¾ 85% cache hit rate - 40% API call reduction
- šŖ¶ <1MB footprint - Minimal memory overhead
- š 1-20 parallel ops - Configurable concurrency
- ā
Comprehensive input validation
- š Secure API key handling
- š Exponential backoff with jitter
- š”ļø Graceful degradation on failures
- ā±ļø Per-request timeout controls
---
MIT Ā© 2026 - See LICENSE for details.
- š Issues
- š¬ Discussions
- š¦ npm
- Exa - Neural search API
- Bun - JavaScript runtime
- MCP - AI integration
- TypeScript - Type safety
---





