<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged web-standards</title>
<link>https://coderlegion.com/tag/web-standards</link>
<description>Powered by Question2Answer</description>
<item>
<title>WebMCP: Letting Browser Agents Use Your Site's Own Tools</title>
<link>https://coderlegion.com/32138/webmcp-letting-browser-agents-use-your-sites-own-tools</link>
<description>&lt;p&gt;WebMCP is a proposed web standard that lets a page register its own tools, either JavaScript functions or marked-up HTML forms, which an agent in the visitor's browser can then call instead of feeling its way through buttons and inputs. In October 2026 it's a W3C Community Group draft with a Chrome origin trial, and the API changed during 2026, so many tutorials are already out of date.&lt;/p&gt;
&lt;p&gt;I explain what it is and who's behind it, and summarise its status: an origin trial starting in Chrome 149, a flag for local testing, the move from navigator.modelContext to document.modelContext in May 2026, and early support elsewhere. Anything built now should feature-detect and fail silently.&lt;/p&gt;
&lt;p&gt;The imperative API is registerTool(), with a name, description, input schema, callback and annotations including one that marks consequential actions like booking or paying. The declarative API turns an existing form into a tool with a few attributes. I compare WebMCP with a server-side MCP server: one lives in an open tab with the user's session, the other is a network endpoint any client can call, and Chrome's own guidance suggests using both for different jobs.&lt;/p&gt;
&lt;p&gt;The security section covers HTTPS only, same-origin by default, a person in the loop and prompt injection as the main risk. I include a small business example and an honest list of when not to bother yet.&lt;/p&gt;
&lt;h4 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;WebMCP lets a page expose tools to in-browser agents&lt;/li&gt;
&lt;li&gt;It's an experimental draft with an active Chrome origin trial&lt;/li&gt;
&lt;li&gt;Forms can become tools with a few attributes&lt;/li&gt;
&lt;li&gt;It complements, not replaces, a server-side MCP server&lt;/li&gt;
&lt;li&gt;Mark consequential tools and validate everything server-side&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Related on BuiltToWinWeb: &lt;a rel=&quot;nofollow&quot; href=&quot;https://built2winweb.com/blog/add-mcp-server-to-website/&quot;&gt;adding a server-side MCP server&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Read the full guide on BuiltToWinWeb:&lt;/strong&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;https://built2winweb.com/blog/webmcp-explained/&quot;&gt;&lt;strong&gt;WebMCP explained, with a working example&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;A summary by Jacob Campbell of an article first published on built2winweb.com on October 7, 2026.&lt;/em&gt;&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/32138/webmcp-letting-browser-agents-use-your-sites-own-tools</guid>
<pubDate>Fri, 23 Oct 2026 03:36:01 +0000</pubDate>
</item>
</channel>
</rss>