How I made my website fully agent-readable: an MCP server + NLWeb /ask in Next.js
A developer has detailed how to make a personal website agent-readable by implementing an MCP server and an NLWeb /ask endpoint using Next.js. The approach involves setting up specific API routes for AI agents, ensuring they are accessible without locale prefixes that can interfere with agent requests. This is achieved by rewriting agent-specific paths before the internationalization middleware processes them. Additionally, a dependency-free MCP server was created to handle tool discovery and execution, avoiding conflicts with existing project dependencies. AI
IMPACT Enables websites to be directly interacted with by AI agents, streamlining workflows and information retrieval.