Next.js文档
STDIO为AI智能选择文档的Next.js文档MCP服务器
为AI智能选择文档的Next.js文档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.
npx from any MCP clientStandard config works in most tools:
{ "mcpServers": { "nextjs-docs-mcp": { "command": "npx", "args": ["@taiyokimura/nextjs-docs-mcp@latest"] } } }
Install in VS Code Install in VS Code Insiders
Use the Claude Code CLI to add the MCP server:
claude mcp add nextjs-docs-mcp -- npx @taiyokimura/nextjs-docs-mcp@latest
Remove if needed:
claude mcp remove nextjs-docs-mcp
Follow the MCP install guide and use the standard config above.
Go to Cursor Settings → MCP → Add new MCP Server.
Use the following:
Add via CLI:
code --add-mcp '{"name":"nextjs-docs-mcp","command":"npx","args":["@taiyokimura/nextjs-docs-mcp@latest"]}'
Or use the install links above.
Add MCP Server with:
Advanced settings → Extensions → Add custom extension:
Example ~/.config/opencode/opencode.json:
{ "$schema": "https://opencode.ai/config.json", "mcp": { "nextjs-docs-mcp": { "type": "local", "command": [ "npx", "@taiyokimura/nextjs-docs-mcp@latest" ], "enabled": true } } }
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.
Get all Next.js documentation URLs for AI agents to analyze and select relevant ones.
Parameters:
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:
{ "tool": "get_all_docs" }
get_all_docs# Claude Code内で使用 claude mcp add nextjs-docs-mcp -- npx @taiyokimura/nextjs-docs-mcp@latest
Then Claude can automatically call the tool when users ask Next.js-related questions.
npm run build
package.json to your scope (e.g., @taiyokimura/nextjs-docs-mcp)npm run buildnpm publishThe 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:
The static approach ensures fast response times and no external dependencies.
MIT License
Contributions are welcome! Please feel free to submit pull requests or open issues for any improvements.