zed -nextjs
NextJS MCP Extension for Zed
claude mcp add --transport stdio mruprizing-zed-mcp-server-nextjs npx -y next-devtools-mcp \ --env DEBUG="next-devtools-mcp:*" \ --env NODE_ENV="production"
How to use
This MCP server adds Next.js DevTools capabilities to Zed via the Next.js DevTools MCP extension. It provides access to Next.js documentation and best practices, automated upgrade tools for upgrading to Next.js 16+, a cache components workflow, and integrated browser testing with Playwright. It also offers real-time diagnostics from a Next.js development server (requires Next.js 16+). In Zed, you’ll find the MCP server in the Agent Panel after installation, where you can invoke prompts like asking for upgrade guidance, exploring Next.js routing structures, or enabling cache components in your project. Use the documented prompts to query docs, trigger codemods for upgrades, configure caching behavior, and run automated Playwright tests to validate changes.
How to install
Prerequisites:
- Node.js v20.19 or newer
- npm or pnpm
- A Next.js project (optional but recommended for full features)
Installation steps:
- Ensure Node.js and npm/pnpm are installed on your system.
- Install the MCP server via the Zed Extensions marketplace:
- Open Zed, press Cmd/Ctrl+Shift+P, choose Extensions: Install Extensions, and search for "Next.js DevTools MCP".
- Install the extension to enable the MCP server inside Zed.
- If you are developing the MCP locally, clone the repository and install dependencies:
- git clone <repository-url>
- cd zed-extension/
- npm install (or pnpm install)
- Run or attach the MCP server within Zed via the Extensions panel. If you are testing locally, you can also run using npx as described in the mcp_config section.
Optional Dev Extension setup (for development):
- Clone this repository and open it in Zed.
- Press Cmd/Ctrl+Shift+P and select Extensions: Install Dev Extension.
- Point to the zed-extension directory to load the dev extension build.
Additional notes
- This MCP extension relies on Next.js 16+ features for full runtime diagnostics.
- You can trigger automated Next.js 16 upgrades using the built-in Upgrade Tools.
- Enable Browser Testing integration with Playwright to run automated tests against your Next.js app.
- If you encounter issues with extensions loading, check Zed logs via Cmd/Ctrl+Shift+P → Zed: Open Log.
- The environment variables block in mcp_config is a placeholder for common settings; adjust according to your deployment needs (e.g., API keys, debug flags).
- The npm package referenced is next-devtools-mcp; ensure compatibility with your project setup before upgrading.
Related MCP Servers
goose
an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM
cunzhi
告别AI提前终止烦恼,助力AI更加持久
probe
AI-friendly semantic code search engine for large codebases. Combines ripgrep speed with tree-sitter AST parsing. Powers AI coding assistants with precise, context-aware code understanding.
mcp-center
A centralized platform for managing and connecting MCP servers. MCP Center provides a high-performance proxy service that enables seamless communication between MCP clients and multiple MCP servers.
perplexity-web-api
🔍 Perplexity AI MCP without API key
mcp-system-monitor
A Model Context Protocol (MCP) server implementation designed for AI agents to monitor and interact with Linux servers (Ubuntu, CentOS, RedHat, etc.). This server provides comprehensive system information including CPU, memory, disk, network, and process data through both MCP protocol and HTTP REST API