This site is not affiliated with or endorsed by Cloudflare, Inc. It showcases deployable experiments across most Cloudflare products.

Blog20 min read

Make your site visible to AI crawlers and agents

Deep agent/SEO discoverability guide - robots.txt, llms.txt, sitemaps, OpenAPI, MCP, metadata, security headers, and Cloudflare-ready audit experiments.

White humanoid robot facing forward in a bright room
Photo by Alex Knight on Unsplash

AI assistants and crawlers increasingly decide whether your docs are usable from machine-readable surfaces: robots.txt, sitemaps, llms.txt, OpenAPI, MCP, and clean metadata. If those are missing or contradictory, agents skip you - even when the HTML is excellent.

This catalog dogfoods those surfaces (/llms.txt, /openapi.json, /developers, MCP). You can audit and generate them with focused experiments running on Cloudflare Workers.

Cloudflare products that help (directly or as the runtime)

Product / surfaceRoleDocs
WorkersHost robots, llms.txt, APIs, auditsEdge compute
Workers AIOptional summarization / tagging of pagesAI
AI Crawl ControlManage AI crawler access at the edge (zone feature)AI crawl control
Bot Fight Mode / BotsBot management signalsBots
CacheCache machine-readable docs aggressivelyCDN cache
HTMLRewriterExtract metadata for previewsRuntime
FetchAudit remote robots/sitemapsFetch

Also relevant: Cloudflare’s own guidance around AI crawlers and content signals evolves quickly - start from AI Crawl Control and your zone’s bot settings.

The agent-friendly checklist

  1. robots.txt - allow the AI bots you want; do not accidentally blanket-deny
  2. sitemap.xml - list canonical URLs you want indexed
  3. llms.txt - short index of when-to-use + key links for LLM agents
  4. Markdown alternatives - Accept: text/markdown or per-page markdown routes
  5. OpenAPI / API catalog - for callable APIs (OpenAPI on Workers)
  6. MCP - if you expose tools (Model Context Protocol)
  7. Accurate metadata - title, description, canonical, OG tags
  8. Security headers - trustworthy defaults without breaking embeds you need
  9. Content-Signal / usage preferences - declare search vs training preferences where you publish them

Experiments that help

JobExperimentCloudflare angle
See which AI bots robots.txt allowsAI Bot VisibilityWorkers Fetch
Generate llms.txt-style exportWebsite to llms.txtWorkers + parse
Inspect robots + sitemap consistencyRobots Sitemap InspectorFetch
Extract OG/metaMetadata ExtractorHTMLRewriter
Grade security headersSecurity Headers GraderFetch headers
Summarize a URL for agentsAI Website SummaryWorkers AI

Practical robots.txt tips for AI

  • Be explicit per user-agent when policies differ (retrieval vs training)
  • Keep Sitemap: absolute
  • Do not Disallow: / for * if you want search/AI input - prefer path-level rules
  • Re-test after CDN or framework changes; generators often overwrite robots
  • Align robots with zone-level AI Crawl Control so edge policy and file policy do not contradict

AI Bot Visibility is the fastest way to see how popular crawlers interpret your file.

llms.txt that agents actually use

A useful llms.txt is not a dump of every URL. Include:

  • One-paragraph product summary
  • When to use / not to use
  • Links to OpenAPI, MCP, full markdown dump
  • A curated experiment or doc list

This site’s /llms.txt follows that shape. Generate starting material for arbitrary sites with Website to llms.txt, then edit for accuracy.

Hosting tip: serve llms.txt from a Worker or static assets with long cache and easy redeploys (Workers static assets when applicable).

OpenAPI + MCP for callable surfaces

If agents should call you, not just read you:

  • Publish OpenAPI 3.x at a stable URL
  • Keep operationIds unique and descriptions concrete
  • Return JSON errors with error + code (+ hints)
  • Offer MCP when tool-calling clients are a target audience

Workers are a natural host for these JSON surfaces (Workers routing).

Metadata and trust pages

Agents and humans both use About / Contact / Privacy as trust anchors. Ensure:

Ship the audits

  1. Run AI Bot Visibility against your production origin
  2. Inspect robots/sitemap with Robots Sitemap Inspector
  3. Review zone settings in AI Crawl Control
  4. Publish an llms.txt at the site root
  5. Ensure titles/descriptions via Metadata Extractor
  6. Recheck after each major docs deploy

Agent discoverability is SEO for machines. These experiments turn it into a checklist you can automate - each one deploys as a small Worker on Cloudflare, and the products above are the levers you actually tune in the dashboard and docs.

Production checklist

  1. Align robots.txt with AI Crawl Control zone settings.
  2. Publish sitemap.xml and llms.txt.
  3. Offer Markdown / OpenAPI / MCP where APIs exist.
  4. Keep About / Contact / Privacy findable.
  5. Re-audit after framework or CDN changes with AI Bot Visibility.
  6. Cache machine-readable docs aggressively via Cache.

FAQ

Allow all AI bots?

Only if that matches your content policy. Many teams allow retrieval bots and restrict training bots - be explicit per user-agent.

Related experiments

These deployable references implement the patterns in this article. Open the docs for API details, then Deploy or clone the source.

  • AI Bot Visibility Checker - Check if robots.txt allows or blocks AI crawlers like GPTBot, ClaudeBot, Google-Extended, and PerplexityBot - AI SEO visibility audit
  • Website to llms.txt - Convert any webpage into llms.txt format for LLM and AI-agent consumption - AI-readable site summary generator
  • Robots Sitemap Inspector - Parse robots.txt and linked sitemaps for any URL - SEO and AI-crawler access debugging from Cloudflare's edge
  • Website Metadata Extractor - Extract title, description, Open Graph, Twitter Card, and canonical URL from any webpage - SEO metadata API
  • Security Headers Grader - Grade HTTP security headers (HSTS, CSP, X-Frame-Options, and more) for any URL - security header audit from the edge
  • AI Website Summary - Summarize any webpage with Workers AI on Cloudflare's edge - fetch URL, extract content, return a concise AI summary

Cloudflare Experiments is an independent open-source catalog - not affiliated with Cloudflare, Inc.