brightdata-local-search
하는 일
이 스킬은 AI 에이전트가 Bright Data로 로컬 웹 검색 엔진을 설정하고 실행하도록 돕습니다. 자체 도구를 통해 검색 엔진 결과를 얻고 싶은 개발자를 위한 것입니다.
사용하는 경우
- ✓자체 로컬 검색 도구로 웹을 검색하고 싶을 때.
- ✓여러 검색 엔진의 결과를 순위화하고 정리해야 할 때.
- ✓프로젝트에 Bright Data의 SERP API를 설정하는 경우.
스킬 링크
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/brightdata-local-search/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“앱에서 웹을 검색할 수 있도록 Bright Data로 로컬 검색 서버를 설정해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 unfancy-search 프로젝트를 클론하고, Bright Data 키와 선택 사항인 Anthropic 키를 추가한 뒤, Docker나 Node.js로 시작합니다. 그다음 로컬 엔드포인트로 검색을 실행합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Bright Data Local Search
Run powerful web searches locally using Bright Data's SERP API. This skill sets up the unfancy-search pipeline — a local search engine with query expansion, multi-engine SERP retrieval, RRF reranking, deduplication, and domain clustering.
Important: This skill uses the LOCAL version only. Do not use the hosted endpoint.
Prerequisites
- Bright Data account with SERP API access
- Anthropic API key (for query expansion, optional)
- Docker (recommended) or Node.js 18+ with pnpm
Setup
Step 1: Clone and Configure
git clone https://github.com/yaronbeen/unfancy-search.git
cd unfancy-search
cp .env.example .env
Step 2: Set Environment Variables
Edit .env with your credentials:
BRIGHT_DATA_API_TOKEN=your_brightdata_token
BRIGHT_DATA_SERP_ZONE=serp_api1
ANTHROPIC_API_KEY=your_anthropic_key # Optional: enables AI query expansion
Get your Bright Data token from: https://brightdata.com (SERP API section)
Step 3: Start the Local Server
Docker (recommended):
docker compose up -d
# Server runs at http://localhost:3000
Node.js:
pnpm install
pnpm dev
# Server runs at http://localhost:3000
API Endpoints
All requests go to http://localhost:3000:
| Endpoint | Method | Description |
|---|---|---|
/api/search |
POST | Start a search job |
/api/search-status/{jobId} |
GET | Poll for results |
/api/baseline |
POST | Trigger baseline collection |
/api/baseline-status/{id} |
GET | Poll baseline progress |
Running a Search
Step 1: Submit Search
curl -X POST http://localhost:3000/api/search \
-H "Content-Type: application/json" \
-d '{"query": "your search term"}'
The response returns a jobId.
Step 2: Poll for Results
curl http://localhost:3000/api/search-status/{jobId}
Poll every 3 seconds until status is "done".
Search Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
query |
string | required | Search query |
expand |
boolean | false |
Enable AI query expansion via Claude |
research |
boolean | false |
Research mode (12 sub-queries for max coverage) |
engines |
string[] | all | SERP engines to use |
geo |
string | — | Geographic region filter |
count |
number | 10 | Max results (up to 10) |
includeDomains |
string[] | — | Only include results from these domains |
excludeDomains |
string[] | — | Exclude results from these domains |
Search Modes
- Basic (
expand: false): Single query, fastest, no AI cost - Expanded (
expand: true): Claude Haiku generates 3 sub-queries for broader coverage - Research (
research: true): 12 sub-queries for maximum coverage
Usage Examples
Basic Search from an Agent
# Start search
JOB_ID=$(curl -s -X POST http://localhost:3000/api/search \
-H "Content-Type: application/json" \
-d '{"query": "best practices for API rate limiting"}' | jq -r '.jobId')
# Poll until done
while true; do
RESULT=$(curl -s http://localhost:3000/api/search-status/$JOB_ID)
STATUS=$(echo $RESULT | jq -r '.status')
if [ "$STATUS" = "done" ]; then
echo $RESULT | jq '.results'
break
fi
sleep 3
done
Research Mode with Domain Filtering
curl -X POST http://localhost:3000/api/search \
-H "Content-Type: application/json" \
-d '{
"query": "kubernetes scaling strategies",
"research": true,
"excludeDomains": ["pinterest.com", "quora.com"]
}'
Adding Search to an Existing Agent
To give your Claude Code agent search capabilities:
- Ensure the local server is running (
docker compose up -din the unfancy-search directory) - Your agent can use
curlorfetchto queryhttp://localhost:3000/api/search - Parse the ranked results to ground responses with real web data
Response Format
Results include:
- Ranked URLs with RRF scores
- Domain clustering (grouped by source)
- Cost transparency (per-search expense breakdown)
- Raw and unique result counts
- Search duration
Troubleshooting
| Issue | Solution |
|---|---|
| Server won't start | Verify Docker is running or Node.js 18+ installed |
| No results returned | Check BRIGHT_DATA_API_TOKEN is valid and SERP API zone is active |
| Query expansion not working | Verify ` |
자주 묻는 질문
시작하려면 무엇이 필요한가요?
SERP API 접근 권한이 있는 Bright Data 계정과 Docker 또는 Node.js 18 이상이 필요합니다.
호스팅 서비스를 사용하나요?
아니요. 스킬은 호스팅된 엔드포인트가 아니라 로컬 버전만 사용하라고 말합니다.
AI 쿼리 확장은 필수인가요?
아니요. Anthropic 키는 선택 사항이며, 설정하면 AI 쿼리 확장을 켭니다.
상세 정보
작성자의 원본 설명
Set up and run local web searches using Bright Data SERP API with the unfancy-search pipeline (query expansion, SERP retrieval, RRF reranking).
인기도
- GitHub 스타
- 33k
- 순위
- #8730
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
owasp-security
33k웹 앱, API, 모바일, 컨테이너, AI 에이전트를 위한 OWASP 보안 지침을 따르도록 해서, 흔한 약점을 찾고 수정안을 제안하게 합니다.
agent-management
33k에이전트가 AI Maestro 명령줄을 사용해 AI 에이전트를 만들고, 나열하고, 일시 정지하고, 깨우고, 이름을 바꾸고, 삭제하도록 돕습니다.
agent-messaging
33k에이전트가 Agent Messaging Protocol로 AI 에이전트 사이에 서명된 메시지를 보내고, 받고, 답하도록 돕습니다. 대부분 내 컴퓨터에서 작동합니다.
docs-search
33k에이전트가 자동 생성된 코드 문서에서 함수 시그니처, 클래스 정의, 주석을 검색하도록 해서, 코드를 바꾸기 전에 실제 API를 확인하게 합니다.