Next.js MCP Server
Next.js MCP サーバー
Next.js アプリケーションのルートを分析し、詳細な情報を提供するユーティリティ ツールです。
デモ

Related MCP server: MCP Multi-Context Hook Generator
概要
get-routers-infoRouter Analyzer は、Next.js アプリのディレクトリ構造をスキャンし、次のようなすべての API ルートに関する情報を抽出します。
APIパス
HTTP メソッド (GET、POST、PUT、DELETE など)
リクエストパラメータ
ステータスコード
リクエストとレスポンスのスキーマ
これは、ドキュメント作成、テスト、または API 管理ツールとの統合に特に役立ちます。
インストール
npm install next-mcp-serverまたはpnpmを使用している場合:
pnpm add next-mcp-server使用法
コマンドライン
mcp サーバーを直接実行できます。
npm run build
node dist/index.jsドッカー
docker build -t mcp/next -f Dockerfile .
docker run mcp/next -d出力
このツールは各ルートに関する詳細情報を生成します。
[
{
"filePath": "/path/to/your/app/api/test/route.ts",
"implementationPath": "/path/to/your/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]
},
{
"method": "POST",
"path": "/api/test",
"functionSignature": "export async function POST(request: Request)",
"description": "Create test data",
"parameters": [],
"requestBodySchema": "{ name: string }",
"statusCodes": [201, 400]
}
]
}
]発達
テストを実行するには:
node run-router-test.js仕組み
ツール:
Next.js アプリのディレクトリ構造をスキャンしてルートファイルを探します
各ルート ファイルを分析して、HTTP メソッド、パス、パラメータなどを抽出します。
コメントからドキュメントを抽出します
すべてのAPIルートの構造化された表現を返します
ライセンス
マサチューセッツ工科大学
This server cannot be deployed
Maintenance
Related MCP Connectors
Detect breaking changes, generate changelogs, diff, and validate OpenAPI specs.
Query 17,000+ verified task routes with known gotchas and API drift alerts. Free keyless reads.
Schema-aware API monitoring: diff OpenAPI specs for breaking changes, manage endpoints.
AI-callable tools for API mocking, testing, monitoring, security, and automation.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceAutomatically generates typed React hooks for Next.js projects by crawling API routes, GraphQL queries, and components. Analyzes pages to suggest optimal render modes (SSR/CSR/ISR) and produces documentation with performance guidance.-
- FlicenseNot gradedqualityDmaintenanceAutomatically generates typed React hooks for Next.js projects by crawling API routes, GraphQL queries, and components. Analyzes pages to suggest optimal render modes (SSR/CSR/ISR) and produces comprehensive documentation with AI-powered guidance.-

Next.js DevTools MCPofficial
AlicenseAqualityBmaintenanceProvides specialized development tools and utilities for Next.js, allowing AI agents to perform runtime diagnostics and access official documentation. It enables automated context initialization and real-time interaction with Next.js development servers to query application state.4128,501 npm824MIT- AlicenseNot gradedqualityCmaintenanceProvides code analysis for Next.js projects through the Model Context Protocol, enabling IDE and LLM integration to identify unused files, dead code, and redundant API endpoints.18 npm8MIT