next-devtools-mcp
MCP ServerFreeNext.js development tools MCP server with stdio transport
Capabilities8 decomposed
next.js project introspection via mcp protocol
Medium confidenceExposes Next.js project metadata and configuration through the Model Context Protocol (MCP) using stdio transport, allowing Claude and other MCP-compatible clients to query project structure, routes, pages, and configuration without direct filesystem access. Implements MCP resource and tool schemas to standardize how LLMs interact with Next.js-specific project information.
Purpose-built MCP server specifically for Next.js with stdio transport, providing structured access to Next.js-specific metadata (App Router, Pages Router, middleware) through standardized MCP resource and tool schemas rather than generic filesystem access
More specialized than generic MCP filesystem servers because it understands Next.js semantics (routes, pages, API handlers) and exposes them as first-class MCP resources, enabling Claude to reason about project structure without parsing configuration files
next.js route and page discovery
Medium confidenceAutomatically discovers and catalogs all Next.js routes (App Router and Pages Router), page components, API routes, and middleware through AST parsing and filesystem scanning. Exposes discovered routes as MCP resources with metadata including route parameters, HTTP methods, and component locations, enabling LLMs to understand the complete routing topology without manual configuration.
Implements dual-mode route discovery supporting both Next.js App Router (file-based routing with dynamic segments) and legacy Pages Router, with automatic detection of route type and parameter extraction from file paths and segment conventions
More comprehensive than static route listing because it parses dynamic segments, extracts parameter names from bracket notation, and distinguishes between page routes and API routes, providing LLMs with actionable routing metadata
development server lifecycle management via mcp
Medium confidenceProvides MCP tools to start, stop, and monitor the Next.js development server (next dev) as a subprocess, with stdio/stderr capture and process state tracking. Enables LLM clients to control the dev server lifecycle without direct shell access, integrating server status into the MCP context for real-time feedback on compilation and runtime errors.
Wraps Next.js dev server as an MCP-controlled subprocess with integrated stdio capture and state tracking, allowing LLMs to manage server lifecycle as part of the MCP conversation context rather than requiring external terminal interaction
More integrated than shell-based dev server management because it provides structured MCP tools with state awareness and error capture, enabling Claude to react to server events and logs within the conversation flow
file-based context injection for code generation
Medium confidenceImplements MCP resources that expose Next.js project files (pages, components, API routes, config) as readable context that Claude can request on-demand. Uses lazy-loading and caching to avoid overwhelming context windows, with support for filtering by file type, directory, or pattern to provide targeted code context for generation tasks.
Implements lazy-loaded MCP resources for project files with optional caching and filtering, allowing Claude to request specific files or directories on-demand rather than pre-loading entire project context, reducing token usage for large projects
More efficient than sending entire project as context because it uses MCP resource requests to load files on-demand, with filtering options to provide only relevant code samples, reducing context window pressure
typescript/javascript type information exposure
Medium confidenceExtracts and exposes TypeScript type definitions, interfaces, and type information from the Next.js project through MCP resources, enabling Claude to understand component props, API response types, and function signatures. Uses TypeScript compiler API or similar to parse type annotations and generate type documentation accessible via MCP.
Extracts TypeScript type information from the project and exposes it as MCP resources, allowing Claude to access type definitions without parsing source code, enabling type-aware code generation that respects existing type contracts
More precise than inferring types from code comments or examples because it uses TypeScript compiler API to extract actual type definitions, ensuring Claude generates code that matches the project's type system
environment variable and secrets management interface
Medium confidenceProvides MCP tools to read and validate environment variables from .env, .env.local, and .env.production files without exposing sensitive values directly. Implements safe access patterns that allow Claude to understand what environment variables are available and their expected types/formats while preventing accidental exposure of secrets in conversation logs.
Implements safe environment variable access that exposes variable names and metadata without revealing actual secret values, using a whitelist/metadata approach to allow Claude to generate correct code while preventing accidental secret exposure
More secure than exposing raw .env files because it provides a controlled interface that lists available variables and their expected types without revealing sensitive values, reducing risk of secrets leaking in conversation logs
build and compilation error reporting
Medium confidenceCaptures and exposes Next.js build errors, TypeScript compilation errors, and ESLint warnings through MCP resources, providing structured error information including file paths, line numbers, error messages, and suggested fixes. Integrates with the dev server to report errors in real-time as code changes are made.
Integrates with Next.js dev server to capture real-time build and compilation errors and expose them as MCP resources with structured metadata, enabling Claude to receive immediate feedback on generated code without manual error checking
More actionable than raw build output because it parses errors into structured format with file locations and line numbers, allowing Claude to understand exactly what went wrong and where, enabling targeted code fixes
performance metrics and bundle analysis
Medium confidenceExposes Next.js performance metrics (build time, bundle size, page load metrics) and provides MCP tools to analyze bundle composition, identify large dependencies, and track performance regressions. Integrates with Next.js built-in analytics and optional tools like Bundle Analyzer to provide actionable performance insights.
Integrates Next.js build analytics with MCP to expose bundle composition and performance metrics as queryable resources, enabling Claude to make performance-aware code generation decisions based on actual bundle impact
More integrated than standalone bundle analyzers because it provides MCP-accessible performance data within the Claude conversation context, allowing Claude to consider bundle size when generating code
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with next-devtools-mcp, ranked by overlap. Discovered automatically through the match graph.
next-devtools-mcp
Next.js development tools MCP server with stdio transport
Next.js MCP Server Template
** (Typescript) - A starter Next.js project that uses the MCP Adapter to allow MCP clients to connect and access resources.
xmcp
The TypeScript MCP framework
@modelcontextprotocol/server-basic-svelte
Basic MCP App Server example using Svelte
@modelcontextprotocol/server-basic-vue
Basic MCP App Server example using Vue
Open-Sourced MCP Servers Directory
** - A curated list of MCP servers by **[mcpso](https://mcp.so)**
Best For
- ✓AI-assisted Next.js development workflows using Claude
- ✓Teams building LLM agents that need to understand Next.js projects
- ✓Developers using Claude Desktop or MCP-compatible IDEs
- ✓LLM-assisted code generation for new pages or API routes
- ✓AI agents that need to understand existing routing before suggesting changes
- ✓Developers using Claude to refactor or extend Next.js applications
- ✓Automated Next.js development workflows in Claude Desktop
- ✓LLM agents that need to test code changes by running the dev server
Known Limitations
- ⚠Requires MCP client support — not compatible with REST APIs or direct SDK usage
- ⚠Limited to stdio transport — no network/HTTP transport option
- ⚠Project introspection is read-only; cannot modify configuration via MCP
- ⚠Depends on Next.js project being properly initialized with valid configuration
- ⚠Route discovery may miss dynamically-generated routes created at runtime
- ⚠Requires filesystem access to scan project directories
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Package Details
About
Next.js development tools MCP server with stdio transport
Categories
Alternatives to next-devtools-mcp
Are you the builder of next-devtools-mcp?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →