Scaffolds MERN CRUD resources into existing Express and React codebases.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MERN MCP.
preview_scaffoldDry-run a scaffold and inspect the generated write plan before changing files.
scaffold_resourcePreview or apply a full MERN CRUD scaffold for a resource.
list_resourcesList manifest-managed resources and optionally scan for unmanaged resources in the project.
add_fieldPreview or apply a new field on an existing generated resource.
delete_resourcePreview or apply deletion for a generated resource and remove its manifest record.
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
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:
mern-mcp GeneratesFor each resource, mern-mcp can generate:
Typical generated paths look like:
The planner can also patch existing files when it detects supported patterns:
Run the compiled MCP server against a target MERN project:
For local development:
Create mern-mcp.config.json in the target project root.
Example for a monorepo TypeScript project using React Query:
Example for separate client and server apps with Redux and JWT auth:
All artifact directories are overridable through paths.
mern-mcp.config.json in the target MERN project you want to scaffold.preview_scaffold before using scaffold_resource in apply mode.mern-mcp.config.json in the target MERN project you want to scaffold.preview_scaffold, inspect the generated plan, then reuse the returned previewHash for apply mode.You can run mern-mcp in Docker if you do not want to install Node.js directly on the host.
mern-mcp.config.json.Example shape:
The server currently registers these tools:
preview_scaffoldscaffold_resourcelist_resourcesadd_fielddelete_resourcepreview_scaffoldDry-run a scaffold and inspect the generated write plan before changing files.
scaffold_resourcePreview or apply a full MERN CRUD scaffold for a resource.
list_resourcesList manifest-managed resources and optionally scan for unmanaged resources in the project.
add_fieldPreview or apply a new field on an existing generated resource.
delete_resourcePreview 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" modeconflictStrategy: "abort", "overwrite", or "skip"Example preview request for a product resource:
After previewing, reuse the returned previewHash for apply mode.
mern-mcp supports configurable MERN code generation across these dimensions:
monorepo or separatetypescript or javascriptplain, react-query, redux, or axioszod, express-validator, both, or nonejwt or noneFactual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mern-mcp)<a href="https://allmcps.com/mcp/mern-mcp"><img src="https://allmcps.com/api/badge/mern-mcp?style=directory" alt="MERN MCP on AllMCPs" /></a>