How to Build an MCP Server in Next.js (and What Running One in Production Taught Me)
To build an MCP server: serve one endpoint over Streamable HTTP, register tools with typed schemas, then add auth and rate limits. Here is how mine is wired in Next.js.