Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

next-mcp-server

> 编程语言
Open source

Help LLMs to understand your Next apps better

99 stars0 likes0 views
WebsiteGitHub

About

Help LLMs to understand your Next apps better

Next.js MCP Server

Demo

Features

  • get-routers-info

    The Router Analyzer scans your Next.js app directory structure and extracts information about all API routes, including:

    • API paths
    • HTTP methods (GET, POST, PUT, DELETE, etc.)
    • Request parameters
    • Status codes
    • Request and response schemas

Installation

bash
npm install next-mcp-server

Or if you're using pnpm:

bash
pnpm add next-mcp-server

Usage

Command Line

You can run the mcp server directly:

bash
npm run build
node dist/index.js

Docker

bash
docker build -t mcp/next -f Dockerfile .
docker run mcp/next -d

For cursor usage, define a mcp.json under ~/.cursor or [projectDir]/.cursor

{
  "mcpServers": {
    "next.js": {
      "url": "http://localhost:4857/sse"
    }
  }
}

The url here could vary based on your .env settings within the project.

Output

The tool generates detailed information about each route:

…

Development

To run tests:

bash
npm run test

To run the mcp server locally:

bash
npm run build
node dist/index.js 

To run it from node_modules after npm i:

bash
node node_modules/next-mcp-server/dist/index.js

To run the playground:

bash
pnpm --filter playground dev

How It Works

The tool:

  1. Scans your Next.js app directory structure for route files
  2. Analyzes each route file to extract HTTP methods, paths, parameters, etc.
  3. Extracts documentation from comments
  4. Returns a structured representation of all your API routes

Restrictions

  1. Due to the nature of accessing filesystem directory by path, it will not work if hosted over network
  2. Only supports Next.js App router projects

License

MIT

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言