nextscan
nextscan
MCP-сервер, который сканирует проекты Next.js и возвращает компактную сводку. Один вызов инструмента — полный обзор проекта.
Что делает
Без nextscan | С nextscan |
Ручное исследование файл за файлом | Один вызов |
Множество вызовов инструментов для понимания маршрутов | Компактное дерево маршрутов с флагами |
Пропущенные проблемы безопасности | Обнаружение захардкоженных секретов и утечек env |
Неизвестное покрытие API | Статус авторизации и валидации для каждой конечной точки |
Гадание по схеме | Сопоставление отношений Prisma/Drizzle |
Related MCP server: guardvibe
Быстрая установка
# Clone and build
cd nextscan
npm install
npm run build
# Add to Claude Code
claude mcp add nextscan -- node /path/to/nextscan/dist/index.jsИнструмент: scan
Параметр | Тип | Обязательный | Описание |
| string | Да | Абсолютный путь к корню проекта Next.js |
| enum | Нет |
|
Пример вывода
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Примеры запросов
«Просканируй мой проект Next.js по адресу /Users/dev/my-app»
«Проверь безопасность моего приложения Next.js»
«Покажи структуру маршрутов»
«Проанализируй схему базы данных»
Архитектура
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Требования
Node.js 18+
MCP-совместимый клиент (Claude Code, Claude Desktop и т.д.)
Разработка
npm install
npm run build
npm test
npm run test:coverageАвтор
Berkay Derin — github.com/berkayderin
Лицензия
MIT
Available Tools
1 toolscanA
Scan a Next.js project and return a compact summary of routes, API endpoints, schema, and security issues
Inputs: path (required), focus.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion between tools. The single tool has a clear, distinct purpose of scanning a Next.js project.
Only one tool exists, so naming is inherently consistent. The verb 'scan' clearly indicates the action.
A single tool is extremely thin for a server, suggesting the surface is severely underdeveloped. Even if the purpose is narrow, most useful servers would expose multiple operations.
The scan tool provides a comprehensive overview of a Next.js project, but it is a read-only operation. Missing other aspects like specific security fix suggestions or detailed endpoint management, leaving notable gaps for deeper workflows.
Maintenance
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Security, SEO and AI-visibility scanner for web apps · free scans and focused checks via MCP.
Free MCP server that audits any public URL: technical SEO, Core Web Vitals, indexing checks.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA utility tool that analyzes Next.js application routes and provides detailed information about API paths, HTTP methods, parameters, status codes, and request/response schemas.99MIT
- AlicenseBqualityBmaintenanceSecurity MCP server with 300+ rules for AI-generated code. Scans Next.js, Supabase, Clerk, Stripe, Prisma, Hono, GraphQL and 20+ modules. Zero config, runs locally.391,244 npm6Apache 2.0
- AlicenseAqualityDmaintenanceA comprehensive MCP server for frontend analysis. It provides Google Lighthouse audits, code quality checks, SEO metadata verification, accessibility analysis, and bundle optimization for React and Next.js projects.83MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible clients to inspect Next.js codebases, analyze App Router and Pages Router structure, discover API routes, and audit build performance through controlled tools.MIT