Backgen MCP Server

Generate Express.js backend projects with ORMs, auth, payments, and DevOps

Local serverstdioTypeScript

What is the Backgen MCP Server?

Generate Express.js backend projects with ORMs, auth, payments, and DevOps

What you get

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.

  • Express + TypeScript — — strict mode, ESLint 9 (flat config), Vitest
  • Multi-ORM — — Prisma, Drizzle, or Mongoose. Pick at init time, switch later via the manifest
  • SaaS-ready — — saas-core preset ships Organizations, Memberships, Invitations, RBAC, tenant-scoped queries
  • Hardened by default — — helmet, strict CORS, request ID, request timeout, xss + mongo-sanitize, graceful shutdown, /health + /ready, error envelope
  • Plugin System — — JWT, Clerk, Stripe, S3, ratelimit via backgen add
  • Resource Generator — — CRUD modules with relations, validation, Swagger

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
healthcarePatient, Doctor, Appointment, Prescription, MedicalRecord — appointments between patients and doctors, prescriptions linked to patients, medical records per patient.
saasOrganization, Team, Membership, Subscription, Invoice — organizations with teams and memberships, subscriptions with invoices.
ecommerceCategory, Product, Cart, Order, OrderItem, Payment — products in categories, carts with items, orders with line items and payments.

How to install the Backgen MCP Server

{
  "mcpServers": {
    "backgen": {
      "command": "npx",
      "args": ["-y", "@ibrahimkhaled19/backgen"],
      "env": {
        "DATABASE_URL": "your-value",
        "JWT_REFRESH_SECRET": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
DATABASE_URLEndpoint or connection string the server talks to.Yes
JWT_REFRESH_SECRETCredential the server authenticates with.Yes

Example prompts to try

  • “Use Backgen to healthcare.”
  • “Use Backgen to saas.”
  • “Use Backgen to ecommerce.”

Frequently asked questions

Generate Express.js backend projects with ORMs, auth, payments, and DevOps Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.