u/AyRon2026

I got tired of agents scraping my sites. So I built a native MCP protocol layer for Next.js.
▲ 5 r/nextjs

I got tired of agents scraping my sites. So I built a native MCP protocol layer for Next.js.

We’re currently stuck in a weird loop: we build clean, structured data in our backends, only to have AI agents treat our sites like humans and "scrape" the DOM. It’s fragile, slow, and expensive.

I spent the last few days building WebMCP—a production-ready protocol layer that lets agents talk to your app via a standardized JSON-RPC interface instead of a browser engine.

It’s effectively a "headless" API for agents. It handles:

  • Auto-discovery: Generates a .well-known/mcp.json manifest by scanning your app’s folder structure.
  • Security: Built-in rate limiting and input sanitization (Zod-based).
  • Flexibility: You can register custom tools or just let the middleware auto-discover your existing API routes.

It’s currently running in a demo store I built to test the latency (purchases in <200ms). I’m curious if anyone here thinks this is the way forward, or if we’re stuck with scraping forever.

Repo: https://github.com/Aaron-Savron/WebMCP

u/AyRon2026 — 3 days ago