The agentic web: MCP, A2A and agents as visitors

Why:More and more often a site’s visitor is not a person but an AI agent, which reads pages and calls actions. Afterwards you’ll know how an agent finds and uses a site (markup, structured data, an API, MCP, NLWeb), how A2A differs from MCP, what risks each “door” carries (planted instructions, excess rights), and you’ll decide what your site gives agents, with a person’s confirmation and no personal data.

30 minutes

Read by speech synthesis (Qwen3-TTS); the voice is not a person’s.

MCP is an open protocol by which an AI agent calls the tools and reads the data of an outside system; the two sides exchange JSON-RPC messages.

A visitor who isn’t a person

Sites used to be visited by people and by search robots. The robots read pages to show you in search results, and a person had to decide what to do. Now there’s a third visitor: an AI agent. It’s a program with a language model inside that, at a person’s request, goes through sites and services by itself: reads prices, compares, fills in forms, books appointments. The person says “find a land surveyor and book me in for tomorrow”, and the agent does it.

What this means for a site’s owner. An agent reads your site much as screen readers do: through the structure of the page, labels and headings (in many browser agents it’s the accessibility tree and the markup that serve as the basis). If a page is built from div with no meaning and the buttons aren’t buttons, the agent makes mistakes and picks someone else. So everything you learned in the parts on HTML and accessibility (in the lesson on accessibility, for instance) works on agents too. And agents get “doors” of their own: ways a site can give them data and actions directly, without making them guess from pixels.

Here, as in the lesson on AI site builders, the field changes fast. Everything named below is true as of October 2026, and some of it is still proposals, not standards.

Doors for agents, from simple to complex

  1. Good markup and structured data. Meaningful elements, labels, headings, schema.org (you went through it in the lesson on technical SEO). There’s nothing new to write, and the benefit is at once for people, search engines and agents. For most small sites this is the only door they need.
  2. Decisions about bots, and llms.txt. Which AI bots to let in and whether to have a file describing the site. You decided this in the lesson on GEO, and there’s no need to repeat it.
  3. An API. If you have a service (booking, ordering), it may have an interface described in OpenAPI, as in the lesson on APIs and REST. An agent calls it like any client.
  4. An MCP server. MCP (the Model Context Protocol) is an open protocol that Anthropic introduced in November 2024 and in December 2025 donated to the Agentic AI Foundation, a fund under the Linux Foundation. It describes how an agent calls tools (functions with a name, a description and a schema of arguments) and reads resources (data) at an outside system. There are three parties: the host (the application with the model), the client (the connection to one server) and the server (what offers the tools, yours or a provider’s). Messages go in the JSON-RPC format. Big model providers have supported it, but the specification keeps changing: its current revision, dated 28 July 2026, replaced the older handshake-based revisions, with guidance on compatibility. The takeaway for you: an MCP server makes sense when you have something to put behind it (booking, a catalog) and are ready to maintain it.
  5. NLWeb. An open project, from Microsoft: a site gets an ask endpoint that takes a question in natural language and returns an answer from the site’s data in schema.org form; every instance also works as an MCP server. It suits sites with a structured list (catalogs, recipes, reviews).
  6. WebMCP. A proposal for browsers: the page itself declares tools (a name, a description, an input schema) that an agent in the browser calls through the page’s own JavaScript, instead of pressing buttons blindly. It’s still a draft and experimental, so it’s too early to build a project on it.

A2A: agents talk to agents

Sometimes one agent needs to hand part of the work to another (an assistant agent asks a booking agent to find a time). For that there’s A2A (Agent2Agent): an open protocol that Google began and donated to the Linux Foundation, supported by representatives of many companies. Through it agents find each other, delegate tasks and exchange results without revealing their insides. The documentation describes it as a complement to MCP, not a replacement: MCP connects an agent to tools, A2A connects agents to each other.

For a small site in 2026 you don’t need to write A2A. It’s useful to know: you’ll understand talk of a “network of agents” in which the agents of projects, people and services make agreements with each other, and a site turns from a page into a participant in such a network.

Check yourself: how does MCP differ from A2A?

MCP connects an agent to tools and data (a calendar, a database, search). A2A connects agents to each other, so that they delegate tasks to one another. They complement each other.

Risks: every door is an attack surface

The more you give agents, the more room there is for mistakes and abuse. Three main risks.

Planted instructions (prompt injection). A model doesn’t always tell the owner’s instruction from the data it reads. So the text on a page, a service’s answer or a tool’s description may hold a hidden “instruction” that the agent takes for real. For tool descriptions this is called “tool poisoning”; researchers described it in April 2025. At OWASP it’s risk number one for applications built on language models (the link is in the sources).

Excess rights. If you open booking and payment to an agent with no confirmation, any planted instruction or mistake turns into a booking in the wrong place or a payment to the wrong person. The rule: minimal rights, exactly what the action needs. You may open reading, and booking and payment only with a person’s confirmation.

A leak of data. If a tool returns contacts, people’s names or requests, a planted instruction can carry them out. What mustn’t leave shouldn’t be in the tools at all. The MCP specification warns separately about confusion of authority in proxy servers and forbids passing tokens straight through; and serious vulnerabilities have also been found in tools for working with MCP (according to Wikipedia, in 2025).

And three more habits for any door open to agents: check input on the server (an agent is a client like a browser, and can’t be assumed honest), limit the rate and keep a log.

Play with the diagram. Choose levels for the four actions, switch on a planted instruction and answers with contacts, and see when a planted instruction leads to trouble. It’s a teaching model: the calls are written out by hand in the manner of MCP.

What the site hands an agent, and on what terms

This is a teaching model. There is no agent and no protocol here: the calls are written out by hand in the manner of MCP (a tool’s name, arguments, a result) so you can see what each choice gives.

ActionLevel
Read the offers and prices
Ask a question
Book
Pay
What happened
  1. Person → agent “Book me in: Main action. If you can, pay.”
  2. tool: list_offers {} returned the names and prices of the offers (read only)
  3. tool: ask { question: "Which documents should I bring?" } returned an answer from your texts
  4. tool: book { slot: "tomorrow 10:00" } a draft was made; the person is shown “Book for tomorrow, 10:00?” and it waits for an answer
  5. tool: pay unavailable: payment only by a person, on the site’s page

The rules you can see in the diagram: reading may be open by default; booking and payment only with a person’s confirmation; don’t hand out contacts; write and check tool descriptions yourself.

Check yourself: why must booking and payment go only with a person’s confirmation?

An agent may make a mistake or fall for a planted instruction. A person’s confirmation turns a possible disaster into the question “book for tomorrow at 10:00?”, to which the person will answer no.

Practice

Decide what your site gives to agents. In the table, for the four actions (read the offers, book your main action, ask a question, pay), enter the format, the rights and a person’s confirmation. Then name the data that’s not given at all, the risks you take into account, and your decision on llms.txt, MCP and NLWeb, with a reason.

For a small site the typical honest answer is: clean markup and structured data, no MCP and NLWeb for now, because there’s no service worth opening. If you do have booking by API, you can lay it out as an MCP tool: with a person’s confirmation and no contacts in the answers. The check reads your table and paragraphs: it will see that booking has a confirmation, that the data not given is named, and both risks, while the decision itself stays yours.

What was wrong with 2025

In 2025 the “agentic web” was a promise: every presentation said agents would buy for us. In practice agents stumbled on forms, CAPTCHAs and div buttons, while the doors (MCP and its like) were built in a hurry and vulnerabilities were found in them. By the end of 2026 the main thing is clear: agents read what people read, so the quality of your markup and the honesty of your facts have become still more important. And a special reason for care: every door you open, you must be able to close and to confirm who and what went through it.

Practice

Preparing your page…

Test

Question 1 of 5

Match each technology with what it does

Find the match for each item.

Cards

These cards go into your review once you finish the lesson.

  • What is MCP?

    Answer

    The Model Context Protocol: an open protocol (Anthropic, November 2024) by which an AI agent calls the tools and reads the resources of an outside system. JSON-RPC messages; roles: host, client, server. Since December 2025 it has been governed by a foundation under the Linux Foundation.

  • What is A2A, and how does it differ from MCP?

    Answer

    Agent2Agent: an open protocol (begun at Google, now at the Linux Foundation) for agents to talk to each other: discovery, delegating tasks, exchanging results. MCP connects an agent to tools, A2A connects agents to each other.

  • What “doors” for agents does a site have?

    Answer

    Clean markup and structured data; llms.txt and decisions about bots (the lesson on GEO); an API; an MCP server; NLWeb (questions about the site’s data); WebMCP (a proposal: tools right on the page). The further down the list, the more work and risk.

  • The main risks of actions opened to agents

    Answer

    Planted instructions (prompt injection, poisoned tool descriptions), excess rights, actions with no confirmation, a leak of contacts and data. The defense: minimal rights, a person’s confirmation for booking and money, and not handing out the data.

Sources

Next

You now know: the agentic web, MCP, agent-to-agent communication (A2A), agents as visitors to a site.