Skip to content

search2ai

TrendingActive
fatwang2/search2ai

A self-hosted search gateway for AI agents: unified web search, news and page extraction over MCP, HTTP or a library, with provider fallback and Cloudflare KV caching.

View on GitHub
Stars
1.3k
Forks
199
Watchers
1.3k
Open issues
17

Overview

search2ai is a self-hosted search gateway for AI agents and AI clients. It connects the search and page-extraction services you configure and exposes them through MCP, an HTTP API, or a JavaScript/TypeScript library. When one provider is rate limited, times out or fails, the gateway tries the next in your configured order and reports which one answered.

Features

  • Consistent results — title, url, snippet, plus optional date and content
  • Search, news and page content via search, news and crawl, depending on your providers
  • Your choice of providers — nothing is enabled until you configure it
  • Fallback and caching — separate fallback chains per operation, in-memory caching and Cloudflare KV caching
  • Flexible integration — local MCP, a standalone HTTP service, direct library calls or mountable Hono routes
  • Compatibility with existing Exa, Tavily, Search1API, SearXNG and Firecrawl clients
  • Optional chat proxy so tool-calling models can search the web while answering

Similar open-source projects, ranked by shared categories and tags.

All AI projects →