Skip to content
MCP server

Rebase

Schema, database, document, user and dev-server tools for a Rebase Postgres backend

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, self-hosted
Runs
Locally
Version
0.33.0
Listing updated
3 days ago

About Rebase

Rebase is an open-source MCP server for databases. It runs locally on your machine and is started by your AI client.

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.

Install

Run in a terminal

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

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Configuration

  • REBASE_PROJECT_DIRProject root — the directory holding rebase.json. Defaults to the working directory.
  • REBASE_BASE_URLBackend URL, used when no local dev server is discovered.
  • REBASE_API_TOKENAPI token for the target project. Not needed against a local dev server.
  • REBASE_MCP_ALLOW_REMOTE_WRITESAllow destructive tools to run against a non-local target. Off by default.

What it does

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

Pricing

Open source

MIT; Rebase Cloud priced per resource

Prices change. Check rebase.pro before you buy.

Rebase 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 to Rebase

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools