How to Make Your Website Agent-Ready: Structured Data, llms.txt and MCP
By Eoin Villarin, 2026-10-20, updated 2026-10-28
AI agents now read, navigate and act on websites. Learn which layers really matter, from robots.txt and structured data to llms.txt, MCP and WebMCP, with a practical checklist.
What does an agent-ready website need for AI assistants and browser agents?
An agent-ready website lets AI crawlers and browser agents read, navigate and act on it reliably. Start by allowing AI search crawlers in robots.txt and CDN rules, adding accurate JSON-LD, and using semantic, accessible HTML with labelled forms. An llms.txt file is optional, and MCP or WebMCP tools come once those foundations are solid.
Key takeaways
- OpenAI separates OAI-SearchBot for ChatGPT search from GPTBot for training, so sites can allow search while blocking training.
- Google says structured data is not required for AI Overviews or AI Mode, and no special schema exists for them.
- Starting with Chrome 150, Lighthouse includes an Agentic Browsing category that reports pass and fail results, not a score.
- Google Search does not use llms.txt, which is most useful for coding agents and documentation-heavy products.
- WebMCP has an origin trial open from Chrome 149, and forms can expose tools using toolname and tooldescription attributes.
Your next website visitor might not be a person. In 2026, AI assistants and browser agents read pages, compare options, fill in forms and book appointments on behalf of real customers, and an agent-ready website is one those agents can understand, trust and operate without getting stuck.
The problem is that advice on this topic is full of hype. Some guides insist you need an llms.txt file, special AI schema or a custom server before agents will notice you. Others ignore the shift completely. Meanwhile Google, Chrome and the teams behind the Model Context Protocol have published concrete guidance that tells a much clearer story.
In this guide I walk through the five layers that actually matter, from crawler access and structured data to accessible HTML, llms.txt, MCP and the new WebMCP standard. You will learn what each one does, which ones are worth your time today, and a prioritised checklist you can hand to your developer.
What does an agent-ready website actually mean?
AI systems interact with websites in three distinct ways, and each needs something slightly different from you:
- Reading: crawlers and retrieval systems fetch your pages so assistants like ChatGPT, Gemini and Perplexity can answer questions and cite you.
- Navigating: browser agents open your site like a person would, analysing screenshots, the HTML and the accessibility tree to find buttons and fields.
- Acting: agents call explicit tools, such as "search products" or "book appointment", exposed through protocols like MCP and WebMCP, instead of guessing where to click.
That gives us five practical layers: crawler access, structured data, semantic and accessible HTML, an optional llms.txt file, and tool protocols. The first three are mature and help everyone. The last two are newer and worth adopting selectively.
Layer 1: Are you letting the right AI crawlers in?
None of the other work matters if your robots.txt file or CDN firewall blocks the bots that feed AI answers. Some CDNs, firewalls and security plugins can block AI crawlers with a single setting, so it is easy to shut them out without realising.
The key detail is that most AI companies separate their crawlers by purpose. OpenAI, for example, documents OAI-SearchBot for surfacing sites in ChatGPT search, GPTBot for crawling content that may train its models, and ChatGPT-User for visits a user triggers directly. Google's Google-Extended token controls whether your content is used for Gemini model training and grounding, and Google states it does not affect inclusion or ranking in Google Search.
So you can allow AI search while opting out of training:
# Let ChatGPT search surface and cite your pages
User-agent: OAI-SearchBot
Allow: /
# Opt out of AI model training (optional)
User-agent: GPTBot
Disallow: /
User-agent: Google-Extended
Disallow: /
Sitemap: https://www.example.com/sitemap.xml
A perfectly written robots.txt can still be overridden by a firewall rule, so audit access in this order:
- Read your live robots.txt and search for rules naming GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot or Google-Extended.
- Check your CDN or hosting firewall for AI bot blocking toggles or challenge pages that bots cannot pass.
- Review security plugin settings on WordPress, which sometimes include their own bot rules.
- Confirm your XML sitemap is listed in robots.txt and returns a 200 status.
- Look at your server logs for AI user agents, so you know which bots actually visit and which pages they fetch.
Layer 2: Structured data that agents and search engines can trust
Let me be precise here, because this is where a lot of advice goes wrong. Google's guide to optimizing for generative AI features in Search says structured data is not required for AI Overviews or AI Mode, and there is no special schema markup for them. It still recommends structured data as part of normal SEO because it powers rich results.
Where structured data really earns its place for agents is removing ambiguity. An agent comparing three mechanics or five products needs exact opening hours, prices, availability, service areas and contact details. JSON-LD states those facts in a machine-readable format. Microsoft's open NLWeb project, for example, builds conversational endpoints on top of a site's Schema.org data.
Here is a trimmed LocalBusiness example of the kind I add to service business sites:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "AutoRepair",
"name": "Example Auto Service",
"url": "https://www.example.com/",
"telephone": "+61 3 9000 0000",
"address": {
"@type": "PostalAddress",
"streetAddress": "12 Example Street",
"addressLocality": "Geelong",
"addressRegion": "VIC",
"postalCode": "3220",
"addressCountry": "AU"
},
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "08:00",
"closes": "17:30"
}]
}
</script>
Two rules matter more than the markup itself. First, every value must match what visitors see on the page. Second, the same facts must be consistent across your site, Google Business Profile and, for stores, Merchant Center feeds. Conflicting data is worse than missing data, because an agent cannot tell which version is true. I cover the citation side of this in my generative engine optimization guide.
Layer 3: Semantic HTML and accessibility, the agent's real interface
Browser agents do not see your site the way your designer does. According to web.dev's guide to building agent-friendly websites, they combine screenshots, raw HTML and the accessibility tree, the simplified version of the page that browsers build for screen readers, listing each element's role, name and state.
That means the fixes overlap almost perfectly with accessibility best practice:
- Use real
<button>and<a>elements instead of clickabledivorspanelements. - Connect every form field to a visible
<label>. - Avoid transparent overlays over interactive elements, since agents may discard covered nodes.
- Keep layouts stable so buttons do not move between page loads or product categories.
- Make task-critical controls visible and large enough to detect.
<!-- Hard for agents: no role, no name, no label -->
<div class="btn" onclick="addToCart()">Add</div>
<input placeholder="Email">
<!-- Agent-friendly and accessible -->
<button type="button" onclick="addToCart()">Add to cart</button>
<label for="email">Email</label>
<input id="email" type="email" autocomplete="email">
Chrome now measures this directly. Starting with Chrome 150, Lighthouse includes a new Agentic Browsing category that checks accessible names, layout stability and WebMCP integration. It reports pass and fail results rather than a score, so treat it as a to-do list. If you work in React, my practical guide to web accessibility in React covers the patterns in depth.
Layer 4: Should you add an llms.txt file?
The llms.txt proposal is a Markdown file at the root of your site. It starts with an H1 containing the site name, an optional blockquote summary, and H2 sections listing links to your most useful pages, ideally with clean Markdown versions. A section called "Optional" holds links an agent can skip.
# Example Auto Service
> Family-owned car servicing and repairs in Geelong, Victoria, since 1998.
## Services
- [Logbook servicing](https://www.example.com/logbook-service.md): Manufacturer-schedule services for all makes
- [Brake repairs](https://www.example.com/brakes.md): Pads, rotors and fluid replacement
## Optional
- [About us](https://www.example.com/about.md)
Here is the honest status. Google's AI optimization guide says Google Search does not use llms.txt, and creating one will not help or hurt your visibility in AI Overviews or AI Mode. Evidence that other AI assistants rely on it is also thin. Where it does help is with coding agents and documentation-heavy products, where tools actively look for a concise map of your docs.
My recommendation: if you sell software or publish technical docs, add one. For a local business or small store, it is a low priority that takes ten minutes, so do it after the first three layers, not instead of them.
Layer 5: MCP and WebMCP, letting agents take actions
Reading and navigating get an agent to your site. Tools let it do something useful there, reliably, without guessing which button to press.
What is the Model Context Protocol (MCP)?
The Model Context Protocol is an open standard, based on JSON-RPC, that lets AI applications connect to external systems. An MCP server exposes tools the model can call, resources it can read and prompts users can run. The current specification version is dated July 28, 2026, and Anthropic donated the protocol to the Linux Foundation's Agentic AI Foundation in December 2025, so it is no longer controlled by a single company.
For most small businesses, MCP arrives through your platform rather than custom code. Shopify, for example, exposes catalog and cart tools for agents on its stores, which I explain in my post on agentic commerce on Shopify. Building your own MCP server makes sense when you run a SaaS product, a booking platform, an inventory system or anything with data customers want to query from their AI assistant.
What is WebMCP?
WebMCP is a proposed web standard that brings the same idea into the browser. Your page registers tools, and an agent working in the user's own browser session calls them directly. According to Chrome's WebMCP documentation, an origin trial is open from Chrome 149, and developers can test locally by enabling the chrome://flags/#enable-webmcp-testing flag.
The simplest version is declarative. You add attributes to an existing form:
<form toolname="book_service"
tooldescription="Request a car service booking at our Geelong workshop."
action="/book" method="post">
<label for="service">Service</label>
<select id="service" name="service" required
toolparamdescription="Type of service, such as logbook service or brake repair.">
<option value="logbook">Logbook service</option>
<option value="brakes">Brake repair</option>
</select>
<label for="date">Preferred date</label>
<input id="date" name="date" type="date" required>
<button type="submit">Request booking</button>
</form>
Without the toolautosubmit attribute, the agent fills the form but the user still clicks Submit, which is the right default for bookings and purchases. For read-only lookups, the imperative API registers a tool in JavaScript:
if (document.modelContext) {
await document.modelContext.registerTool({
name: 'check_stock',
description: 'Check whether a product SKU is currently in stock.',
inputSchema: {
type: 'object',
properties: { sku: { type: 'string', description: 'Product SKU' } },
required: ['sku']
},
annotations: { readOnlyHint: true },
execute: async ({ sku }) => {
const res = await fetch(`/api/stock?sku=${encodeURIComponent(sku)}`);
const data = await res.json();
return data.inStock ? `${sku} is in stock.` : `${sku} is out of stock.`;
}
});
}
WebMCP is still experimental and its API names have already changed during the trial, so build it behind feature detection and keep your normal forms working for everyone else.
Agent-ready website checklist: what to do first
Here is the order I recommend, based on effort and how much each step helps both agents and human visitors today.
| Priority | Task | Effort | Impact today |
|---|---|---|---|
| 1 | Audit robots.txt and CDN bot rules for AI search crawlers | Low | High |
| 2 | Fix semantic HTML, form labels and layout shifts | Medium | High, also improves accessibility and conversions |
| 3 | Add accurate JSON-LD for your business, services or products | Low to medium | High for rich results and clarity |
| 4 | Make hours, prices and contact details consistent everywhere | Low | High |
| 5 | Run the Lighthouse Agentic Browsing audit and fix warnings | Low | Medium |
| 6 | Add WebMCP attributes to your main booking or enquiry form | Medium | Emerging |
| 7 | Publish an llms.txt file | Low | Low for most businesses, higher for docs |
| 8 | Build an MCP server for your product or data | High | Depends on your business model |
Nearly everything that makes a site work for AI agents also makes it work better for people: clear facts, real buttons, labelled forms and pages that do not jump around.
If you are also thinking about how AI search changes your traffic, read my guide to staying visible in Google AI Mode and AI Overviews alongside this checklist.
Frequently asked questions
Do I need an llms.txt file to appear in Google AI Overviews?
No. Google's own guidance says Google Search does not use llms.txt and that adding one will neither help nor hurt your visibility in AI Overviews or AI Mode. To appear there, your pages need to be indexed, eligible for snippets and genuinely useful. An llms.txt file can still help coding agents and documentation tools, but it is optional.
Does structured data help AI assistants cite my website?
It helps indirectly. Google says no special schema is required for its generative AI features, but structured data makes facts like prices, hours and locations unambiguous, powers rich results and feeds tools built on Schema.org. The bigger win is accuracy: consistent, visible facts make it easier for any system to describe your business correctly.
What is the difference between MCP and WebMCP?
MCP is a protocol for connecting AI applications to servers that expose tools and data, usually running on your backend. WebMCP is a proposed browser standard where a web page registers tools that an agent in the user's browser can call, using the user's existing session. MCP suits products and data services, while WebMCP suits forms and actions on a normal website.
Is it safe to let AI agents use my website?
It is as safe as the actions you expose. Keep sensitive steps, such as payments and bookings, requiring explicit user confirmation, mark read-only tools clearly and never expose admin functions. MCP's specification requires hosts to obtain user consent before invoking tools. Treat agent traffic like any other traffic, with rate limiting, validation and logging.
Next steps: build for agents by building a better site
Making your site agent-ready is not about chasing a new file format. It is about clear facts, clean markup, accessible interfaces and, where it fits your business, explicit tools. Start with the first four checklist items, measure, and add WebMCP or MCP once the foundations are solid.
If you would like a developer to audit your site for AI agents and search, or to add structured data and WebMCP to a Shopify or WordPress build, contact me through my form. You can also explore my Shopify and WordPress case studies to see the kinds of projects I deliver.