小互 Best BlogAI, Explained
HomeExplainersPodcastAboutMemberSubscribe
中EN日 ⚙ 后台
HomeExplainersPodcastAboutMemberSubscribe
中EN日
⚙ 后台管理
ACCOUNT

Sign in

✓ Free accounts get bookmarks and cross-device reading progress
✓ Buy later and the membership attaches to this same account
Sign in with Google
or with email
Forgot password?
No account? Register free →
Have an access code? Redeem to sign in →
Explainers/ Launch/ № 1135
Verified SourceCloudflare Blog 08-07 · 7 min read ⚑ Product update
Members only
Full article as Markdown — paste into Obsidian / Notion
↓ Article body below · each piece has its own look
Product Update · xiaohu.ai Analysis

Cloudflare AI Search Update: One Command to Build Site Search Your AI Agents Can Use Directly

What used to mean assembling five separate pieces is now out-of-the-box — and the two hardest-to-estimate costs are free.
TL;DR
  • Give it a URL, it crawls and indexes the site, then hands you a /mcp endpoint your AI agent can use to query your data directly.
  • Cloudflare used it to fold documentation from ten of its own sites into a single MCP — a fix for coding agents that keep hallucinating outdated APIs.
  • Pricing makes embedding and reranking free; 20k documents plus 30k searches a month works out to roughly $35, per Cloudflare's own estimate.
⚑ Facts and figures in this piece come from Cloudflare's official launch blog post. That makes this a vendor's self-assessment — no independent third-party replication. All prices are preview prices as listed by Cloudflare and are subject to change before billing starts.
Opening

What AI Search Is, and What's New

Cloudflare has updated AI Search. Now a single command gives you a working search engine for your website or docs — complete with a /mcp endpoint your AI agent can call as a tool to look up your own data.

Before, you had to wire five components together yourself. Now the service handles that assembly for you — and the official preview pricing just landed. Still free during beta.

The Change

From Five Parts to One Command

Building an AI-callable search for your own data on Cloudflare used to mean pulling together five things: Workers AI for models, AI Gateway for call management, Vectorize for vector storage, Cloudflare R2 for file storage, and Browser Run for crawling. You had to stitch them together yourself, and then handle the whole pipeline — crawling, chunking, embeddings, retrieval — on your own.

Before: DIY wiring Workers AI AI Gateway Vectorize R2 Browser Run Crawl Chunk Embed Retrieve All handwritten Now: one command Crawl · Chunk · Embed · Retrieve All handled by AI Search
A diagram based on Cloudflare's description. The five pieces on the left are still running underneath — the difference is you're not the one wiring them together anymore.

Two terms show up a lot below, so worth defining upfront: embedding turns text into a string of numbers (a vector), and search works by comparing these vectors to find meaningfully similar content, not just literal matches. reranking takes a first pass of rough results and runs another model over them to surface the most relevant ones first. Both run on every index build and every search.

Capabilities

Six New Capabilities

  • Full-site indexing even without a sitemap: a sitemap is a file listing every page URL on a site — previously required for site-wide indexing. Now with Discover mode, it follows links across pages by itself, using Browser Run's /crawl under the hood.
  • One public URL searches everything: turn on the public URL on a namespace (a container holding multiple search instances), and you get /search and /mcp endpoints that query every instance inside in one go. No auth required — safe to hand straight to a client.
  • Custom domains: expose your endpoint as something like search.example.com/mcp.
  • Want it private? Put Cloudflare Access in front: once enabled, queries require a login, so only authorized people or agents can get in.
  • Hybrid search for better results: semantic and keyword search run in the same query. It handles open-ended questions ("what does this thing do?") and precise name lookups alike.
  • EmDash sites: just install a plugin: EmDash is Cloudflare's open-source CMS. Add the AI Search plugin and your content gets semantic search out of the box.
Cloudflare dashboard showing the configuration screen for binding a custom domain to a public search endpoint
The interface for attaching a custom domain to a public endpoint. You can also drop Cloudflare Access in front afterward to make it a login-only private search. Source: Cloudflare Blog.
Use Case

Cloudflare Built an MCP from 10 of Its Own Sites

This section best illustrates what the service can actually do, because it fixes a problem that happens every single day.

AI coding assistants writing Cloudflare-related code draw on stale training data and routinely produce outdated API calls. The current workaround — making the agent hit a web search and read back entire pages — is, in Cloudflare's own words, slow, token-hungry, and prone to landing on the wrong or outdated sources.

Their approach, in three steps.

Step one: one instance per site

They created a dedicated search instance for each of ten of their own properties: developer documentation, the blog, API docs, the community forum, plus docs for Astro, Vite, Vitest, Hono, Replicate, and OpenNext (all under the Cloudflare umbrella). Creating an instance is one command; for sites without a sitemap, a flag makes it crawl links instead:

Create an instance for a site without a sitemap
npx wrangler ai-search instance create cloudflare-community \
  --namespace dev-stack \
  --source https://community.cloudflare.com \
  --type web-crawler \
  --parse-type discover

Step two: flatten ten instances into one search

Two paths here. Write a Worker that binds the namespace and fans a single call out to all instances you name — that's the route they took, because they wanted to expose it as a tool inside an MCP server. Or write no code at all: flip on the public endpoint on the namespace, and you immediately get /search and /mcp covering every instance — no auth, no deployment.

Configuration screen showing the search and MCP endpoints created automatically after enabling a public URL on a namespace
The no-code path: enable the public URL and the endpoints appear. Cloudflare's guidance: write a Worker if you want to fold search into an existing app or MCP server; use the public endpoint if you just want a shareable URL. Source: Cloudflare Blog.
10 owned sites, one instance each Dev docs Blog · API docs Community forum Astro · Vite · Vitest Hono · Replicate et al. One namespace all 10 instances inside One MCP endpoint stack.mcp.cloudflare.com/mcp Coding agent, one call results with sources
Structure diagram based on Cloudflare's description. Ten sites across different domains — but all owned by Cloudflare, so they can be indexed as a single set.

Step three: attach a domain, lock it down if needed

The public endpoint ships with a default URL that you can swap for your own domain. And if that search shouldn't be public, put Cloudflare Access in front of it, and it becomes a login-gated private endpoint.

After those three steps, the result is a single address: drop it into your MCP config, and your coding agent can query current documentation across all ten sites in one call, with responses citing where each piece came from.

Wire it into your coding agent
{
  "mcpServers": {
    "dev-stack": { "url": "https://stack.mcp.cloudflare.com/mcp" }
  }
}
Cloudflare AI Playground interface for trying out the Dev Stack MCP
Don't want to touch config first? Try it out in the official AI Playground. According to Cloudflare, the real payoff is hooking it into your coding agent so current docs become a single tool call away. Source: Cloudflare Blog.

Their own dogfooding goes further: the blog has long run on AI Search, and this round also brought the developer docs and cloudflare.com itself on board — all on hybrid search.

Pricing

The Two Hardest-to-Estimate Costs Are Now Free

The design logic here is more interesting than the rate card itself.

Embedding and reranking run on every index build and every search — making them the hardest line items to predict. You can't know in advance how many searches users will run or how many results each one will re-rank. Cloudflare's move: when you use the default models or a model selected from the Workers AI catalog, these two steps cost nothing. The most unpredictable corner of the bill is simply gone.

Answer generation and query rewriting, meanwhile, are optional steps that run on a model you choose. They bill as Workers AI usage — or you can point any model through AI Gateway credits.

ItemPreview priceMonthly free tier
Base ingestion$0.75 / 1M tokens5M tokens †
Image processing (add-on)+$0.50 / 1M tokensshared with above †
Storage$2.00 / GB-month10 GB
Semantic search (incl. hybrid)$0.75 / 1k queries2k queries ‡
Full-text search$0.10 / 1k queriesshared with above ‡
embedding + rerankingFree with designated Workers AI models—

† One 5M-token pool per month, shared across all file types — images included. ‡ One 2k-query pool per month, shared between semantic and full-text queries.

Cloudflare's sample bill

On the Workers paid plan: a source with 20k documents (roughly 20M tokens), plus 1,000 images, at 30k semantic searches per month, using the default embedding and reranking models:

≈ $35
first month, including one-time indexing
≈ $21
each month after — mostly query costs
$0
embedding and reranking — both free

Read that number with its assumptions attached: Cloudflare estimates roughly 10 KB per doc and 1 MB per image, and chunking overlaps by ~10% during ingestion (hence the ×1.1 in the bill). Bigger docs or more images, and the number changes.

Limits

Three Limits to Know Before You Start

Site sources must be domains on your own Cloudflare account. To use a website as a data source, it has to be a zone under your account. Other ownership verification methods are planned, but there's no timeline. This one determines whether you can even use the product — don't discover it halfway through setup.

Crawling honors site crawler rules. Browser Run's /crawl does the work underneath, but it operates under its own distinct crawler identity, Cloudflare-AI-Search: it respects robots.txt, uses a fixed and public User-Agent, and abides by a site's existing crawler control policies.

The prices are preview; billing isn't live yet. The entire beta is free right now. Cloudflare states explicitly that it will email well in advance before paid billing begins, and that preview pricing may change before then.

One command is all it takes to spin up a trial:

Create an instance with hybrid search
npx wrangler ai-search create my-search \
  --namespace my-namespace \
  --source https://my-website.com \
  --type web-crawler \
  --hybrid-search
🧰 Getting Started · Cloudflare AI Search
Entrydevelopers.cloudflare.com/ai-search
PricingFree during beta, billing not yet enabled; paid tier follows preview prices — ingestion $0.75/1M tokens, semantic search $0.75/1k queries, both with free monthly allowances
PrereqsCloudflare account; site sources must currently be domains on your own account; one npx wrangler command creates an instance
Source
Cloudflare AI Search: Give Your Agents a Search Engine for Your DataCloudflare Blog·Original post·2026-08-06
More
AI Search docs·AI Playground·EmDash plugin docs
About this piece
Three UI screenshots are taken from the original post; the two structure diagrams are ours, drawn from Cloudflare's description, as noted in their captions. All pricing and bill estimates reflect Cloudflare's official preview numbers and may change before billing starts; comparative claims without a cited source (slower, more token-hungry, etc.) come from the original post.
One-Pager · This page ≈ the whole article · best.xiaohu.ai

One Command to Build Site Search Your AI Agents Can Call

Cloudflare updated AI Search, collapsing five manually-wired components into a single command. Here's everything that changed, on one page with a diagram that moves.

↓ One page. One animated diagram.

Opening · What changed

Cloudflare updated AI Search: one command now builds search for your website or docs, and ships with a /mcp endpoint your AI agent can call as a tool to query your own data.

Before
Workers AI + AI Gateway + Vectorize
+ R2 + Browser Run
Crawl · Chunk · Embed · Retrieve — all hand-wired
Now
npx wrangler ai-search create my-search \
  --source https://my-website.com \
  --hybrid-search
New Capabilities · Easier to wire, better to use
✔ No sitemap? Still indexes the whole site, following page links on its own
✔ One public URL — no login — searches every instance in a namespace (a container for multiple search instances)
✔ Bring your own domain; add Cloudflare Access and it becomes a login-only private search
✔ Hybrid search: semantic and keyword run in one query — handles both fuzzy questions and precise name lookups
✘ Site sources currently limited to domains on your own Cloudflare account
Use Case · Ten sites become one MCP

AI coding agents writing Cloudflare-related code draw on stale training data and keep producing outdated API calls. Cloudflare's fix: create a search instance for the dev docs, blog, API docs, community forum, and the docs for Astro, Vite, Vitest, Hono, and more — combine them in one namespace, and expose a single MCP endpoint.

10 owned sites, one instance each Dev docs · Blog · API docs Forum · Astro · Vite Vitest · Hono · Replicate etc. 1 namespace all 10 inside 1 MCP endpoint stack.mcp.cloudflare.com Coding agent, one call searches all 10, results with sources
Drop this endpoint into your agent's config and one call reaches current docs across all ten sites — no more web-scraping entire pages.
Pricing · The two hardest items are free

embedding (turning text into vectors for comparison) and reranking (reordering results by relevance) run on every index build and every search — the hardest usage to predict. When you use Cloudflare's designated Workers AI models, both cost nothing. The most unpredictable part of the bill, gone.

≈ $35
Cloudflare's own calc: 20k docs + 1k images + 30k searches/month, first-month bill
≈ $21
same setup, monthly after that — mostly query costs
$0
embedding and reranking, with default models

That math rests on Cloudflare's assumptions — ~10 KB per doc, ~1 MB per image. Different usage, different numbers. And these are preview prices; they can shift before billing begins.

Limits · Three to know before you start
⚠️

Site sources currently limited to domains on your own Cloudflare account. Other ownership-verification methods aren't here yet, with no timeline.

The crawler runs under its own identity, Cloudflare-AI-Search, and respects robots.txt plus existing crawler policies.

The whole beta is free and billing isn't enabled yet; Cloudflare will email before paid billing starts, and preview prices may change.

Takeaway: Building a private search your AI agent can call went from hand-wiring five components to running one command — and Cloudflare made the two hardest-to-estimate costs, embedding and reranking, free. One catch: the site has to live on your own Cloudflare account.
01/05
Xiaohu's docs site needs search
Readers should find things
Opens Cloudflare docs
  • × Workers AI
  • × AI Gateway
  • × Vectorize
  • × R2
  • × Browser Run
Five pieces
Wire five things myself?!
GULP
02/05
Before: hunt down five tools, wire them up
Crawl · Chunk
Embed · Retrieve
Every step hand-connected
Now: type one command
npx wrangler ai-search
create --hybrid-search
1 command
CLICK
That's it?
03/05
Xiaohu asks an agent for code
That API died 3 years ago
The agent's output: ancient APIs
Slow, and lands on stale docs
Need a place that knows
04/05
10 own sites, one index each
10 sites 1 namespace 1 MCP URL
WHOOSH
This time, with sources
One call, ten sites
05/05
$0
The two hardest numbers: free
Embedding and reranking — both free
Example bill:
20k docs + 30k searches/mo
≈ $35
Site must live on your Cloudflare account
Prices are preview, billing not live — per Cloudflare
FIN
xiaohu.ai · best.xiaohu.ai
↑ End of article · back to the site shell
🔓 Membership

Every deep dive, research piece and all podcasts live in membership.

Subscribe · $49/yrSee what's included →
Read the original ↗
📮 New explainers, straight to your inbox

Found this useful? Leave your email — every new explainer, the moment it's out. Unsubscribe anytime.

Related explainers

Deep Dive
Anthropic FDE Interview Guide: Why the Company Is Spending Big on a New Class of On-Site Engineers
08-24 · 20 min read
Research explainer
Why most CEOs' AI efforts are just 'fake progress': The seven decisions that determine real enterprise AI transformation
08-23 · 18 min read
Deep dive
AliExpress uses spy-tech-style tricks to track shoppers
08-23 · 5 min read
小互

Grounded in sources. Built on the why. Made to be understood. Written like a friend. Turning any AI article into a visual explainer you can actually follow.

Explainers
LaunchToolsResearchDeep DiveBusiness
Site
Home All explainers About XiaoHu
Subscribe

New explainers, the moment they're out.

TelegramRSS FeedPodcast
All ways to subscribe →
© 2026 XiaoHu · AI, Explained Grounded in sources · Built on the why · Made to be understood · Written like a friend