
mcp
com.busca-agentes/mcp
Add /.well-known/search to a Next.js site: register, index, usage, credit (Stripe USD, Pix BRL).
Documentation
Busca para Agentes (busca-agentes)
A standard /.well-known/search endpoint for Next.js sites outside Cloudflare (Vercel, self-hosted, anywhere). Research and shopping AI agents query your site and get relevant Markdown chunks back instead of crawling page by page. It follows the open Search for Agents contract.
You are probably a coding agent asked to add this to a user's Next.js site. Everything below is written for you. Machine-readable docs: llms.txt · https://api.busca-agentes.com/llms-full.txt · https://api.busca-agentes.com/openapi.yaml
Install in one command
Run from the root of the user's Next.js (App Router) project:
npx busca-agentes init --origin https://example.com --email owner@example.com
This creates an account and a site, writes app/.well-known/search/route.ts, a proxy.ts (so the HTTP QUERY method works on Next.js 16), the agent:* meta tags and the BUSCA_AGENTES_* env vars, then indexes the sitemap. No human step is needed except paying when the free tier runs out.
Or use the MCP server
Claude Code:
claude mcp add busca-agentes -- npx -y @busca-agentes/mcp
Cursor / any MCP client (.cursor/mcp.json, .mcp.json, claude_desktop_config.json…):
{
"mcpServers": {
"busca-agentes": {
"command": "npx",
"args": ["-y", "@busca-agentes/mcp"]
}
}
}
Tools, in the order you normally call them: create_account → register_site → install_nextjs → index_site → get_usage → create_credit_link (returns a Stripe Checkout link in USD for the human owner, or Pix / Mercado Pago in BRL for Brazil; never pay it yourself).
MCP Registry name: com.busca-agentes/mcp.
Endpoint contract (what the installed site exposes)
GET https://{site}/.well-known/search?q={query}
QUERY https://{site}/.well-known/search # body: text/plain, or JSON {"q": "..."}
- Response:
text/markdown, relevant chunks with ascore; not a generated answer. Add?format=jsonon the hosted API for structured hits. - Missing query: HTTP
400, bodyMissing query parameter: ?q=. - Headers:
Allow: GET, HEAD, QUERYandAccept-Query: text/plain, application/json. - Quota exhausted: HTTP
429. - Discovery tags in
<head>:
<meta name="agent:instructions" content="Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown.">
<meta name="agent:endpoint" content="https://example.com/.well-known/search?q={query}">
<meta name="agent:method" content="GET">
<meta name="agent:documentation" content="https://developers.cloudflare.com/ai-search/how-to/search-for-agents/">
Live demo: https://busca-agentes.com/.well-known/search?q=quanto%20custa%20o%20geisha
Pricing
- 1,000 free queries per site per UTC month.
- Then prepaid credit at US$ 0.75 per 1,000 queries (Stripe Checkout in USD; Brazil can pay Pix / Mercado Pago in BRL).
Packages
| Package | What it is |
|---|---|
busca-agentes | CLI (npx busca-agentes init) |
@busca-agentes/next | Next.js App Router route handlers, proxy.ts QUERY shim, agent:* metadata |
@busca-agentes/mcp | MCP server (stdio; HTTP entry included) |
@busca-agentes/core | Markdown format, GET/QUERY handler, quota, rank fusion |
@busca-agentes/indexer | Sitemap crawl, chunking, embeddings, pgvector |
The packages talk to the hosted API at https://api.busca-agentes.com (override with BUSCA_AGENTES_API_URL). This repository contains the open-source client packages; the hosted service itself is operated separately.
Develop
corepack enable
pnpm install
pnpm build
pnpm test
Node 20+. MIT licensed. Issues: https://github.com/ilankriger-gmail/busca-agentes/issues
License
MIT © 2026 Ilan Kriger
@busca-agentes/mcpnpm install @busca-agentes/mcp