Next.js MCP Server
by jazelly
The Next.js MCP Server analyzes your Next.js app directory structure and extracts information about all API routes. It provides details about API paths, HTTP methods, request parameters, and schemas.
Last updated: N/A
What is Next.js MCP Server?
The Next.js MCP Server is a tool that scans a Next.js application's directory structure to extract information about API routes. It helps developers understand and document their APIs by providing details about paths, methods, parameters, and schemas.
How to use Next.js MCP Server?
The server can be used via command line or Docker. After installation, run the server using npm run build
and node dist/index.js
. For Cursor integration, configure a mcp.json
file with the server URL. You can also run it directly from node_modules after installation.
Key features of Next.js MCP Server
API route analysis
HTTP method extraction
Parameter identification
Schema extraction
Documentation generation
Use cases of Next.js MCP Server
API documentation
Code analysis
Automated testing
Integration with development tools
FAQ from Next.js MCP Server
Does it work over network?
Does it work over network?
No, due to accessing filesystem directory by path, it will not work if hosted over network.
Which Next.js router does it support?
Which Next.js router does it support?
It only supports Next.js App router projects.
How do I run the server?
How do I run the server?
Use npm run build
and node dist/index.js
after installing the package.
How do I integrate with Cursor?
How do I integrate with Cursor?
Define a mcp.json
file under ~/.cursor
or [projectDir]/.cursor
with the server URL.
What kind of information does it extract?
What kind of information does it extract?
It extracts API paths, HTTP methods, request parameters, status codes, and request/response schemas.