WebMCP Opens Your Website to Agents
Blog post from Upstash
WebMCP enables websites to expose structured, page-specific tools that compatible browser agents such as ChatGPT and Codex can discover and call, avoiding the need to infer actions from a human-oriented interface. The guide demonstrates creating a Next.js documentation-search tool, `search_upstash_docs`, which registers in client-side code and sends validated user queries to a same-origin server endpoint that uses Context7 to retrieve current Upstash documentation. It emphasizes keeping the Context7 library ID and API key server-side, defining narrow schemas and descriptive tool metadata, supporting cancellation, and treating annotations as informational rather than security controls. Local testing requires Chrome 149 or later with an experimental WebMCP flag, where developers can inspect registration and manually execute tools through DevTools or the Model Context Tool Inspector. Deployment requires origin isolation, potential permissions-policy configuration for cross-origin frames, and an origin-trial token for compatible Chrome clients, while production endpoints should include standard safeguards such as authentication, authorization, rate limiting, logging, caching, and error handling.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.