Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

MERN MCP

by IrtezaAsadRizviversion 0.1.0i★ 6iRuns on your computerRepository ↗
Registry nameio.github.IrtezaAsadRizvi/mern-mcp

How to install

What it does

Scaffolds MERN CRUD resources into existing Express and React codebases.

  • Connects Runs on your computer
  • Account or key No key needed · 1 setting to fill in (MERN_MCP_PROJECT_ROOT)
  • Category Other

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity10/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness3/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score13/100

Quality: Passed 1/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install MERN MCP. Follow https://mcp.popnx.com/i/irtezaasadrizvi-mern-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 1/3 checks · Runs on your computer · ✓ Commands checked Nov 13, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

1 setting(s) to fill in (MERN_MCP_PROJECT_ROOT) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server MERN MCP for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "mern": { "command": "npx", "args": [ "-y", "mern-mcp" ], "env": { "MERN_MCP_PROJECT_ROOT": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MERN_MCP_PROJECT_ROOT, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MERN MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • MERN_MCP_PROJECT_ROOT Absolute path to the target MERN project root.

    Descriptions are as written by the maker.

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "mern": {
          "command": "npx",
          "args": [
            "-y",
            "mern-mcp"
          ],
          "env": {
            "MERN_MCP_PROJECT_ROOT": "your-value"
          }
        }
      }
    }
  5. Quit Claude and open it again

  6. Try it

    Use MERN MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using MERN MCP or shows a MERN MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect MERN MCP yet

MERN MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect MERN MCP

  • 1 setting(s) to fill in (MERN_MCP_PROJECT_ROOT) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • 1 setting(s) to fill in (MERN_MCP_PROJECT_ROOT) · Install Node.js on your computer first (one time)
  • 1 setting(s) to fill in (MERN_MCP_PROJECT_ROOT) · Install Node.js on your computer first (one time)
  • 1 setting(s) to fill in (MERN_MCP_PROJECT_ROOT) · Install Node.js on your computer first (one time)

B · Others in Other that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

1 setting(s) to fill in (MERN_MCP_PROJECT_ROOT) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server MERN MCP for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user mern --env MERN_MCP_PROJECT_ROOT=your-value -- npx -y mern-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MERN_MCP_PROJECT_ROOT, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MERN MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • MERN_MCP_PROJECT_ROOT Absolute path to the target MERN project root.

    Descriptions are as written by the maker.

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user mern --env MERN_MCP_PROJECT_ROOT=your-value -- npx -y mern-mcp
  5. Type /mcp in Claude Code

    You should see MERN MCP listed as connected

  6. Try it

    Use MERN MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using MERN MCP or shows a MERN MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

1 setting(s) to fill in (MERN_MCP_PROJECT_ROOT) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server MERN MCP for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "mern": { "command": "npx", "args": [ "-y", "mern-mcp" ], "env": { "MERN_MCP_PROJECT_ROOT": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MERN_MCP_PROJECT_ROOT, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MERN MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • MERN_MCP_PROJECT_ROOT Absolute path to the target MERN project root.

    Descriptions are as written by the maker.

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the MERN MCP settings, MERN_MCP_PROJECT_ROOT is empty; add your key and save

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use MERN MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using MERN MCP or shows a MERN MCP tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

1 setting(s) to fill in (MERN_MCP_PROJECT_ROOT) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server MERN MCP for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "mern": { "type": "stdio", "command": "npx", "args": [ "-y", "mern-mcp" ], "env": { "MERN_MCP_PROJECT_ROOT": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MERN_MCP_PROJECT_ROOT, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MERN MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • MERN_MCP_PROJECT_ROOT Absolute path to the target MERN project root.

    Descriptions are as written by the maker.

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the MERN MCP settings, MERN_MCP_PROJECT_ROOT is empty; add your key and save

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use MERN MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using MERN MCP or shows a MERN MCP tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use MERN MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user mern --env MERN_MCP_PROJECT_ROOT=your-value -- npx -y mern-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "mern": {
      "command": "npx",
      "args": [
        "-y",
        "mern-mcp"
      ],
      "env": {
        "MERN_MCP_PROJECT_ROOT": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "mern": {
      "command": "npx",
      "args": [
        "-y",
        "mern-mcp"
      ],
      "env": {
        "MERN_MCP_PROJECT_ROOT": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "mern": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mern-mcp"
      ],
      "env": {
        "MERN_MCP_PROJECT_ROOT": "your-value"
      }
    }
  }
}

Values you fill in

  • MERN_MCP_PROJECT_ROOT required env
    Absolute path to the target MERN project root.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
39/wk
Licencei
No licence stated
Connection
Runs on your computer
Latest versioni
0.1.0
Categoryi
Other
Published to registryi
Mar 29, 2026
Code last changedi
Mar 29, 2026
Maker
IrtezaAsadRizvi
Packages
npm: mern-mcp
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account IrtezaAsadRizvi, which owns the repo

  • ! Caution

    Still maintained

    Code last changed 8 months ago, more than 6 months ago

  • ✕ Fail

    Has a licence

    No licence file found in the repo

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for mern-mcp@0.1.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/irtezaasadrizvi-mern-mcp.svg)](https://mcp.popnx.com/en/servers/irtezaasadrizvi-mern-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Otheri

  • More stars than 95% of the other 20693 servers in this category
  • Published to the registry more recently than 3% of the other 20693 servers in this category
  • Basic checks equal to or better than 7% of the other 20693 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is MERN MCP safe?

It passed 1 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 8 months ago, and the latest version (0.1.0) reached the registry 8 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

by koala73Widely used★ 90.9KUpdated 3 days ago

Runs in the cloud✓ service owner · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

by openstatusHQWidely used★ 9.3KUpdated 2 months ago

Runs in the cloud✓ service owner · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

by JanDeDobbeleerWidely used★ 23.8K Stars for the whole repoUpdated 30 days ago

Runs in the cloud✓ service owner · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

by Klavis-AIGrowing★ 5.8KUpdated 14 months ago

Runs in the cloudRepo archived✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

by jitsucomWidely used★ 5.1KUpdated 4 months ago

Runs in the cloud✓ service owner · jitsu.com
Compared with similar ones
This one
MERN MCP
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks1/34/44/44/41/44/4
License–AGPL-3.0AGPL-3.0MITApache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

MERN MCP

AI-Powered MERN Stack CRUD Scaffolder and MCP Server

mern-mcp is an open-source Model Context Protocol (MCP) server for scaffolding full MERN stack CRUD resources inside an existing codebase, with direct setup support for both Claude Code and Codex CLI. It generates MongoDB and Mongoose models, Express services and routes, React client modules, and the wiring needed to plug new resources into a real application with a safer preview-before-apply workflow.

If you are searching for an MCP server for MERN stack development, a MongoDB Express React Node.js CRUD generator, a Mongoose plus Express boilerplate generator, or a React admin scaffolder that works with AI coding assistants, this repository is built for that exact use case.

Index: Why Useful · Generated Files · Install · Config · Claude Code · Codex CLI · Docker · MCP Tools · Example · Project Styles · Natural Language · Preview Workflow · Who It's For

Why This Repository Is Useful

Teams usually do not need another generic code generator. They need a local MCP tool that can inspect a project, follow an existing folder structure, create repeatable CRUD slices, and avoid blind writes. mern-mcp focuses on that practical workflow.

Even if you already have MCPs for Next.js, Node.js, or MongoDB, those tools usually help at the framework or database level. mern-mcp is useful because it handles the full resource workflow in one place: model, service, controller, routes, validators, client API, hooks, forms, list views, detail views, and integration patches. Instead of asking an assistant to wire each layer separately, a developer can scaffold an entire CRUD slice in one pass, review the plan, and move on to the business logic faster. That cuts repetitive setup work, reduces missed integration steps, and makes day-to-day full-stack development much less tedious.

It is especially useful when you want to:

  • scaffold a MERN CRUD API and React UI from a resource schema
  • generate Mongoose models, Express controllers, services, routes, and validators
  • generate React forms, list views, detail views, hooks, shared types, and API modules
  • let an MCP-compatible coding assistant create resources inside your own repo
  • preview file changes before applying them
  • manage generated resources over time with add-field and delete workflows
  • support monorepo or separate server and client projects

What mern-mcp Generates

For each resource, mern-mcp can generate:

  • server model file
  • server service file
  • server controller file
  • server routes file
  • server validator file when validation is enabled
  • auth middleware file when JWT auth is enabled
  • client shared types file
  • client API module
  • client data hook
  • client form component
  • client list component
  • client detail component

Typical generated paths look like:

server/models/product.model.ts

server/services/product.service.ts server/controllers/product.controller.ts server/routes/product.routes.ts server/validators/product.validator.ts client/types/product.types.ts client/api/product.api.ts client/hooks/useProduct.ts client/components/ProductForm.tsx client/components/ProductList.tsx client/components/ProductDetail.tsx

The planner can also patch existing files when it detects supported patterns:

  • mount new Express routes in a server entry file
  • register new routes in a React Router file
  • register reducers in a Redux store when the detected store shape is supported

Installation

npm install

npm run build

Run the compiled MCP server against a target MERN project:

node dist/index.js --project-root /absolute/path/to/target-project

For local development:

npm run dev -- --project-root /absolute/path/to/target-project

Configuration

Create mern-mcp.config.json in the target project root.

Example for a monorepo TypeScript project using React Query:

{

"structure": "monorepo", "language": "typescript", "reactStack": "react-query", "validation": "zod", "auth": "none", "rbac": false, "paths": { "serverRoot": "./server", "clientRoot": "./client", "serverEntry": "index.ts", "clientRouter": "router.tsx" } }

Example for separate client and server apps with Redux and JWT auth:

{

"structure": "separate", "language": "typescript", "reactStack": "redux", "validation": "both", "auth": "jwt", "paths": { "serverRoot": "./server", "clientRoot": "./client", "modelsDir": "src/models", "servicesDir": "src/services", "controllersDir": "src/controllers", "routesDir": "src/routes", "validatorsDir": "src/validators", "middlewareDir": "src/middleware", "componentsDir": "src/components", "hooksDir": "src/hooks", "apiDir": "src/api", "typesDir": "src/types", "serverEntry": "src/index.ts", "clientRouter": "src/router.tsx", "clientStore": "src/store.ts" } }

All artifact directories are overridable through paths.

Use With Claude Code

  1. Install dependencies and build this repository:
npm install

npm run build

  1. Create mern-mcp.config.json in the target MERN project you want to scaffold.
  2. Add the MCP server to Claude Code:
claude mcp add mern-mcp -- node /absolute/path/to/mern-mcp/dist/index.js --project-root /absolute/path/to/project
  1. Confirm the server is available in Claude Code.
  2. Start with preview_scaffold before using scaffold_resource in apply mode.

Use With Codex CLI

  1. Install dependencies and build this repository:
npm install

npm run build

  1. Create mern-mcp.config.json in the target MERN project you want to scaffold.
  2. Add the MCP server to Codex CLI:
codex mcp add mern-mcp --command node --args /absolute/path/to/mern-mcp/dist/index.js --project-root /absolute/path/to/project
  1. Confirm the MCP server is listed in Codex.
  2. Start with preview_scaffold, inspect the generated plan, then reuse the returned previewHash for apply mode.

Run With Docker

You can run mern-mcp in Docker if you do not want to install Node.js directly on the host.

  1. Build the image from this repository:
docker build -t mern-mcp .
  1. Make sure the target MERN project contains mern-mcp.config.json.
  2. Run the container and mount the target project into it:
docker run --rm -i \

-v /absolute/path/to/target-project:/workspace \ mern-mcp \ --project-root /workspace

  1. If you want to register the Dockerized server in an MCP client, use Docker as the command and pass the same arguments.

Example shape:

docker run --rm -i -v /absolute/path/to/target-project:/workspace mern-mcp --project-root /workspace

MCP Tools

The server currently registers these tools:

  • preview_scaffold
  • scaffold_resource
  • list_resources
  • add_field
  • delete_resource
preview_scaffold

Dry-run a scaffold and inspect the generated write plan before changing files.

scaffold_resource

Preview or apply a full MERN CRUD scaffold for a resource.

list_resources

List manifest-managed resources and optionally scan for unmanaged resources in the project.

add_field

Preview or apply a new field on an existing generated resource.

delete_resource

Preview or apply deletion for a generated resource and remove its manifest record.

For scaffold_resource, add_field, and delete_resource, the important inputs are:

  • mode: "preview" or "apply"
  • previewHash: required in "apply" mode
  • conflictStrategy: "abort", "overwrite", or "skip"

Example Resource Input

Example preview request for a product resource:

{

"resourceName": "Product", "fields": [ { "name": "title", "type": "string", "required": true }, { "name": "price", "type": "number", "required": true }, { "name": "inStock", "type": "boolean", "required": false } ], "mode": "preview" }

After previewing, reuse the returned previewHash for apply mode.

Supported Project Styles

mern-mcp supports configurable MERN code generation across these dimensions:

  • project structure: monorepo or separate
  • language: typescript or javascript
  • React data stack: plain, react-query, redux, or axios
  • validation: zod, express-validator, both, or none
  • auth: jwt or none

It also supports configurable paths, so you can point generation to custom directories such as src/models, src/routes, src/components, or src/store.ts.

Natural Language or Explicit Fields

You can scaffold a resource in two ways:

  1. Pass an explicit field schema.
  2. Pass a natural-language description and let the planner infer fields.

Example natural-language input:

a blog post with title, body, author, tags

That style of input is parsed into a resource structure where terms like author can become an objectId reference and terms like tags can become string arrays.

Supported field types include:

  • string
  • number
  • boolean
  • date
  • objectId

Supported UI widget hints include:

  • text
  • textarea
  • number
  • checkbox
  • date
  • select
  • multiselect
  • tags

Safer Preview-First Workflow

One of the strongest parts of this repository is the preview/apply contract.

  • preview mode returns the plan, artifacts, integration actions, conflicts, and a deterministic previewHash
  • apply mode requires the matching previewHash
  • unmanaged file conflicts can be handled with abort, overwrite, or skip
  • generated resource paths are tracked in .mern-mcp-manifest.json

This gives AI tools and human operators a more controlled way to scaffold code without silently overwriting unrelated work.

Who This Project Is For

mern-mcp is a good fit for:

  • MERN stack developers who want faster resource scaffolding
  • AI-assisted coding workflows using MCP
  • agencies building repeated admin dashboards and CRUD back offices
  • startup teams shipping internal tools or SaaS control panels
  • TypeScript and JavaScript teams maintaining consistent conventions
  • developers who want generation plus integration, not just loose code templates

Search Intent and Keywords

People often look for projects like this using phrases such as:

  • MCP server for MERN stack
  • MERN stack CRUD generator
  • MongoDB Express React Node scaffolder
  • Mongoose model generator
  • Express API boilerplate generator
  • React Query CRUD generator
  • Redux CRUD scaffolder

-

Only the beginning is shown; read the rest in the repo