Nextscan

io.github.berkayderin由 GitHub 帳號 berkayderin 發布v1.0.1更新於 Oct 24, 2026

MCP server that scans Next.js projects and returns a compact summary

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

本機 MCP 伺服器,掃描 Next.js 專案並回傳一份精簡摘要,涵蓋路由、API 端點、ORM 結構與安全性問題。

可以做什麼
  • 掃描 Next.js 專案根目錄並回傳一份精簡總覽
  • 檢視路由樹,含頁面、版面、API、動態、靜態、用戶端與伺服端標記
  • 列出 API 端點及其驗證與輸入檢查狀態
  • 整理 Prisma 或 Drizzle 的模型與關聯,包括孤立模型
  • 檢查硬編碼密鑰、環境變數外洩、缺少驗證與限流等安全性問題
  • 透過 focus 參數將掃描限定為 routes、api、schema 或 security
適用情境
適合在助理需要快速了解陌生的 Next.js 程式庫時使用,也適合在不逐一翻閱檔案的情況下,對路由、API 端點與資料庫結構做一次快速的結構與安全性檢查。
執行需求
以本機 stdio 程序執行,從 npm 套件安裝;需要 Node.js 18+ 與相容 MCP 的用戶端。scan 工具需要 Next.js 專案根目錄的絕對路徑。未宣告任何驗證、環境變數或標頭。
安裝前請注意
掃描會讀取本機專案檔案,其中可能包含硬編碼密鑰;結果會回傳給助理及其模型供應商。此工具為唯讀分析,但仍需留意用戶端記錄或轉送了哪些內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Nextscan,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

nextscan

MCP server that scans Next.js projects and returns a compact summary. One tool call → full project overview.

What it does

Without nextscanWith nextscan
Manual file-by-file explorationSingle scan call
Multiple tool calls to understand routesCompact route tree with flags
Missing security issuesHardcoded secrets + env leak detection
Unknown API coverageAuth + validation status per endpoint
Schema guessworkPrisma/Drizzle relation mapping

Quick Install

bash
# Clone and buildcd nextscannpm installnpm run build
# Add to Claude Codeclaude mcp add nextscan -- node /path/to/nextscan/dist/index.js

Tool: scan

ParameterTypeRequiredDescription
pathstringYesAbsolute path to Next.js project root
focusenumNoroutes | api | schema | security

Example Output

nextscan — my-app────────────────────────────────────────Root: /Users/dev/my-app   src/ : yes  app/ : yes  middleware: yes   ORM  : prisma
Routes   Pages: 12  Layouts: 3  API: 5   Dynamic: 4  Static: 8   Client: 3  Server: 9   Groups: (marketing), (auth)   Matchers: /dashboard/:path*, /api/:path*   ┌─ Pages   ├─ /   ├─ /about   ├─ /dashboard [client]   ├─ /blog/[slug] [dyn,SSG]   └─ /settings [client]
API Endpoints   Total: 5  Unprotected: 1   ├─ GET,POST /api/users [auth:next-auth | val:zod]   ├─ GET /api/health [no-auth,no-rate-limit]   └─ POST /api/webhook [no-auth,no-validation]
Schema   Models: 5  Relations: 4   Orphans: AuditLog   User ─< Post (1:N)   User ─ Profile (1:1)   Post >─< Tag (N:N)
Security   Score: 75/100  Headers: yes  Middleware: yes   [high] API route /api/health has no auth: [GET]   [medium] No rate limiting on /api/users

Example Prompts

  • "Scan my Next.js project at /Users/dev/my-app"
  • "Check the security of my Next.js app"
  • "Show me the route structure"
  • "Analyze the database schema"

Architecture

src/├── index.ts              # MCP server entry point├── tools/scan.ts         # Orchestrator├── analyzers/│   ├── routes.ts         # App router analysis│   ├── api.ts            # API endpoint analysis│   ├── schema.ts         # Schema orchestration│   └── security.ts       # Security scanning├── parsers/│   ├── typescript.ts     # ts-morph utilities│   ├── prisma.ts         # Regex-based Prisma parser│   └── drizzle.ts        # AST-based Drizzle parser├── formatters/│   └── compact.ts        # Unicode tree formatter└── utils/    ├── fs.ts             # File system utilities    └── detect.ts         # Project detection

Requirements

  • Node.js 18+
  • An MCP-compatible client (Claude Code, Claude Desktop, etc.)

Development

bash
npm installnpm run buildnpm testnpm run test:coverage

Author

Berkay Derin — github.com/berkayderin

License

MIT

來源:README.md,提交 04953fb

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分