原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

BackendGen

作者:SiTouhemi版本 0.2.2i★ –i在你的电脑上运行
注册名称io.github.SiTouhemi/backendgen

安装

概览

作者提供的说明(英文原文)

Validate compact backend specs and generate tested NestJS, Prisma, and PostgreSQL repositories.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 数据库与数据集

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: BACKENDGEN_ALLOWED_ROOTS

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "backendgen": {
      "command": "npx",
      "args": [
        "-y",
        "@2hemi/backendgen-mcp"
      ],
      "env": {
        "BACKENDGEN_ALLOWED_ROOTS": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add backendgen --env BACKENDGEN_ALLOWED_ROOTS=your-value -- npx -y @2hemi/backendgen-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "backendgen": {
      "command": "npx",
      "args": [
        "-y",
        "@2hemi/backendgen-mcp"
      ],
      "env": {
        "BACKENDGEN_ALLOWED_ROOTS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "backendgen": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@2hemi/backendgen-mcp"
      ],
      "env": {
        "BACKENDGEN_ALLOWED_ROOTS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • BACKENDGEN_ALLOWED_ROOTS env
    Optional list of filesystem roots BackendGen may read and write, separated by ';' (or ':' between POSIX absolute paths).

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 SiTouhemi 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“数据库与数据集”中的其他服务器比较i

  • 星标数多于此分类中其他 954 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 954 个服务器的 21% 更新
  • 基础检查结果等于或优于此分类中其他 954 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

BackendGen 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.2.2)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Supabase, MongoDB MCP Server, Elasticsearch MCP Server

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Supabase

作者:supabase

MCP server for interacting with the Supabase platform

电脑或云端★ 2,993Apache-2.0昨天更新
安装

MongoDB MCP Server

作者:mongodb-js

MongoDB Model Context Protocol Server

在你的电脑上运行★ 1,157Apache-2.0前天更新
安装

MCP server for interacting with Elasticsearch

在你的电脑上运行★ 315Apache-2.014个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

BackendGen

BackendGen is a deterministic backend compiler for AI coding agents. Give an agent a compact, versioned YAML or JSON specification and it can generate a structured, tested backend instead of inventing database models, permissions, API routes, and migrations from scratch.

It currently generates NestJS 11 + Prisma 6 + PostgreSQL repositories, including a typed TypeScript client and a small frontend-contract.json for the frontend agent to consume. Generated projects have no BackendGen runtime dependency.

Alpha status: BackendGen is ready for design-partner trials and local

projects. Review generated applications before production use; it has not yet

completed independent security review or three design-partner trials.

npm CLI · npm MCP server · Report an issue · Design-partner program

What it is for

BackendGen is useful when an AI agent needs a real backend behind a frontend:

  • model entities, relations, filters, sorting, and pagination;
  • add authentication, roles, row ownership, organizations, and tenant isolation;
  • generate reservations, notifications, webhooks, durable jobs, and uploads;
  • preserve a clean boundary between compiler-owned code and application-owned custom code;
  • safely regenerate after a specification changes, with incremental migrations and explicit review gates for destructive changes.

BackendGen is not a hosted backend service, deployment platform, or frontend builder. It runs locally and produces code that a developer or coding agent can review, customize, test, deploy, and connect to a frontend.

Requirements

  • Node.js 22 or newer
  • npm 10 or newer
  • PostgreSQL only when you want to run a generated project's integration tests

Try it in five minutes

You do not need an npm account or this repository to try BackendGen.

mkdir backendgen-try

cd backendgen-try

npx -y @2hemi/backendgen init backend.yaml --name team-api npx -y @2hemi/backendgen validate backend.yaml npx -y @2hemi/backendgen generate backend.yaml --output ./team-api

cd team-api npm install npm test

The generated project runs prisma generate during installation, so this first-run path does not require a separate Prisma command. From the parent directory, use npx -y @2hemi/backendgen test-generated --output ./team-api --install when an agent should perform installation, validation, build, and unit tests through one bounded compiler command.

init creates a valid starter specification. Edit backend.yaml, then run validate and generate again. Before regenerating an existing project, use diff to preview what would change:

npx -y @2hemi/backendgen diff backend.yaml --output ./team-api

Test a complete SaaS example

The repository includes working specifications from basic CRUD to a full-featured backend. This multi-tenant task example is a good first test:

git clone https://github.com/SiTouhemi/Backendgen.git

cd Backendgen

npx -y @2hemi/backendgen validate examples/saas-tasks/backend.yaml npx -y @2hemi/backendgen generate examples/saas-tasks/backend.yaml --output ./generated/saas-tasks

cd generated/saas-tasks npm install npm test

Browse every example and what it demonstrates in examples/README.md:

ExampleDemonstrates
notes APICRUD, filtering, pagination, and sorting
auth notesAccounts, roles, ownership, and authentication
SaaS tasksOrganizations and enforced tenant isolation
hotel bookingReservations, overlap prevention, and notifications
all featuresCRUD, auth, organizations, reservations, notifications, webhooks, jobs, and uploads

Use it with an AI coding agent (MCP)

The MCP package lets an AI agent discover supported backend features, validate a spec, preview changes, generate a backend, run generated tests, return the frontend handoff contract and customization guidance. It can also explain customization points. It runs locally over stdio—no BackendGen account or network listener is required.

Migration SQL is returned only when the agent explicitly requests it for review; generated source remains omitted from normal responses.

Add this server to an MCP-capable client, giving it only a directory you trust:

{

"mcpServers": { "backendgen": { "command": "npx", "args": ["-y", "@2hemi/backendgen-mcp"], "env": { "BACKENDGEN_ALLOWED_ROOTS": "/absolute/path/to/projects" } } } }

For Codex, Claude Code, Cursor, ChatGPT desktop, Windows, Lovable Desktop, and the correct v0 handoff, follow the client-specific commands in docs/AI_BUILDERS.md. The complete MCP security and tool reference is in docs/MCP.md.

Once connected, give your agent a request such as:

Create a multi-tenant task-management backend. First inspect BackendGen's

capabilities and relevant features. Write a spec, validate it, preview the

generation, generate it inside this project, and run the generated tests.

Keep custom behavior in the documented customization points.

What is generated

For a valid specification, BackendGen produces a standalone repository with:

  • a NestJS API, Prisma schema, PostgreSQL migrations, OpenAPI setup, and tests;
  • generated endpoints and permission rules derived from the normalized spec;
  • src/generated/ for compiler-owned code and src/custom/ for code you own;
  • a .backendgen/manifest.json that records ownership and hashes;
  • frontend-contract.json and a typed TypeScript client for frontend agents.

On regeneration, BackendGen preserves custom files, refuses to overwrite edited generated files unless you explicitly use --force, and requires explicit review for destructive or data-dependent schema changes. Read docs/MIGRATIONS.md before changing a live schema.

Verification and limits

The repository's CI verifies compiler, CLI, MCP, security-contract fuzzing, package-installation, and generated-project scenarios. Generated projects are also built and tested against PostgreSQL in the release test matrix. See the local verification record and security contract for the exact evidence.

That evidence does not prove that every generated application is safe for production. You remain responsible for reviewing the specification, generated code, secrets, infrastructure, and deployment configuration.

Current boundaries:

  • one production target: NestJS + Prisma + PostgreSQL;
  • FastAPI and other backend targets are intentionally out of scope;
  • no hosted BackendGen SaaS or direct browser-v0 MCP integration yet;
  • do not make token-savings claims until the paired benchmark has real results.

Documentation

If you need to…Read
Write a specificationSpecification reference
Understand each supported featureFeature packs
Connect an AI agent or MCP clientAI builder integration
Customize a generated projectCustomization guide
Safely regenerate or change a schemaMigrations guide
Run tests locallyLocal testing
Understand security boundariesThreat model
ContributeContributing

Feedback and support

We are looking for developers and AI builders who will test BackendGen on a real, non-production project. Please open an issue with:

  1. what you were trying to build;
  2. your sanitized backend.yaml specification;
  3. the command or MCP client you used;
  4. what worked, what was confusing, and what you expected instead.

Never include API keys, .env files, private customer code, or production database data. For security vulnerabilities, follow SECURITY.md instead of opening a public issue. Full support details are in SUPPORT.md.

Development

To work on BackendGen itself:

npm ci

npm test npm run test:fuzz:ci npm run test:e2e npm run test:distribution

Maintainers preparing a release can run the same non-publishing gate through npm run verify:release. PostgreSQL-backed execution remains the separate npm run verify:local:postgres workflow described in local testing.

BackendGen is licensed under Apache-2.0. Generated projects belong to their users.

问 PopNx