1. Conduid
  2. Data
  3. Rebase
MCP server · Data

Rebase

Model Context Protocol server for Rebase, the open-source Postgres BaaS — schema, database, document and user tools for AI agents.

58Fair

Scored 7 hours ago · breakdown

About Rebase

Rebase is an MCP server published by corabase in the Data category: model Context Protocol server for Rebase, the open-source Postgres BaaS — schema, database, document and user tools for AI agents. Conduid read 20 tools from its source: aggregate_rows, count_rows, create_row, delete_app, delete_row, describe_table and 14 more. It is published to npm as @rebasepro/mcp and starts with npx.

The corabase/corabase monorepo this package is published from has 32 stars and 2 forks, and its last commit was on 2 Dec 2026. The latest release is v0.24.0 (8 Oct 2026): Breaking CLI rebase db push and rebase db generate write their SQL to .rebase/sql/ instead of drizzle/. It follows v0.23.0 (27 Sep 2026), and the 5 most recent releases go back to v0.21.0 (14 Sep 2026). Its topics include rebase, baas, backend-as-a-service and postgres.

Install

Claude Code
claude mcp add rebase -- npx -y @rebasepro/mcp
npx
npx -y @rebasepro/mcp
From source
git clone https://github.com/corabase/corabase

Tools (20)

aggregate_rowsCount, sum, average, minimum, maximum, distinct counts, modes, percentiles, distinct values and a change fingerprint over the rows of a table that match, optionally grouped, exactly as the REST API's `GET /api/data/<table>/aggregate` does: `select` is a list like ["count()", "sum(total)"], `groupBy` the columns to group by. `data` is one row per group (one row without `groupBy`), each value under its alias (`count`, `sum_total`); a grouped call has `meta` with `hasMore` — page with `offset` while it is true. Aggregates only rows the signed-in user is allowed to see. Use it for totals and breakdowns rather than reading every row.
ParameterTypeDescription
deletedany
groupByarrayColumns to group by, e.g. ["status"], or a column transformed: "lower(name)", "upper(name)", "year(createdAt)", "month(createdAt)", "day(createdAt)" (UTC), or "unnest(tags)" for one group per element of an array. A transformed group comes back as `<transform>_<column>`. Omit it for one row over every row that matches.
limitnumberGroups to return, 1 to ${MAX_LIST_LIMIT} (default ${DEFAULT_LIST_LIMIT}). Grouped calls only.
offsetnumberGroups to skip. Grouped calls only.
orderByanySort the groups, by a `groupBy` column or an alias: ["sum_total", "desc"], a list of those applied in order, or "sum_total:desc". Grouped calls only.
searchStringany
select *arrayThe aggregates, as REST's `select`: "count()" counts rows; "count(column)", "sum(column)", "avg(column)", "min(column)", "max(column)", "countDistinct(column)", "mode(column)", "distinct(column)" (the sorted distinct values) and "percentile(column,0.95)" read a column; "fingerprint()" changes whenever a matching row does. Each comes back under its alias: `count`, `sum_total`, `count_distinct_sid`, `p95_price`, …
table *any
whereany
count_rowsCount the rows of a table that match, exactly as the REST API's `GET /api/data/<table>/count` does. Counts only rows the signed-in user is allowed to see.
ParameterTypeDescription
deletedany
searchStringany
table *any
whereany
create_rowAdd a row to a table. Subject to the same permissions as creating it in the app: the signed-in user's own access is the boundary.
ParameterTypeDescription
data *objectColumn values for the new row, as the SDK's `create(data)`.
idstringOptional explicit id.
table *any
delete_appDelete an app saved to the project: its owner, or an admin. The project's data is untouched.
ParameterTypeDescription
id *stringThe saved app, from list_apps.
delete_rowDelete a row of a table by id. On a table with a `softDeleteField` (see describe_table) the row goes to the trash: query_table with `deleted: "only"` finds it, and update_row setting that column to null restores it. On any other table the delete is permanent: confirm with the user first.
ParameterTypeDescription
id *string
table *any
describe_tableThe schema of one table, as you may use it. `row` is the JSON Schema of a row as the read tools return it (its columns, the required ones, allowed values, a belongsTo relation as its foreign-key column, e.g. `authorId`), and `create` is the JSON Schema of create_row's `data`; update_row takes any subset of it. `relations` names the tables a row links to; `rls` is who may read and write which rows. `softDeleteField`, when present, is the column a delete stamps: a deleted row is hidden, and update_row setting that column to null restores it. A table of kind "view" is read-only. `title` and `presentation` are how the project's admin panel presents the table: a column's `label`, its `valueLabels`, whether the panel hides it, and `readOnly` for a column the project presents read-only — leave such a column as it is unless the user asks to change it. Use the labels when you talk to the user; the tools take the column names. Call this before writing to a table.
ParameterTypeDescription
table *any
get_rowRead one row of a table by id, exactly as the REST API's `GET /api/data/<table>/<id>` serves it. Fails if the signed-in user cannot see it.
ParameterTypeDescription
id *string
table *any
list_appsThe apps saved to the project that you may open: yours, your roles' and the team's, newest first. Open one with open_app.
list_tablesList the tables of this project's Postgres database that you can use: each one's `name` and `description`. A table holds rows; each row has a value for each of the table's columns. Call this first — every other tool takes a table name from here. It carries no schemas: call describe_table for a table's columns before writing to it, or before filtering on a column you have not seen in its rows.
open_appOpen an app saved to the project, by its id from list_apps, as show_app opens one: it runs as you, on the project's data, under your access.
ParameterTypeDescription
id *stringThe saved app, from list_apps.
query_tableRead rows from a table, exactly as the REST API's `GET /api/data/<table>` serves them: `data` is the rows (dates as ISO text, a belongsTo relation as its foreign key, e.g. `authorId`), `meta` has `total` and `hasMore`. Returns only rows the signed-in user is allowed to see, so an empty result can mean 'none match' or 'none visible to you'. Page with `offset` while `meta.hasMore` is true.
ParameterTypeDescription
deletedany
limitnumberRows to return, 1 to ${MAX_LIST_LIMIT} (default ${DEFAULT_LIST_LIMIT}). A larger limit is refused.
offsetnumberRows to skip.
orderByanySort, as the SDK's `orderBy`: ["created_at", "desc"], a list of those applied in order, or "created_at:desc".
searchStringany
table *any
whereany
save_appSave an app you built with show_app to the project, so it opens again with open_app — here, in the admin panel, or as a Claude artifact — for whoever it is saved for: `personal` (you), `roles` (anyone holding one of `roles`) or `team` (everyone who signs in). Sharing it takes the admin role. The code is compiled first, as show_app compiles it. With `id`, replaces that app (its owner or an admin only). Save only when the person asks to keep or share the app.
ParameterTypeDescription
code *stringThe app, as show_app takes it.
idstringThe saved app to replace.
rolesarrayWith `roles`: the roles that see it.
tables *arrayAs show_app takes them.
title *stringThe app's name, as people will find it.
visibilitystringWho sees it. `personal` by default.
show_appBuild a small app for what the user is doing — a triage queue, a dashboard, a review flow — and open it in the conversation: a React component you write, running on the project's tables as the user, with the admin panel's own table views and record forms to compose. Use it when one table or one row is not enough (show_table and show_record open those). The code is compiled before anything opens: a mistake comes back as this call's error, with its line, to fix and call again. A runtime error, and what the user changes, reach you with their next message.
ParameterTypeDescription
code *stringThe app: one TSX module, default-exporting a React component.
tables *arrayThe tables the app reads, by the names list_tables gives (at most
titlestringThe app's heading.
show_app_guideHow to write show_app's code: the modules an app imports, every hook and component with its props, and a worked example. Read it before your first show_app call in a conversation.
show_recordOpen one row of a table in the admin panel's form, for the user to read or edit (`id`), or open a form for a new row (no `id`), starting from `values` you fill in — for the user to check and save themselves. Use it when the user wants to look at or change a row by hand, or to review a row you drafted before it is created; to write a row yourself, use create_row or update_row. Its result is the row, or the values the new form starts with.
ParameterTypeDescription
idstringThe row to open. Omit it for a new row's form.
table *any
valuesobjectA new row's starting values, as create_row's `data`.
show_tableShow rows of a table to the user, in the admin panel's own view of it: a table, list, cards or kanban board they can search, filter, sort and page, where they open a row's form to read or edit it, and add rows. Use it when the user wants to see, browse or edit data, rather than for reading rows yourself (that is query_table). It takes query_table's arguments, plus `view`; its result is that page of rows.
ParameterTypeDescription
viewany
storage_getRead one object of the app's file storage: what storage_head answers, plus its content when it is text — the first `maxBytes` (default ${DEFAULT_STORAGE_GET_BYTES / 1024} KB, at most ${MAX_STORAGE_GET_BYTES / 1024} KB), with`truncated` saying whether there is more. A binary object (an image, a PDF, an archive) answers its size and type and a note instead of content.
ParameterTypeDescription
maxBytesnumberHow much of the content to return, in bytes (default ${DEFAULT_STORAGE_GET_BYTES}, at most ${MAX_STORAGE_GET_BYTES}).
path *any
sourceany
storage_headWhether one object is in the app's file storage, and its size, content type and last change — without reading it. `path` takes the key or the value a row stores for the file (s3://bucket/key and the like). A missing object answers `exists: false`, not an error.
ParameterTypeDescription
path *any
sourceany
storage_listList one folder of the app's file storage: the files directly under `prefix` (each one's key, size and last change) and its sub-folders, a page at a time (`limit`, then `cursor` from `nextCursor`). The result also names the app's storage sources and the provider bucket each serves, so an s3://bucket/… value in a row can be traced to its source.
ParameterTypeDescription
cursorstringThe `nextCursor` of the page before.
limitnumberEntries per page (default ${DEFAULT_STORAGE_LIST_LIMIT}, at most ${MAX_STORAGE_LIST_LIMIT}).
prefixstringThe folder: a key prefix such as `uploads/2026/`, or an s3:// / gs:// / local:// URL of one. The root when left out.
sourceany
update_rowChange columns on an existing row, as the SDK's `update(id, data)`. Only the columns given are touched. A row read with get_row or query_table can be sent back as it is. Subject to the same permissions as editing it in the app.
ParameterTypeDescription
data *objectColumns to change.
id *string
table *any

Security checks

From the corabase/corabase monorepo, not this package alone.

6 checks have not been run yet.

Releases

From the corabase/corabase monorepo.

v0.24.0v0.24.0 · 8 Oct 2026Breaking CLI `rebase db push` and `rebase db generate` write their SQL to `.rebase/sql/` instead of `drizzle/`. This covers `schema.sql`, `policies.sql`, `search.sql`, `vector.sql` and `triggers.sql`. Both commands regenerate these files…
v0.23.0v0.23.0 · 27 Sep 2026Breaking Server & REST An API key on a nested path needs `read` on every parent collection in the path. A key scoped only to `posts` that calls `/authors/1/posts` now gets a 403 until it can also read `authors`. The route's operation is…
v0.22.0v0.22.0 · 21 Sep 2026Added Linking an account returns the provider's profile picture. `verify` already fetches a photo from every provider that has one, and both sign-in branches pass it to `updateUser` — but `POST /auth/link/:provider` asked for the same…
v0.21.1v0.21.1 · 15 Sep 2026Added `rebase upgrade` moves every `@rebasepro/*` package to one release. A project pins the framework in several `package.json` files, and `rebase build` could only warn that they were behind. `rebase upgrade` rewrites every…
v0.21.0v0.21.0 · 14 Sep 2026Breaking `context.client.data` no longer compiles in a collection callback. A callback's queries go through `context.data`. `RebaseCallContext["client"]` is now `RebaseCallbackClient`, which is `RebaseClient` without `data`. The old…
Questions

About Rebase

How do I install Rebase?

In Claude Code, run claude mcp add rebase -- npx -y @rebasepro/mcp. Other MCP clients take the command after "--" in their server configuration.

Is Rebase safe to use with an AI agent?

Its trust score is 58 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Rebase still maintained?

Yes — the latest release in the corabase/corabase monorepo is v0.24.0 (8 Oct 2026), and the last commit was 12 hours ago. The corabase/corabase monorepo has 32 stars.

What tools does Rebase provide?

Conduid read 20 tools from the source: aggregate_rows, count_rows, create_row, delete_app, delete_row, describe_table, get_row, list_apps and 12 more. 17 of them publish their parameters, listed under Tools above.