Listed from the MCP registry; nobody on Odel publishes it.
Schema, database, document, user and dev-server tools for a Rebase backend project.
Runs on your machine from its package; the steps are below.

At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y @rebasepro/mcp
MCP client config
{
"mcpServers": {
"rebase": {
"command": "npx",
"args": [
"-y",
"@rebasepro/mcp"
]
}
}
}
Point it at a database and get a working backend in minutes.
REST, auth, storage, realtime and backups over your own Postgres — then add a
schema-driven admin panel, or don't.
Own your data, own your code. The absolute easiest way to build on PostgreSQL.
Public beta. The API you write against can change in a minor,
with a changelog entry. Your data cannot break quietly.
What that promise rests on, and
which subsystems are ready
Live Demo • Documentation • Features • Discord
⭐ If Rebase saves you time, please star this repo — it helps other developers find it.
Rebase is a developer-first, open-source backend-as-a-service built on PostgreSQL — authentication, S3-compatible storage, realtime, backups and auto-generated REST APIs over a database you own. It is self-hosted and agent-native, with a built-in MCP server for AI-assisted development.
You declare your tables in TypeScript (defineTable in backend/schema/), each with a required row-level security posture, and the backend serves them. The admin panel is the second layer of the same definition: it renders every table the backend serves as a schema-driven back-office, with no file per table, and your frontend/src/cms/ files customize it with your own React components.
Three modes, same packages, wired differently — see MODULAR-ARCHITECTURE.md.
| Mode | You get | Comparable to |
|---|---|---|
| BaaS | REST + auth + storage + realtime + backups over your database — declared in backend/schema, or read from the database itself. No UI, no React in the dependency tree. | Supabase |
| CMS | BaaS + a schema-driven admin UI built from your tables, customized in frontend/src/cms. | Payload, Directus |
| Full | CMS + Studio (SQL editor, schema visualizer, RLS editor, logs, API explorer). | Supabase + Payload |
pnpm dlx @rebasepro/cli init scaffolds a complete project in seconds.Scaffold a complete, self-hosted Rebase application connected to your database:
pnpm dlx @rebasepro/cli init my-rebase-app
cd my-rebase-app
pnpm install
pnpm run dev
That is the whole first run — no database to install, no schema step. With no
DATABASE_URL set, rebase dev starts a managed PostgreSQL (PGlite) that lives
in the project directory, generates the schema from your tables, and creates
the tables at boot.
Read the URLs from its output. rebase dev picks a free port per project
rather than fixed ones, so they differ between projects. PORT and
VITE_API_URL in .env apply to rebase start, not here.
Useful flags: --yes (required when there is no terminal to prompt, such as CI),
--headless (see below), --template <name>, and --install / --no-install
on init; --docker on dev to use the compose Postgres in this project
instead, and --no-db to start nothing — set DATABASE_URL yourself.
To use your own Postgres instead: uncomment DATABASE_URL in .env and run
pnpm run dev again. Nothing else changes — a DATABASE_URL that is set is
never touched, and one pointing anywhere other than this machine is left alone
entirely.
Rebase is modular — take only the parts you want:
pnpm dlx @rebasepro/cli init my-api --headless
That scaffolds a headless backend: REST, auth, storage, realtime and backups over
your database, with no backend/schema and no UI. Tables are served
automatically, derived from your schema at boot — change the schema with a
migration, restart, and the API follows. No React anywhere in the dependency tree.
A fresh headless project has no tables yet, so /api/data/* answers
404 NO_TABLES until you create some. Point it at a database that already
has tables, or add them with a migration, and they appear.
The three adoption modes — BaaS (like Supabase), CMS (like Payload/Directus), and both together — are described in MODULAR-ARCHITECTURE.md.
An incredibly fast, windowed spreadsheet view to manage your database with inline editing, real-time updates, filtering, sorting, and text search. Switch between multiple view modes:
Declare your tables in TypeScript with defineTable — columns, relations and a required rls. Rebase automatically generates your Drizzle ORM schema, handles PostgreSQL migrations, and keeps your live database perfectly in sync using built-in tooling like rebase doctor.
First-class database backups for self-hosted Postgres, built on pg_dump / pg_restore:
rebase db backup --out <path|s3://…> — compressed, custom-format dumpsrebase db restore <backup> — confirmation-gated, with --create-db / --target-db to restore into a fresh databaseSee Backups and restore for the full guide — including what a backup does not cover (your uploaded files), security and PITR notes.
Built-in authentication with multiple providers:
Granular role-based access control (RBAC) with customizable permissions per table, column, and action.
Native S3-compatible file storage with:
A full developer environment built into the admin panel — SQL and JS editors, RLS policies, a schema visualizer, database branches, backups, request logs, cron jobs, a storage browser, an API explorer and API keys. What each tool does →
A full WebSocket engine built into every Rebase backend:
Opt in with offline: true and the client SDK keeps a local database of rows instead of a cache of responses:
observe() emits from the local database before any request, and re-emits on local writes, replays, rollbacks, realtime events, and changes from other tabs.Drop custom Hono routes or scheduled tasks into backend/functions/ and backend/crons/. Rebase auto-loads them with database access. A function is public until you check the caller: authentication is not applied for you.
Auto-generate fully typed TypeScript SDKs from your tables. Use them in any frontend, script, or service to interact with your Rebase backend with complete type safety.
pnpm dlx @rebasepro/cli generate-sdk
A built-in Model Context Protocol server that enables AI assistants to:
Point Rebase at an existing PostgreSQL database and automatically write a defineTable file for each of its tables — including types, relations, policies, validation constraints, and more.
Import data from CSV, JSON, and Excel with an intuitive field mapper. Export your data in multiple formats with configurable column selection.
Extend the admin experience with first-party plugins:
Write standalone data manipulation scripts that connect directly to your running backend using the @rebasepro/client SDK. The CLI persists the dev server URL to .rebase-dev-url for zero-config local development.
Build entirely custom views — dashboards, previews, charts — and drop them into the main navigation or as entity-level tabs. Use built-in hooks to interact with Rebase's internal state.
Built entirely on modern, battle-tested web standards:
| Technology | What we use it for |
|---|---|
| 💙 TypeScript 6 | End-to-end type safety |
| ⚛️ React 19 | Component-driven UI |
| 🌊 Tailwind CSS v4 | Utility-first styling |
| 🔌 WebSockets | Real-time synchronization |
| 🗄️ Drizzle ORM | Type-safe SQL migrations and queries |
| 🧱 Radix UI | Accessible UI primitives |
| 📝 ProseMirror | Rich text editing engine |
| 🌐 Hono | Ultrafast HTTP server framework |
Rebase is structured as a modular monorepo — install only the layers you need:
| Package | Description |
|---|---|
@rebasepro/types | Core TypeScript type definitions |
@rebasepro/cms-types | The admin block — presentation types, declared as an augmentation so a headless project pays nothing |
@rebasepro/utils | Shared utility functions |
@rebasepro/common | Common modules shared across packages |
@rebasepro/forms | Lightweight form management library |
@rebasepro/ui | Standalone React component library (Tailwind + Radix) |
@rebasepro/app | Core app logic, controllers, and the auth/login views |
@rebasepro/client | Client-side data access layer |
@rebasepro/firebase | Firebase/Firestore client adapter |
@rebasepro/server | Server framework and middleware (Hono) |
@rebasepro/server-postgres | PostgreSQL server adapter with Drizzle |
@rebasepro/cms | Full admin panel interface |
@rebasepro/studio | SQL editor, RLS editor, schema visualizer, API explorer |
@rebasepro/cli | CLI for project scaffolding and management |
@rebasepro/codegen | TypeScript SDK code generation |
@rebasepro/mcp | MCP server for AI integrations |
@rebasepro/inference | Infers admin-panel field types from sample data, for the CMS data import |
@rebasepro/rls-check | Static audit of a database's row-level security |
@rebasepro/plugin-ai | AI-powered data enhancement plugin |
@rebasepro/plugin-insights | Analytics and insights plugin |
Every @rebasepro/* package ships ES modules and nothing else — "type": "module", no CommonJS build, no require() entry point. A CommonJS project
reaches them with a dynamic await import(), or with require() on the Node
floor, which loads ES modules. There is no dual build to fall back to.
Node 22.22 is the floor, from .nvmrc and enforced by
pnpm check:floors.
Rebase is 0.x: the authored TypeScript API can still change in a minor, and
every such change is in the changelog.
Separately, a small set of contracts is versioned and enforced — the bundle format, the bundle↔runtime contract, the auth schema version, and the hash identifying which schema a generated SDK was built against. These are stamped into built artifacts and live databases, checked at boot, and fail with a specific message rather than degrading. They are also the only things Rebase Cloud depends on, which is what lets a project move between self-hosting and the cloud. See docs/compatibility.md.
Rebase exposes its design system as a completely independent library. Fully typed, accessible, and customizable via Tailwind CSS v4:
pnpm add @rebasepro/ui
Explore a live interactive sandbox with all features — data resets periodically:
Rebase is designed from the ground up to be AI-agent ready. When developing a Rebase project using AI coding assistants (like Cursor, Windsurf, or Copilot):
ai-instructions.md)Every project scaffolded with rebase init carries its agent rules in ai-instructions.md, plus a short pointer file for each assistant that reads its own — AGENTS.md, CLAUDE.md, .cursorrules, .windsurfrules and .github/copilot-instructions.md. Each pointer names ai-instructions.md and the rebase skills install --agent <name> command for that assistant. The rules cover:
pnpm dev runs, saving a file in backend/schema/ is the whole step; db:push is for what boot leaves alone, and production uses db:generate then db:migrate..env, or hand-edit generated files.rebase init writes .mcp.json, so Claude Code, Cursor and any other MCP client can drive the project the moment it is scaffolded:
{
"mcpServers": {
"rebase": {
"command": "pnpm",
"args": ["exec", "rebase-mcp"],
"env": {
"REBASE_PROJECT_DIR": "."
}
}
}
}
It speaks MCP over stdio and needs no login: while rebase dev is running it reads the backend URL and service key from .rebase/state.json. Write tools are refused against anything that is not on the loopback interface, which is the single most valuable thing in the package.
Setup, the tool list, and what the server can reach → — copy-paste blocks for Claude Code, Cursor, Gemini CLI, Codex and Kiro, and the credential model to read before pointing an assistant at a database you care about.
If your AI coding agent or database role permissions cause a permission denied for table <table_name> error when executing queries in the Rebase Studio SQL Editor:
DISABLE_DB_ROLE_SWITCHING=true to your .env file.rebase) rather than trying to perform a PostgreSQL role switch to a non-existent database-level role.Bug fixes, features and documentation are all welcome.
CONTRIBUTING.md is the whole path: clone, install, start
the database, run the app, and the one command — pnpm ci:static — that runs
what CI runs. It also covers commits and the changelog rule, and how to run one
package's tests.
Two more worth knowing before a first pull request:
as any, no dynamic require, no polling on a realtime framework, no
hidden dunder properties on data objects. Written for an AI agent, and exactly
as binding on a person.Built and maintained by Camberi, a product engineering studio in Madrid and Munich that also builds for clients.
If you find Rebase useful, please consider giving us a star on GitHub — it helps more developers discover the project!
Rebase is open-source and licensed under the MIT License. See the full License for details.