Backgen
概要
作者による説明(英語の原文)
Generate Express.js backend projects with ORMs, auth, payments, and DevOps
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンで動く
- トランスポート: stdio
- カテゴリ: 開発者ツール
インストール
使っているAIアプリを選んで、設定をコピーしてください。
チェック 2/2 合格 · あなたのパソコンで動きます
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "backgen": { "command": "npx", "args": [ "-y", "@ibrahimkhaled19/backgen" ] } } }Claude を終了してもう一度開く
試してみる
Backgen を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Backgen を使っていると言うか、回答に Backgen のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Backgen につなげません
Backgen はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · Backgen につなげるアプリを使う
- 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
B · 開発者ツール の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Sentry✓ ChatGPT
- Front-End Checklist✓ ChatGPT
- Compiler Explorer✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add backgen -- npx -y @ibrahimkhaled19/backgenClaude Code で /mcp と入力
Backgen が一覧にあり、接続済みと表示されれば OK です
試してみる
Backgen を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Backgen を使っていると言うか、回答に Backgen のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
Cursor の AI チャットを Agent モードで開く
試してみる
Backgen を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Backgen を使っていると言うか、回答に Backgen のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
VS Code の AI チャットを Agent モードで開く
試してみる
Backgen を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Backgen を使っていると言うか、回答に Backgen のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add backgen -- npx -y @ibrahimkhaled19/backgenClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"backgen": {
"command": "npx",
"args": [
"-y",
"@ibrahimkhaled19/backgen"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"backgen": {
"command": "npx",
"args": [
"-y",
"@ibrahimkhaled19/backgen"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"backgen": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ibrahimkhaled19/backgen"
]
}
}
}この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月11日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント IbrahimKhaled19 で確認済みです
- ✓ 合格
今もメンテナンスされている
コードの最終更新:30 日前
- … 未チェック
ライセンスがある
このリポジトリはまだGitHubから読み取っていません
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
開発者ツールのほかのサーバーとの比較i
- このカテゴリのほかの5751件のうち83%よりスターが多い
- このカテゴリのほかの5751件のうち19%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの5751件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Backgenは安全ですか?
当てはまる基本チェック2項目のうち2項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は30 日前、最新バージョン(1.14.0)がレジストリに届いたのは5 か月前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
代わりに使えるものは?
同じカテゴリには:REA, Netdata, Front-End Checklist
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
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 mcp
Or configure your AI tool's MCP client:
{
"mcpServers": { "backgen": { "command": "npx", "args": ["-y", "@ibrahimkhaled19/backgen", "mcp"] } } }
Available MCP tools:
| Tool | Description |
|---|---|
init_project | Scaffold a new production-ready backend project with chosen ORM, preset, and plugins |
add_plugin | Install a plugin (jwt, clerk, stripe, s3, ratelimit, ci-github, dependabot, codeql, docker-registry, release) |
remove_plugin | Remove a previously installed plugin |
generate_resource | Generate a CRUD resource with fields, relations, validation, and Swagger |
generate_seed | Generate a database seed file for a resource |
generate_factory | Generate a test factory for a resource |
doctor | Validate an existing BackGen project for configuration issues |
list_plugins | List all available plugins with descriptions |
list_presets | List all available domain presets |
project_info | Show project metadata from the manifest |
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 dev
Swagger docs at http://localhost:3000/docs in under 60 seconds. Pick your ORM, keep everything else.
Features
- Express + TypeScript — strict mode, ESLint 9 (flat config), Vitest
- Multi-ORM — Prisma, Drizzle, or Mongoose. Pick at
inittime, switch later via the manifest - SaaS-ready —
saas-corepreset 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
- Domain Presets — saas-core, healthcare, SaaS, ecommerce, CRM, LMS — full domain in one command
- Seed & Factory Generators — development data and test factories
- Docker — multi-stage Dockerfile + docker-compose
- Swagger/OpenAPI — auto-generated API documentation
- Manifest —
.backgenrc.jsontracks ORM, plugins, versions, and ownership for upgrade/rollback
Quick Start
# Install globally
npm install -g @ibrahimkhaled19/backgen
Create a project (pick your ORM)
backgen init my-api --orm prisma backgen init my-api --orm drizzle backgen init my-api --orm mongoose
Create a full multi-tenant domain
backgen init my-saas --preset saas-core --defaults
Add authentication
backgen add jwt backgen add clerk
Add production hardening
backgen add ratelimit
Generate a resource
backgen generate resource Product name:string price:number stock:number
Start developing
cd my-api npm run dev
Commands
backgen init [name]
Generate a new backend project.
backgen init my-api # interactive ORM picker
backgen init my-api --orm prisma # explicit ORM backgen init my-api --orm drizzle --defaults # Drizzle, non-interactive backgen init my-api --orm mongoose --skip-install backgen init my-api --preset saas-core --defaults # full multi-tenant domain backgen init my-api --preset healthcare # healthcare domain
Output:
- Express app with TypeScript strict mode
- ORM-specific data layer (Prisma / Drizzle / Mongoose)
- Environment validation (Zod)
- Swagger/OpenAPI documentation
- Docker + docker-compose
- Hardened by default: helmet, CORS, request ID, timeout, xss + mongo-sanitize, graceful shutdown, health checks
- ESLint 9 + Vitest
.backgenrc.jsonmanifest (recordsproject.orm+ plugins)
No auth by default — choose your auth provider with backgen add.
backgen add [plugin]
Install a plugin. Interactive multi-select if no argument.
backgen add # interactive multi-select
backgen add jwt # JWT authentication backgen add clerk # Clerk auth-as-a-service backgen add stripe # Stripe payments backgen add s3 # AWS S3 storage backgen add ratelimit # Per-IP / per-user rate limiting backgen add devops # Install all devops plugins at once
Available Plugins:
| Plugin | Category | Description |
|---|---|---|
jwt | auth | JWT authentication with refresh tokens |
clerk | auth | Clerk auth-as-a-service (conflicts with jwt) |
stripe | payment | Stripe checkout, webhooks, customers |
s3 | storage | AWS S3 upload, download, presigned URLs |
ratelimit | production | Per-IP rate limiting with Redis-ready store |
ci-github | devops | GitHub Actions CI pipeline (lint, typecheck, test, build, optional deploy) |
dependabot | devops | Automated dependency updates via Dependabot |
codeql | devops | CodeQL security analysis on push and schedule |
docker-registry | devops | Docker image build and publish to GHCR |
release | devops | Semantic release with npm publish and GitHub releases |
Conflict detection: jwt and clerk cannot be installed together.
Domain Presets
Generate a complete domain in one command. Each preset creates multiple resources with relations, auto-installs JWT auth, and wires everything together.
backgen init my-api --preset healthcare
backgen init my-api --preset saas --defaults
healthcare
Patient, Doctor, Appointment, Prescription, MedicalRecord — appointments between patients and doctors, prescriptions linked to patients, medical records per patient.
saas
Organization, Team, Membership, Subscription, Invoice — organizations with teams and memberships, subscriptions with invoices.
ecommerce
Category, Product, Cart, Order, OrderItem, Payment — products in categories, carts with items, orders with line items and payments.
crm
Contact, Company, Deal, Activity — companies with contacts, deals tracked through pipeline, activity logging.
lms
Course, Lesson, Enrollment, Progress, Certificate — courses with lessons, student enrollments, progress tracking, certificates.
backgen remove [plugin]
Remove a plugin. Interactive multi-select if no argument. Supports devops shorthand to remove all devops plugins.
backgen remove # interactive multi-select
backgen remove stripe # remove specific plugin backgen remove devops # remove all devops plugins
backgen generate resource [fields...]
Generate a CRUD resource module.
# Interactive
backgen generate resource Product
Non-interactive
backgen generate resource Product name:string price:number stock:number
With relations
backgen generate resource Appointment date:datetime status:string \ --relations "doctor:Doctor,patient:Patient"
With --fields flag
backgen generate resource Product --fields "name:string,price:number"
Generated files:
src/modules/product/
product.controller.ts # CRUD endpoints product.service.ts # business logic product.repository.ts # database operations product.validation.ts # Zod schemas product.types.ts # TypeScript interfaces product.routes.ts # route definitions + Swagger product.test.ts # test placeholder
Field types: string, number, boolean, date, datetime
Relations: doctor:Doctor (belongsTo), patients:Patient (hasMany)
backgen generate seed
Generate seed data for development.
backgen generate seed Product --count 10
Output: prisma/seeds/product.ts (Prisma), db/seeds/product.ts (Drizzle), or seeds/product.ts (Mongoose)
backgen generate factory
Generate a test factory.
backgen generate factory Product
Output: src/factories/product.factory.ts
Usage:
import { createProduct } from "./factories/product.factory.js";
const product = await createProduct({ name: "Widget" });
backgen generate route [name]
Generate a custom route module with a complete controller, service, validation, types, and route file -- including Swagger annotations. Routes are automatically registered in app.ts with the REGISTER_ROUTES marker.
Use this when you need a custom endpoint that doesn't fit the CRUD pattern (e.g., dashboards, reports, webhooks, custom actions). For standard CRUD, use generate resource instead.
backgen generate route # interactive prompt
backgen generate route reports # generate a /api/reports module backgen generate route webhooks # generate a /api/webhooks module
Generated files:
src/modules/reports/
reports.controller.ts # request handlers reports.service.ts # business logic reports.validation.ts # Zod schemas reports.types.ts # TypeScript interfaces reports.routes.ts # route definitions + Swagger
Key differences from `generate resource`:
- No database model, repository, or test file
- No field specification required
- Pure controller/service pattern for custom endpoints
- Mounted at
/api/with full Swagger docs
backgen generate migration [name]
Generate a database migration (ORM-aware).
backgen generate migration add-product-table # runs prisma migrate dev / drizzle-kit generate / no-op for Mongoose
backgen sync
Reconcile .backgenrc.json with the project. Regenerates missing plugin files.
backgen sync
backgen mcp
Start BackGen as an MCP server over stdio. Used by AI assistants (Claude, Cursor, VS Code) to scaffold projects programmatically.
backgen mcp
This is the same server exposed via the npx @ibrahimkhaled19/backgen backgen-mcp binary. It registers all 10 MCP tools listed in the AI-Ready section.
backgen health
Show system health information.
backgen health
Displays:
- Node.js version
- Platform and architecture
- BackGen version
backgen doctor
Check proje