Skip to content

Steps to setup an MCP server in a Next.js API route #407

@perfectbase

Description

@perfectbase

Is your feature request related to a problem? Please describe.
I've been working on setting up a stateless MCP server within Next.js (on Vercel) using the app router API routes, but I'm hitting a wall.

Describe the solution you'd like
It would be nice to have an adapter specifically designed for Next.js.

Describe alternatives you've considered
I attempted to adapt the request/response objects from the Next.js API route to align with the types from the MCP package, but couldn't get it to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions