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 mcp add rebase -- npx -y @rebasepro/mcpnpx -y @rebasepro/mcpgit clone https://github.com/corabase/corabaseTools (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.| Parameter | Type | Description |
|---|---|---|
| deleted | any | |
| groupBy | array | Columns 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. |
| limit | number | Groups to return, 1 to ${MAX_LIST_LIMIT} (default ${DEFAULT_LIST_LIMIT}). Grouped calls only. |
| offset | number | Groups to skip. Grouped calls only. |
| orderBy | any | Sort 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. |
| searchString | any | |
| select * | array | The 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 | |
| where | any |
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.| Parameter | Type | Description |
|---|---|---|
| deleted | any | |
| searchString | any | |
| table * | any | |
| where | any |
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.| Parameter | Type | Description |
|---|---|---|
| data * | object | Column values for the new row, as the SDK's `create(data)`. |
| id | string | Optional explicit id. |
| table * | any |
delete_appDelete an app saved to the project: its owner, or an admin. The project's data is untouched.| Parameter | Type | Description |
|---|---|---|
| id * | string | The 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.| Parameter | Type | Description |
|---|---|---|
| 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.| Parameter | Type | Description |
|---|---|---|
| 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.| Parameter | Type | Description |
|---|---|---|
| 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.| Parameter | Type | Description |
|---|---|---|
| id * | string | The 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.| Parameter | Type | Description |
|---|---|---|
| deleted | any | |
| limit | number | Rows to return, 1 to ${MAX_LIST_LIMIT} (default ${DEFAULT_LIST_LIMIT}). A larger limit is refused. |
| offset | number | Rows to skip. |
| orderBy | any | Sort, as the SDK's `orderBy`: ["created_at", "desc"], a list of those applied in order, or "created_at:desc". |
| searchString | any | |
| table * | any | |
| where | any |
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.| Parameter | Type | Description |
|---|---|---|
| code * | string | The app, as show_app takes it. |
| id | string | The saved app to replace. |
| roles | array | With `roles`: the roles that see it. |
| tables * | array | As show_app takes them. |
| title * | string | The app's name, as people will find it. |
| visibility | string | Who 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.| Parameter | Type | Description |
|---|---|---|
| code * | string | The app: one TSX module, default-exporting a React component. |
| tables * | array | The tables the app reads, by the names list_tables gives (at most |
| title | string | The 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.| Parameter | Type | Description |
|---|---|---|
| id | string | The row to open. Omit it for a new row's form. |
| table * | any | |
| values | object | A 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.| Parameter | Type | Description |
|---|---|---|
| view | any |
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.| Parameter | Type | Description |
|---|---|---|
| maxBytes | number | How much of the content to return, in bytes (default ${DEFAULT_STORAGE_GET_BYTES}, at most ${MAX_STORAGE_GET_BYTES}). |
| path * | any | |
| source | any |
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.| Parameter | Type | Description |
|---|---|---|
| path * | any | |
| source | any |
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.| Parameter | Type | Description |
|---|---|---|
| cursor | string | The `nextCursor` of the page before. |
| limit | number | Entries per page (default ${DEFAULT_STORAGE_LIST_LIMIT}, at most ${MAX_STORAGE_LIST_LIMIT}). |
| prefix | string | The folder: a key prefix such as `uploads/2026/`, or an s3:// / gs:// / local:// URL of one. The root when left out. |
| source | any |
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.| Parameter | Type | Description |
|---|---|---|
| data * | object | Columns 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.