Adding WebMCP to a Static Hugo Site: One Tool Call Saves ~99K Tokens vs HTML
DanWahlin · x · 2026-11-22
James Montemagno published a full walkthrough of adding WebMCP (the experimental web standard for exposing MCP tools in the browser) to his static Hugo site on GitHub Pages.
Key points:
- Static sites need no backend: he used a Hugo-generated content catalog to expose 6 read-only tools, so agents can query things like "which apps support macOS" or "what posts cover GitHub Copilot" without a server or AI widget
- Big token savings: Debbie O'Brien's comparison showed an agent answering in one tool call (562 tokens) vs 99,000 tokens to read four MCP tag pages as HTML
- Verified with a real Copilot CLI run through a loopback relay, covering tool discovery and successful calls
- Still experimental: requires a browser testing feature or origin trial (Edge/Chrome) plus a compatible client
The post includes tool design, Hugo data prep, browser verification steps, and a reusable prompt for adding WebMCP to your own site.
More from coding & agent
- Sentry CEO: reading the code beats explaining a multi-day outage from a bad LLM migration — zeeg · 2026-11-22
- levelsio declares "MCP is dead": agents are smart enough to just use APIs — zeeg · 2026-11-22
- Formalizing 1,826 tax types across 195 countries in a single Lean equation — SnooPeripherals5313 · 2026-11-22
- Code Mode cuts MCP token usage 99.9%: Cloudflare drops from 1.17M tokens to 1,000 — jasonkneen · 2026-11-22
- A game studio 3D scene built entirely from 4,903 lines of code — techartist_ · 2026-11-22
- Antigravity harness pushes Gemini to #1 on coding agent index with huge SWE-sweep jump — rseroter · 2026-11-22