# Rebase

> Rebase is an open-source MCP server for databases. Schema, database, document, user and dev-server tools for a Rebase Postgres backend. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://rebase.pro
- **Repository:** https://github.com/rebasepro/rebase/tree/HEAD/packages/mcp
- **MCP Registry name:** io.github.rebasepro/rebase
- **Categories:** databases, developer tools
- **Listing updated:** 2026-11-14

## About

Rebase is an MIT-licensed backend over your own Postgres, with REST, a typed SDK, realtime, auth, storage and a schema-driven admin panel. This package gives an assistant the project-level tools: inspecting schema, working with database and document records, managing users and driving the dev server.

It finds a local dev server when one runs and otherwise uses REBASE_BASE_URL with an API token. Destructive tools are blocked against non-local targets unless REBASE_MCP_ALLOW_REMOTE_WRITES is turned on, so production is protected by default. Access rules in Rebase compile to Postgres row-level security, so an agent is bound by the same policies as any other client.

It needs Node 22.22 or newer and should match the CLI release of the project it drives; projects made with rebase init already include it.

## Features

- **Schema tools:** Inspect and change collection schema.
- **Document and user tools:** Read and write records and manage users.
- **Dev server control:** Work with the project's own dev server.
- **Remote write guard:** Destructive tools stay off for non-local targets by default.
- **RLS-backed access:** Policies run in Postgres, not only in the tool.

## Good for

- Let an agent scaffold collections in a Rebase project
- Inspect records while debugging an app
- Create test users during development
- Keep an agent's database changes restricted to local

## Install

### Claude Code (Terminal)

```sh
claude mcp add rebase --env REBASE_API_TOKEN='<REBASE_API_TOKEN>' -- npx -y @rebasepro/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "rebase": {
      "command": "npx",
      "args": [
        "-y",
        "@rebasepro/mcp"
      ],
      "env": {
        "REBASE_API_TOKEN": "<REBASE_API_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "rebase": {
      "command": "npx",
      "args": [
        "-y",
        "@rebasepro/mcp"
      ],
      "env": {
        "REBASE_API_TOKEN": "<REBASE_API_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "rebase": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@rebasepro/mcp"
      ],
      "env": {
        "REBASE_API_TOKEN": "<REBASE_API_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "rebase": {
      "command": "npx",
      "args": [
        "-y",
        "@rebasepro/mcp"
      ],
      "env": {
        "REBASE_API_TOKEN": "<REBASE_API_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "rebase": {
      "command": "npx",
      "args": [
        "-y",
        "@rebasepro/mcp"
      ],
      "env": {
        "REBASE_API_TOKEN": "<REBASE_API_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Can it change production data?

Not by default; REBASE_MCP_ALLOW_REMOTE_WRITES must be enabled for destructive tools on non-local targets.

### What does it need to run?

Node 22.22 or newer and a Rebase project with a rebase.json.

### Is Rebase free?

The code is MIT licensed and free to self-host; Rebase Cloud is priced per resource.

### How do I add Rebase to Claude Code?

Run this command in your terminal: claude mcp add rebase --env REBASE_API_TOKEN='<REBASE_API_TOKEN>' -- npx -y @rebasepro/mcp

### What are the best alternatives to Rebase?

The closest alternatives to Rebase are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/rebase
