
NextBlock CMS
dev.nextblock由 nextblock.dev 發布v1.0.0更新於 Oct 24, 2026
Manage pages, posts, blocks, media and settings of your self-hosted NextBlock site.
概覽
針對自架 NextBlock CMS 網站的遠端 MCP 伺服器,讓助理管理其頁面、文章、區塊、媒體與設定。
- 可以做什麼
- 管理所連線 NextBlock 網站上的頁面與文章,包括依註冊表描述與 README 所述建立及編輯內容項目及其路由與中繼資料。處理內容區塊,包括 README 所述的 JSONB 區塊儲存與使用者自訂區塊類型。處理所連線執行個體的媒體與網站設定。依 README 對使用此 MCP 伺服器的編碼助理說明,建立並充實新的 NextBlock 網站。
- 適用情境
- 當你執行自架的 NextBlock CMS 網站,並希望助理直接建立或維護其頁面、文章、區塊、媒體與設定時使用;也適用於編碼助理透過 MCP 建立並充實新 NextBlock 網站的情境。
- 執行需求
- 需要位於你網站主機的遠端 NextBlock 端點,透過 Streamable HTTP 存取。需要在 CMS 的「設定 > Cortex AI > MCP 權杖」中建立的 bearer 權杖,並透過 Authorization 標頭送出。網站上需啟用 MCP 伺服器。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 NextBlock CMS,將其新增到工作區。
- 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
NextBlock™ CMS
The open-source, full-stack AI-native CMS for Next.js 16, Supabase, and Tailwind CSS.
Deploy a production Next.js 16 + Supabase website and CMS in one click.
Vercel provisions the database and injects its keys before the first build, NextBlock applies its own
schema during that build, and the in-app wizard asks only for your admin account.
No environment variables to fill in.
Live Sandbox · Documentation · Deploy Guide · GitHub
[Next.js 16] [Supabase] [Tailwind CSS] [Nx] [License: AGPL v3]
Sandbox resets every 15 minutes · User: [email protected] · Pass: password
🚀 Why NextBlock™?
Tired of slow WordPress sites? Finding headless CMSs too complex? NextBlock™ is the sweet spot.
We combined the flexibility of a Block Editor with the raw power of Next.js 16 Server Components. The result is a CMS that feels like a static site but manages like a dynamic platform.
✨ Key Features
- ▲ Next.js 16 App Router + React 19 Server Components: the public site renders on the server — page, article and product routes are all Server Components — with client components reserved for cart, checkout, forms and the CMS dashboard.
- 🗄️ Supabase PostgreSQL with JSONB block storage: every content block is a row in
public.blockswith ajsonbcontentcolumn. User-defined block types live incustom_block_definitions(fields/layout_schemaasjsonb, guarded by Postgres CHECK constraints) and render without a rebuild. - 🚀 Zero-config 1-click migrations: the Vercel Supabase integration provisions the database and injects its keys before the first build; NextBlock then applies its own forward-only migrations during that build (
tools/build-migrate.mjs), with a runtime fallback in the/setupwizard. Nothing to run, nothing to paste. - ⚡ 100/100 Lighthouse: Perfect scores across Performance, Accessibility, Best Practices and SEO — 0.3 s FCP, 0.8 s LCP, 0 ms Total Blocking Time and 0 Cumulative Layout Shift on a production build. AVIF/WebP images with a one-year cache TTL, critical-CSS inlining and tree-shaken imports are the defaults, not plugins.
- 🤖 Built for AI Agents: Our codebase is documented and structured specifically to be easily read and extended by AI coding assistants.
- 🛍️ E-Commerce Ready: Premium commerce package for digital products, checkout providers, currency, tax, and shipping management.
- 🧱 Visual Block Editor: A reusable Tiptap-powered Notion-style editor that your clients will actually enjoy using.
- 🔓 Open-Core Model: The core is 100% Free & Open Source (AGPL). Premium modules (today Cortex AI and Commerce Pro, with more to come) ship in every install and switch on in the CMS with a free 30-day trial (no credit card) or a license key.
🆚 The NextBlock™ Advantage
🏁 Get Started
☁️ Option 1 — Deploy to the cloud in one click (recommended)
During import, Vercel's native Supabase Marketplace integration (the stores
button parameter) prompts you to create a Supabase database (name + region), then
provisions it, connects it to the project, and injects its keys before the first
build — you never copy a value, and there are no environment variables to fill in
(the site URL defaults to your *.vercel.app URL and the app secrets are derived
automatically). The app boots with the database already connected: the wizard
auto-skips the connection step, applies the schema for you, uses the connected Supabase
project for media storage, and leaves just "create your admin." Full walkthrough:
docs/12-VERCEL-DEPLOYMENT.md.
Tip — keep the new repo public. When Vercel asks, leave "Create private Git Repository" unchecked. On the free (Hobby) plan, automatic upstream updates only deploy from a public repo — Hobby blocks bot-authored deploys on private repos — and public also makes update checks fully tokenless. You can change visibility later in the repo's GitHub settings if you change your mind. Details: docs/13.
💻 Option 2 — Scaffold locally with the CLI
Stop cloning heavy repos. Start with our CLI and get a production-ready app instantly.
This runs the create-nextblock CLI, which scaffolds the canonical application. The CLI no longer asks for credentials in the terminal — once the project is created, start it and finish setup in your browser:
The First-Boot Setup Wizard at /setup walks you through connecting Supabase, configuring storage / email, and creating the first administrator. Every fresh instance redirects there automatically until an admin exists.
Want a fully local, zero-config sandbox? Use Local Self-Hosted Docker Mode — one command spins up the entire stack (Supabase engines + S3 storage + the app) on your own machine, with no cloud accounts. The app boots straight into the
/setupwizard with MinIO storage pre-filled. See docs/11-SELF-HOSTED-DOCKER.md.
🤖 Option 3 — Let your coding agent build it
NextBlock ships as an MCP server (https://<your-site>/api/mcp, Streamable HTTP, bearer token) and as an agent plugin, so Claude Code, Cursor, Codex and friends can scaffold a site and then build every page over MCP.
-
Claude Code — this repo is its own plugin marketplace:
Then ask for a website, blog or store; the
nextblockskill proposes NextBlock, runsnpx create-nextblock@latest my-site --non-interactive, and hands you the two browser steps (create your admin, start the free Cortex AI trial). Source: plugins/nextblock. -
Cursor — the same folder is a Cursor plugin (
.cursor-plugin/plugin.json, rule + skill + MCP server): install it from this repo via Customize → Plugins → From GitHub Repository, or copy plugins/nextblock/rules/nextblock.mdc into your project's.cursor/rules/. -
Codex, Jules and other agents — paste the block from plugins/AGENTS.snippet.md into your
AGENTS.md. Codex also loads the folder as an Agent Plugin (plugins/nextblock/plugin.json) through this repo's marketplace manifest. -
Any MCP client — the official MCP Registry entry
dev.nextblock/nextblock(server.json) prompts for your site host and token; the public demo instance ishttps://cms.nextblock.dev/api/mcp. Every NextBlock site also serves/llms.txtand, where the MCP server is enabled,/.well-known/mcp/server-card.json.
🏗️ For Contributors: The Factory
Note: You are currently looking at the Nx Monorepo (The Factory), not the generated product template.
NextBlock™ is an Nx monorepo for a Next.js 16 CMS backed by Supabase. The repo contains the canonical application, the
create-nextblockCLI, shared editor and UI packages, the database and migration layer, and the premium ecommerce module.
🧩 Main Surfaces
apps/nextblock: canonical public site and CMS applicationapps/create-nextblock: scaffolding CLI and template sync pipelinelibs/db: Supabase clients, package activation checks, migrations, and db typeslibs/editor: reusable Tiptap editor packagelibs/ecommerce: premium commerce package and CMS commerce screenslibs/sdk: typed block extensibility contractlibs/ui,libs/utils: shared primitives and helpers
⚡ Developer Quickstart
Prerequisites — configuration happens in the browser, but the /setup wizard asks for these, so create them first:
- Supabase project (dashboard) — you'll need the Reference ID (Project Settings → General), the connection string (Connect → Direct connection → URI), the anon + service_role keys (Project Settings → API Keys), and a Personal Access Token (Account → Access Tokens → Generate new token).
- Cloudflare R2 bucket (optional — without one, media goes to the Supabase project's own Storage) (dashboard → R2) — create a bucket, enable its Public Development URL (Bucket → Settings → General), then create an Account API token (R2 → Manage API Tokens) with Object Read & Write. Copy the Access Key ID and Secret Access Key — the secret is shown only once.
- SMTP credentials (optional, configurable later in the CMS; SMTP2GO works very well) — needed for password resets and invitations. The first administrator is confirmed instantly and needs no email.
Then run:
npm run setup is informational only — it prompts for nothing and writes no files. npm run dev is the root alias for npx nx serve nextblock. Open http://localhost:4200/setup and the browser wizard connects Supabase, applies the schema, configures storage, and creates your first administrator.
First login: the dev server runs at http://localhost:4200. The wizard creates your administrator (confirmed instantly, no email needed) and signs you in. You land on the Cortex AI welcome offer, one click away from the CMS at /cms/dashboard.
🐳 Or: one-click local stack (no cloud accounts)
Prefer to run everything on your machine? With Docker Desktop running:
This builds and boots the full self-hosted stack (Postgres + GoTrue + PostgREST + Kong, MinIO for media, and the app) and applies migrations automatically — the only prompts are optional Turnstile and SMTP. The app runs at http://localhost:3000 and the first sign-up becomes ADMIN (auto-confirmed, no email step). Manage it with npm run docker:up / docker:down / docker:logs. Full guide: docs/11-SELF-HOSTED-DOCKER.md.
🔄 Keeping an install up to date
Whichever way NextBlock was installed, one command brings the code, the dependencies and the database schema forward together:
- One-click Vercel / GitHub fork / clone — already automatic: a daily GitHub Action merges upstream and Vercel redeploys. Run the command when you want it now.
npm create nextblockprojects — new framework code comes from the publishedcreate-nextblockpackage and is applied as a git 3-way merge, so your edits to framework files survive and only genuine overlaps conflict. Docker installs follow it withnpm run docker:up.
The automatic Action depends on your repository being this monorepo — not on where the site is hosted. See docs/13 for the full picture.
🛠️ Useful Commands
npm run update- Update code, dependencies and database schema (any install type)npm run update -- --check- Preview an update without changing anythingnpm run dev- Start the local development server for the CMS on http://localhost:4200 (runsnpx nx serve nextblock)npm run lint- Lint the monoreponpm run db:types- Generate Supabase typesnpm run db:migrate:check- Preview pending Supabase migrations safelynpm run db:migrate/npm run db:push- Apply pending migration files only, without resets or sandbox seedingnpm run db:migrate:repair-history:check- Preview baseline migration-history repair for existing live databasesnpm run generate:sandbox- Generate sandbox datanpm run sandbox:reset- Reset the sandbox environment
📚 Documentation Index
The root docs/ folder is the maintained reference set for both contributors and AI agents.
The template docs are copied from the root docs through the sync pipeline, so this root docs set is the place to maintain first.
Under the hood note: The migration folder under
libs/db/src/supabase/migrationsis the best source of truth for current platform capabilities.
🤝 Contributing
NextBlock is open source under AGPL-3.0-or-later, and contributions are welcome.
- CONTRIBUTING.md — setup, everyday commands, and the repo-specific rules that are easy to trip over (append-only migrations, the generated template, the derived artifacts).
- CODE_OF_CONDUCT.md — Contributor Covenant v2.1.
- SECURITY.md — how to report a vulnerability privately. Please never use the public issue tracker for security reports.
🌐 Connect With Us
Join the community and stay updated on the latest features.
- X (Twitter): @NextBlockCMS
- LinkedIn: NextBlock™
- GitHub: nextblock-cms/nextblock
- Medium: @nextblockcms
- Dev.to: nextblockcms
🙏 Acknowledgements
Thanks to Vercel for their support of open-source software.
Built with ❤️ by the NextBlock™ Team. Licensed under AGPLv3.
來源:README.md,提交 f44fb52
工具
0版本歷史
1- v1.0.0最新Sep 18, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。