
fatwang2/search2ai
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
AI 에이전트에 대한 셀프 호스팅 검색 게이트웨이. 공인된 검색, 뉴스 및 페이지 추출 서비스 제공 업체의 fallback. REST API, MCP 서버 및 TypeScript 라이브러리.
개요
검색 및 페이지 추출 서비스를 연결하여 구성합니다. 공급자가 제한되는 비율, 시간, 또는 실패할 때, 게이트웨이는 당신의 형성한 순서에 있는 다음 것을 시도하고 서비스 대답하는 보고 및 왜 다른 사람은 실패합니다. 검색 endpoints 반환 Structured 결과 및 페이지 내용 귀하의 에이전트 또는 응용 프로그램에 대 한 사용. 선택 사항 또한 응답하면서 웹을 검색하는 도구를 지원하는 모델이 있습니다. - : 제목, URL, 스니펫 및 날짜 및 내용과 같은 선택 필드. - : 구성 공급자에 따라 검색, 뉴스 및 크롤링. - : 서비스 URL 또는 자격 증명을 필요에 따라 공급; unconfigured 공급자는 자동으로 활성화되지 않습니다. - : 운영, 메모리 캐싱, Cloudflare KV 캐싱 당 별도의 체인. - : 로컬 MCP, 독립 HTTP 서비스, 직접 라이브러리 통화 및 마운트 가능한 호노 경로. - : 지원되는 Exa, Tavily, Search1API, SearXNG 및 Firecrawl 단일 페이지 통화는 전용 HTTP API / SDK 호환성 엔드포인트를 사용할 수 있습니다.
개요(AI 번역)
English · 한국어
검색2ai
**AI 에이전트 및 AI 클라이언트를위한 자체 호스팅 검색 게이트웨이. **
MCP, HTTP API 또는 JavaScript / TypeScript 라이브러리를 통해 구성하는 검색 및 페이지 추출 서비스를 연결합니다. 공급자가 제한되는 비율, 시간, 또는 실패할 때, 게이트웨이는 당신의 형성한 순서에 있는 다음 것을 시도하고 서비스 대답하는 보고 및 왜 다른 사람은 실패합니다.
검색 endpoints 반환 Structured 결과 및 페이지 내용 귀하의 에이전트 또는 응용 프로그램에 대 한 사용. 옵션 ** 채팅 프록시 ** 또한 응답하면서 웹을 검색하는 도구를 지원하는 모델을 할 수 있습니다.
-Consistent results: title, url, snippet], date], content]와 같은 옵션 필드.
- 검색, 뉴스 및 페이지 내용:
search,news],crawl], 구성된 공급자에 따라. - ** 공급자의 선택**: 필요한 서비스 URL 또는 자격 증명을 공급; unconfigured 공급자는 자동으로 활성화되지 않습니다. -Fallback and caching: 동작당 별도의 체인, in-memory 캐싱, Cloudflare KV 캐싱.
- Flexible Integration: 로컬 MCP, 독립형 HTTP 서비스, 직접 라이브러리 통화 및 Mountable Hono 노선.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
English · 简体中文
search2ai
A self-hosted search gateway for AI agents and AI clients.
Connect the search and page extraction services you configure through MCP, an HTTP API, or a JavaScript / TypeScript library. When a provider is rate limited, times out, or fails, the gateway tries the next one in your configured order and reports which service answered and why others failed.
Search endpoints return structured results and page content for your agent or application to use. An optional chat proxy also lets models that support tool calling search the web while answering.
- Consistent results:
title,url,snippet, and optional fields such asdateandcontent. - Search, news, and page content:
search,news, andcrawl, depending on the configured providers. - Your choice of providers: supply service URLs or credentials as needed; unconfigured providers are never enabled automatically.
- Fallback and caching: separate chains per operation, in-memory caching, and Cloudflare KV caching.
- Flexible integration: local MCP, a standalone HTTP service, direct library calls, and mountable Hono routes.
- Existing API clients: supported Exa, Tavily, Search1API, SearXNG and Firecrawl single-page calls can use dedicated HTTP API / SDK compatibility endpoints.
Looking for hosted search? Search1API is this project’s companion hosted service for search, news, and page extraction. Use its API directly or configure it as a search2ai provider. It also offers hosted compatible APIs to help existing integrations switch with minimal changes. The examples below use Search1API; you can choose any other supported provider.
Website · Quick start · Choose an integration · Providers and configuration · HTTP API · API / SDK compatibility · Deployment · Chat proxy · Upgrading · Development and contributing
Quick start
The local CLI and npm package require Node.js ≥ 22.18. Configure at least one provider that supports the operation you need. In the current version, search requests return 503 when no search provider is configured.
Create .env in your working directory with your search provider key:
SEARCH1API_KEY=your_provider_key
Start a local HTTP service:
npx -y search2ai serve --host 127.0.0.1
Search from another terminal:
curl http://localhost:3014/v1/search \
-H 'Content-Type: application/json' \
-d '{"query":"hono cloudflare workers","max_results":3}'
설치
npx -y search2ai mcp설정
{
"mcpServers": {
"search2ai": {
"command": "npx",
"args": ["-y", "search2ai", "mcp"],
"env": {
"SEARCH1API_KEY": "your_provider_key"
}
}
}
}