MCP.so
登录

@ld338/nextjs MCP Server

@ld338

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

ld338

关于 @ld338/nextjs MCP Server

暂无概览

@ld338/nextjs MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "nextjs-mcp-server": {
      "command": "npx",
      "args": [
        "next",
        "--version"
      ]
    }
  }
}

@ld338/nextjs MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is @ld338/nextjs-mcp-server?

A Model Context Protocol (MCP) server for managing Next.js development servers with comprehensive error monitoring. It allows you to start, stop, restart, and monitor multiple Next.js dev servers programmatically or via MCP-compatible clients like Claude, Copilot, or custom tools.

How to use @ld338/nextjs-mcp-server?

Install globally via npm, yarn, or pnpm, then configure your MCP client (e.g., Claude Desktop or GitHub Copilot) to use the nextjs-mcp-server command. Once configured, issue natural-language commands (like “start a Next.js server in the current directory”) or send MCP tool requests directly. The server communicates over stdio.

Key features of @ld338/nextjs-mcp-server

  • Start, stop, restart Next.js dev servers in any directory
  • List all running servers with status, uptime, and performance
  • Automatic port detection and conflict resolution
  • Real-time logs and error tracking for managed servers
  • Full support for Next.js Turbo mode
  • Cross-platform on Windows, macOS, and Linux

Use cases of @ld338/nextjs-mcp-server

  • Manage multiple Next.js dev servers simultaneously from an AI assistant
  • Automate server lifecycle during CI/CD or local development workflows
  • Remotely inspect server logs and errors using MCP‑compatible tools
  • Integrate Next.js server control into custom developer tooling or editors

常见问题

1

What are the system requirements?

Node.js 18.0.0 or higher, Next.js 12.0.0 or higher in managed projects, and Windows 10+, macOS 10.15+, or Linux (Ubuntu 18.04+).

2

How do I configure it for Claude Desktop?

Add a `"nextjs-manager"` entry under `"mcpServers"` in your Claude Desktop config file (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS) with `"command": "nextjs-mcp-server"`.

3

What if a server won’t start?

Check if the port is already in use (e.g., `netstat -an | grep :3000`) and verify the Next.js installation (`npx next --version`). The server provides detailed error messages for invalid projects or port conflicts.

4

Where are running servers tracked?

In `~/.nextjs-mcp-servers.json`. This file is updated on start and stop, and stale processes are automatically removed. Only servers started via this tool are logged.

5

Can I use the server with GitHub Copilot?

Yes. Add a `"nextjs-manager"` entry under `"mcp.servers"` in your Copilot configuration with `"command": "nextjs-mcp-server"`.

评论

其他 分类下的更多 MCP 服务器