This sample app uses the Vercel MCP Adapter that allows you to drop in an MCP server on a group of routes in any Next.js project.
Update app/[transport]/route.ts
with your tools, prompts, and resources following the MCP TypeScript SDK documentation.
This sample app logs the user question and the assistant respond to Inkeep analytics using the inkeep-analytics-typescript sdk
- You need to set INKEEP_API_KEY. If you don't have one, create one in your Inkeep portal. See more info related in our documentation
- You can optionally set INKEEP_API_BASE_URL (defaults to 'https://api.inkeep.com/v1')
- Make sure you have Fluid compute enabled for efficient execution
- After enabling Fluid compute, open
app/route.ts
and adjustmaxDuration
to 800 if you using a Vercel Pro or Enterprise account - Deploy the Next.js MCP template