Agent-ready custom and headless sites
On your own stack nothing is done for you, and nothing is locked. Every agent surface is a route, a renderer or a header you control. We build them inside your codebase, on your data layer, to the current specs, and we start with the one thing that is often already set without anyone deciding it: what your CDN tells AI crawlers.
Custom and headless out of the box
- MCP server toolingVercel mcp-handler, Cloudflare createMcpHandlerLibrary
- Markdown at the edgeCloudflare Markdown for Agents, in betaCDN beta
- AI crawler controlsCloudflare settings for Search, Agent and Training botsCheck first
- MCP tools on your dataSearch, facts, quotes, orders, account actionsCUSTOM
- Structured data and Markdown routesRendered from your own modelsCUSTOM
- Agent card and discovery documentsRoutes under /.well-knownCUSTOM
What Custom and headless already gives you
- MCP handlers for your frameworkVercel's mcp-handler runs inside a Next.js route with Streamable HTTP, token verification and protected-resource metadata, and works with Nuxt, SvelteKit and Hono.Vercel docs · Sep 2026
- MCP on WorkersCloudflare's Agents SDK offers createMcpHandler for stateless remote MCP servers on Workers, with OAuth through its Workers OAuth Provider.Cloudflare docs · 2026
- Markdown conversion at the edgeCloudflare's Markdown for Agents, a beta announced in February 2026, returns a Markdown version of a page to a client that asks for it. Its own example cut a page from about 16,000 tokens to about 3,000.Cloudflare blog · Feb 2026
- Bot controls by behaviorCloudflare lets every customer allow or block AI bots by what they do: Search, Agent or Training. Since September 15, 2026, newly onboarded domains block Training and Agent bots on pages that display ads.Cloudflare changelog · Jul 2026
What still has to be built
- The tools themselvesA library gives you transport and auth plumbing. Which actions to expose, their schemas, their descriptions and what each may never do are design decisions followed by code.
- Server-rendered factsMany AI fetchers do not run scripts. Prices, availability and key content that appear only after hydration are invisible to them, so they need to be in the HTML or in a Markdown route.
- Structured data from your modelsJSON-LD generated from the same objects that render the page, so the two cannot disagree, and validated in your pipeline.
- Discovery documentsAgent card, server card, catalog entry, llms.txt and the link relations that point to them. Each is a small route. Together they are how an agent finds the rest.
- OAuth for anything behind a loginAccount tools need protected-resource metadata, PKCE and scoped tokens, so an assistant acts as one customer and nobody else.
Our approach on Custom and headless
We work in your repository and your framework, in PHP and Laravel, Node or Python, and deliver through your own review and deploy process.
CDN and firewall first
Before building anything, we request your pages as search crawlers, AI crawlers and user-triggered agents and read what comes back. A Training block can also stop Googlebot-class crawlers.
AI crawler accessAn MCP route in your app
Tools written against your service layer, served from a route in the same deployment, answering the current stateless MCP revision and the older handshake.
MCP servers and toolsOAuth for account tools
Protected-resource metadata, PKCE and scoped tokens on your existing identity system, with a confirmation step on every tool that writes.
Agent securityJSON-LD and Markdown from one source
A single serializer per model feeds the page, the structured data and the Markdown route, with schema validation in CI.
Structured dataDiscovery routes and listings
Agent card, server card and catalog entry as routes, then publication to the official MCP Registry and the assistant directories.
A2A and agent cardsWebMCP on key forms
Your main forms and filters registered as page tools for browser agents, behind a feature check, while the API is in origin trial.
WebMCP browser actionsGood to know before you start
- Check the CDN before anything else. On Cloudflare, multi-purpose crawlers such as Googlebot follow the most restrictive rule that applies, so blocking Training can block them too.
- MCP 2026-07-28 is stateless and removed the handshake and sessions. Clients on older revisions are still common, so a server has to answer both for a while.
- A client-rendered storefront can look complete in a browser and empty to an agent. We test with scripts disabled and with each agent's user agent.
- MCP authorization is based on an OAuth 2.1 draft, not a finished RFC, and dynamic client registration is deprecated in favor of client ID metadata documents. Expect one more round of changes.
- WebMCP is a community group draft in origin trial in Chrome and Edge. Build it as progressive enhancement, never as the only path.
Who we do this for on Custom and headless
Custom and headless: questions people ask first
Our site is headless. Is that good or bad for agents?
Which stacks do you build on?
Should we host the MCP server with the app or separately?
We are on Cloudflare. Is there anything to check first?
Do you take over our codebase?
See your site the way an agent does
Enter your address. The four robots check AI crawler access, structured data, discovery files and agent tools, and show you every finding. Free, and no account is needed.
Prefer to talk it through? Get a scope or book a 20-minute call.