next-mcp-server_
next-mcp-server
|
CA:
next-mcp-server
$
Features
Router Analysis
API Documentation
LLM Integration
Cursor Integration
Docker Support
Router Analysis
Scans your Next.js app directory structure and extracts information about all API routes.
[
{
"filePath": "/app/api/test/route.ts",
"implementationPath": "/app/api/test/route.ts",
"apiPath": "/api/test",
"handlers": [
{
"method": "GET",
"path": "/api/test",
"functionSignature": "export async function GET(request: Request)",
"description": "Get test data",
"parameters": [],
"statusCodes": [200]
}
]
}
]Installation
npm install next-mcp-server
Docker
docker build -t mcp/next -f Dockerfile . docker run mcp/next -d
Usage
Command Line
Cursor Integration
API Usage
Command Line
npm run build node dist/index.js
Restrictions
- Due to the nature of accessing filesystem directory by path, it will not work if hosted over network
- Only supports Next.js App router projects
Connect & Share