Skip to main content
Glama

Next.js MCP Server

by vertile-ai

Next.js MCP サーバー

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

デモ

ルーター分析デモ

概要

  • 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

仕組み

ツール:

  1. Next.js アプリのディレクトリ構造をスキャンしてルートファイルを探します
  2. 各ルート ファイルを分析して、HTTP メソッド、パス、パラメータなどを抽出します。
  3. コメントからドキュメントを抽出します
  4. すべてのAPIルートの構造化された表現を返します

ライセンス

マサチューセッツ工科大学

-
security - not tested
A
license - permissive license
-
quality - not tested

Next.js アプリケーションのルートを分析し、API パス、HTTP メソッド、パラメーター、ステータス コード、要求/応答スキーマに関する詳細情報を提供するユーティリティ ツール。

  1. デモ
    1. 概要
      1. インストール
        1. 使用法
          1. コマンドライン
          2. ドッカー
        2. 出力
          1. 発達
            1. 仕組み
              1. ライセンス

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  An unofficial JavaScript SDK to create customized servers for the Model Context Protocol, allowing definition of prompts, resources, and tools for tailored interactions.
                  Last updated -
                  6
                  2
                  JavaScript
                  Apache 2.0
                  • Linux
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  A comprehensive Model Context Protocol server that provides advanced Node.js development tooling for automating project creation, component generation, package management, and documentation with AI-powered assistance.
                  Last updated -
                  7
                  2
                  JavaScript
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  Node.js server implementing Model Context Protocol that enables interaction with TaskWarrior through natural language to view, filter, add, and complete tasks.
                  Last updated -
                  3
                  13
                  1
                  JavaScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Node.js and TypeScript server project that provides a simple starter example with Express.js web server, supporting hot-reload, testing, and modular structure.
                  Last updated -
                  TypeScript

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/vertile-ai/next-mcp-server'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server