Make Your Angular App Agent-Ready with WebMCP A developer published a guide showing how to expose Angular 22 web apps to browser AI agents using WebMCP, a W3C Community Group draft that adds a modelContext object to the document so pages can register named tools with JSON Schema inputs. The demo todo app registers seven tools, including one generated automatically from a Signal Form, and calls the same store as the UI so agents cannot perform actions the interface cannot. The author notes Chrome ships WebMCP as an early preview and Angular labels its support experimental, advising against production use for now. Originally published on my blog https://anastasios.theodosiou.me/blog/angular-webmcp-agent-ready-apps . Version note: I wrote this against Angular 22.3 and the WebMCP draft as of November 2026. Every API shown here is experimental, and I will update the post after Angular 22.4 if anything changes. Browser AI agents can already book a table or fill in a form for someone, but they do it the hard way. They take screenshots, read the DOM, guess which button is the right one, click, and hope. That is slow and expensive in tokens, and it breaks the moment you rename a CSS class or move a button. WebMCP turns this around. Your page publishes a small contract of tools: named functions with a description and a JSON Schema for their input. The agent reads the contract and calls the function directly. Angular 22 ships experimental support for it. In this article we build a small todo app that exposes seven tools to agents. One of them is a Signal Form that turns into a tool with no extra code. We also build a small "agent console" so you can test everything in a normal browser today. The full demo is on GitHub: angular-webmcp-todo https://github.com/atheodosiou/angular-webmcp-todo . You can also try the live demo https://atheodosiou.github.io/angular-webmcp-todo/ . WebMCP is a W3C Community Group draft https://webmachinelearning.github.io/webmcp/ that adds a modelContext object to the document. A page registers tools on it: await document.modelContext.registerTool { name: 'add todo', description: 'Creates a new todo with the given title.', inputSchema: { type: 'object', properties: { title: { type: 'string' } }, required: 'title' }, execute: { title } = { content: { type: 'text', text: Added ${title} } } , } ; An agent in the browser calls getTools to discover what the page offers and executeTool to run one. Think of it as MCP, but the server is your web page and the tools run in the user's own session, with the user's own auth. Here is the difference for a simple request like "add 'buy milk' to my todos" : | Without WebMCP | With WebMCP | |---|---| | Screenshot the page, find the input, click it, type, find the Add button, click, screenshot again to check | add todo { title: 'buy milk' } | As of today, Chrome ships WebMCP as an early preview https://venturebeat.com/infrastructure/google-chrome-ships-webmcp-in-early-preview-turning-every-website-into-a , and Angular marks its support as experimental. The Angular docs https://angular.dev/ai/webmcp say the APIs may change even outside major versions. I would use it for learning and prototypes for now, and keep it out of production architecture. Create an Angular 22 app and add the W3C polyfill so the API exists in any browser: npx @angular/cli@22 new angular-webmcp-todo cd angular-webmcp-todo npm install @w3c/webmcp-polyfill Install the polyfill before bootstrapping, because Angular registers tools while the application initialises: js // src/main.ts import { bootstrapApplication } from '@angular/platform-browser'; import { installWebMCP } from '@w3c/webmcp-polyfill'; import { appConfig } from './app/app.config'; import { App } from './app/app'; // Never replaces a native implementation, so it is safe to leave in. installWebMCP ; bootstrapApplication App, appConfig .catch err = console.error err ; WebMCP only exists in a secure context, so serve the app from localhost or HTTPS. Before writing any tools, decide where the logic lives. My rule is that tools call the same store the UI calls. That way an agent can never do something the UI cannot, and you never maintain two versions of "add a todo". // src/app/todos/todo-store.ts @Injectable { providedIn: 'root' } export class TodoStore { private readonly todos = signal