Backgen MCP server
Generate Express.js backend projects with ORMs, auth, payments, and DevOps
4 stars231 downloads/wk
Reviews
Write oneNobody has reviewed Backgen yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Backgen tools (10, 6 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
add_pluginInstalls a feature plugin into an existing BackGen-generated project. Each plugin injects its own source files (controllers, routes, middleware, services), registers routes in app.ts, adds npm dependencies, injects environment variables into .env, and updates the .backgenrc.json manifest with ownership tracking. Call list_plugins first to see all available options with descriptions and categories.
doctorwrite actionRuns 6 health check categories against a BackGen-generated project and returns a structured pass/fail report for each one. (1) Runtime — Node version >= 18, npm availability. (2) Configuration — .env exists, DATABASE_URL is set, all required env vars from installed plugins are present. (3) Database — Prisma schema / Drizzle config / Mongoose connection string is reachable. (4) Dependencies — packa
generate_factorywrite actionCreates a test factory file for a resource — a reusable builder that generates valid resource instances with sensible defaults for writing tests. Factories let you create test data in one line (e.g. createProduct({ name: 'Widget' })) instead of manually constructing full objects with required fields, timestamps, and relations every time. The generated factory is ORM-aware: it uses the same schema
generate_resourceGenerates a full CRUD module for a resource — controller with 5 REST endpoints (GET /:id, GET /, POST, PATCH /:id, DELETE /:id), service layer with business logic, repository with database operations, Zod validation schemas, TypeScript interfaces, route definitions auto-registered in the Express app with Swagger/OpenAPI docs, and a test file. If fields are not provided, the CLI will prompt interac
generate_seedwrite actionCreates a database seed file for a resource — a script that inserts realistic development data into your database so you don't manually populate tables while building features. The seed file is ORM-aware: it outputs to prisma/seeds/<resource>.ts for Prisma, db/seeds/<resource>.ts for Drizzle, or seeds/<resource>.ts for Mongoose. Each seed record uses faker-generated realistic values matching the r
init_projectwrite actionCreates a new backend project directory with Express.js + TypeScript strict mode, ORM data layer (Prisma/Drizzle/Mongoose), Zod env validation, Swagger docs, Docker, ESLint, Vitest, and a .backgenrc.json manifest. Run add_plugin afterwards to add auth, payments, storage, rate-limiting, or CI/CD. Run generate_resource to add CRUD modules. Use --preset to generate a full domain (healthcare/saas/ecom
list_pluginsList all available BackGen plugins with their descriptions and categories. Call this first to show the user what features they can add, then call add_plugin with the chosen plugin name. Call list_presets to see domain presets.
list_presetsList all available domain presets with their pre-built resources and relationships. Each preset generates multiple interconnected resources with database models, CRUD endpoints, and Swagger docs in a single command. Call this first to help the user choose the right domain, then call init_project with --preset to generate it. All presets auto-install JWT authentication and wire resources together w
project_infowrite actionRuns 6-category diagnostics on a BackGen-generated project and returns a structured report covering Node.js version, npm availability, .env configuration, database connection (Prisma/Drizzle/Mongoose), dependency integrity, file ownership classification, and manifest data from .backgenrc.json. Use this BEFORE or AFTER making changes to verify the project is in a valid state. Read-only — never modi
remove_pluginwrite actionRemoves a previously installed plugin from a BackGen-generated project. This is a destructive but safe operation: it deletes plugin-owned source files (controllers, routes, middleware), removes npm dependencies, strips injected environment variables from .env, reverts route registrations in app.ts, and removes the plugin entry from .backgenrc.json. User-owned files are never touched. Only files th
Public scan report
scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it
- Code scan253 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 9 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
What the publisher says
From the Backgen repository's README, as published. We do not edit it. Read it on GitHub
BackGen
🤖 AI-Ready
BackGen ships a built-in MCP (Model Context Protocol) server that AI assistants (Claude, Cursor, GitHub Copilot, VS Code) can use to scaffold projects on your behalf.
Run via CLI:
backgen mcpOr configure your AI tool's MCP client:
{
"mcpServers": {
"backgen": {
"command": "npx",
"args": ["-y", "@ibrahimkhaled19/backgen", "mcp"]
}
}
}Available MCP tools:
Then just ask: "Scaffold a SaaS backend with Prisma, JWT auth, and Stripe payments"
Generate production-ready backend foundations so developers can focus on business logic, not boilerplate.
BackGen is a CLI tool that generates complete Express.js backend projects on Prisma, Drizzle, or Mongoose — with authentication, multi-tenant infrastructure, production hardening, Docker, and testing — all working out of the box.
npx @ibrahimkhaled19/backgen init my-api --orm drizzle
cd my-api
npm run devSwagger docs at http://localhost:3000/docs in under 60 seconds. Pick your ORM, keep everything else.
Features
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Install directly
Runs npx -y @ibrahimkhaled19/backgen on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add backgen -- npx -y @ibrahimkhaled19/backgen
Backgen: common questions
- Is Backgen MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the Backgen safety report
- How do I install Backgen?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does Backgen need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Backgen maintained?
- The last commit was 9 days ago (2026-09-17). The latest release is v1.14.0.
- What can I use instead of Backgen?
- Servers from other publishers that do the same job: Gutendex MCP server, Rede MCP server and OpenQR MCP server. Compare all Backgen alternatives.
Alternatives to Backgen
Same job from other publishers: the closest match first, then the best rated.
GutendexGutendex MCP — wraps Gutendex API for Project Gutenberg books (free, no auth)not reviewedGrowingA- RedeMCP server for Rede — Itaú-owned BR acquirer: authorize/capture/refund, zero-auth, card tokensnot reviewedEstablishedB
- OpenQRGenerate, edit and track dynamic (editable) QR codes with scan analytics. Hosted MCP and REST API.not reviewedGrowingA
spintax.net MCP serverWrite, validate, render and analyze spintax templates. Backed by @spintax/core. No auth.not reviewedGrowingA- Healthclaw GuardrailsGuardrailed FHIR access for AI agents: PHI redaction, audit trail, step-up auth, tenant isolationnot reviewedGrowingA