Provides comprehensive access to Next.js documentation URLs, enabling AI agents to intelligently analyze and select relevant documentation pages from 200+ Next.js docs across categories like routing, data fetching, API routes, deployment, and performance optimization.
Next.js Docs MCP
A Model Context Protocol (MCP) server that provides all Next.js documentation URLs to AI agents like Claude for intelligent document selection. This server contains a comprehensive static database of Next.js documentation pages and enables AI agents to analyze and select the most relevant documentation based on user queries.
Key Features
- AI Agent Integration: Provides all documentation URLs for Claude and other AI agents to analyze and select relevant docs
- Comprehensive Static Database: Contains 200+ Next.js documentation URLs across all categories
- No External Dependencies: Pure static URL database with no API calls or crawling required
- Claude-Optimized: Specifically designed for Claude to intelligently select relevant documentation
- npx-Ready: No local installation needed - run via
npx
from any MCP client
Requirements
- Node.js 18 or newer
- VS Code, Cursor, Windsurf, Claude Desktop, Goose, LM Studio, or any other MCP client
Getting Started
Installation
Standard config works in most tools:
Install in VS Code Install in VS Code Insiders
Client-Specific Setup
Use the Claude Code CLI to add the MCP server:
Remove if needed:
Follow the MCP install guide and use the standard config above.
- Guide: https://modelcontextprotocol.io/quickstart/user
Go to Cursor Settings
→ MCP
→ Add new MCP Server
.
Use the following:
- Name: nextjs-docs-mcp
- Type: command
- Command: npx
- Args: @taiyokimura/nextjs-docs-mcp@latest
- Auto start: on (optional)
Add via CLI:
Or use the install links above.
Add MCP Server with:
- Command: npx
- Args: ["@taiyokimura/nextjs-docs-mcp@latest"]
Advanced settings → Extensions → Add custom extension:
- Type: STDIO
- Command: npx
- Args: @taiyokimura/nextjs-docs-mcp@latest
- Enabled: true
Example ~/.config/opencode/opencode.json
:
Open Qodo Gen → Connect more tools → + Add new MCP → Paste the standard config above → Save.
Follow Windsurf MCP documentation and use the standard config above.
- Docs: https://docs.windsurf.com/windsurf/cascade/mcp
Available Tools
1. get_all_docs
Get all Next.js documentation URLs for AI agents to analyze and select relevant ones.
Parameters:
- None required
Description: This tool returns a comprehensive list of all Next.js documentation URLs organized by categories. AI agents like Claude can use this list to analyze user queries and select the most relevant documentation pages. The tool provides structured data including titles, URLs, descriptions, and categories for intelligent document selection.
Response Format: The tool returns a formatted list containing:
- Document titles
- Direct URLs to Next.js documentation
- Brief descriptions
- Category classifications
- Total count of available documents
Usage Examples
Get all Next.js documentation URLs:
Claude Integration Example:
- User asks: "Next.jsのエラーを解消したいです"
- Claude calls:
get_all_docs
- MCP server returns: All 200+ Next.js documentation URLs with titles, descriptions, and categories
- Claude analyzes the list and selects relevant documents:
- "Getting Started: Error Handling"
- "Routing: Error Handling"
- "API Routes Error Handling"
- Claude provides targeted documentation links to the user
Integration with Claude Code:
Then Claude can automatically call the tool when users ask Next.js-related questions.
Development
Building the Package
Publishing to npm
- Update the package name in
package.json
to your scope (e.g., @taiyokimura/nextjs-docs-mcp) - Build the project:
npm run build
- Publish:
npm publish
Updating Documentation URLs
The server uses a static database of Next.js documentation URLs. To update or add new documentation URLs, modify the NEXTJS_DOCS_DATABASE
object in src/index.ts
. The database is organized by categories and contains 200+ documentation pages covering:
- Getting Started guides
- Routing (App Router & Pages Router)
- Data Fetching patterns
- API Routes
- Deployment guides
- Performance optimization
- Guides and best practices
The static approach ensures fast response times and no external dependencies.
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit pull requests or open issues for any improvements.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Provides AI agents with access to a comprehensive database of 200+ Next.js documentation URLs for intelligent document selection and retrieval. Enables Claude and other AI assistants to analyze user queries and recommend the most relevant Next.js documentation pages.
Related MCP Servers
- -securityAlicense-qualityProvides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context.Last updated -21MIT License
- -securityAlicense-qualityA utility tool that analyzes Next.js application routes and provides detailed information about API paths, HTTP methods, parameters, status codes, and request/response schemas.Last updated -1897MIT License
- AsecurityAlicenseAqualityProvides up-to-date documentation for 9000+ libraries directly in your AI code editor, enabling accurate code suggestions and eliminating outdated information.Last updated -193129MIT License
- -securityAlicense-qualityTransforms any documentation website (GitBook, Vercel docs, Next.js sites, etc.) into an AI-accessible knowledge base with intelligent caching and automatic domain detection.Last updated -15MIT License