# SupaForge

> SupaForge is an MCP server for databases. Compare and sync Supabase environments, with an MCP server for agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, VS Code, API
- **Website:** https://supaforge.dev
- **Repository:** https://github.com/akalsoftware/supaforge/tree/HEAD/packages/cli
- **MCP Registry name:** io.github.akalsoftware/supaforge
- **Categories:** [databases](https://ai-powered.com/categories/databases), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

The core of SupaForge is a diff engine run across two Supabase projects, say dev and prod. Beyond the schema it reads RLS policies (compared by meaning rather than text), grants, storage buckets and their policies, auth config, Edge Functions, cron jobs, queues, partition sets, webhooks, Realtime publications, extensions and migration history. Vault entries are compared by name only, since values cannot be read.

Writes are opt-in. Nothing changes without `--apply`, and fixes that lose data or widen access also need `--allow-destructive`. Fixes run in dependency order inside one transaction, so a failure leaves the target untouched, and `--prove` rehearses the migration on a throwaway copy first. Each fix also notes the lock it takes and whether it may rewrite a table.

The same engine is available from the CLI (npm, Homebrew, Docker), a GitHub Action, a VS Code extension and the MCP server. With a single project it can snapshot, restore and clone instead.

## Features

- **Whole-project diff:** Compares schema, RLS, storage, auth, functions, cron, queues and more, not just tables.
- **Safe by default:** Writes need --apply; destructive changes also need --allow-destructive.
- **Production-aware fixes:** Each fix reports the lock it holds and whether it can rewrite or scan a table.
- **Prove before applying:** --prove rehearses the migration and refuses ones that would lose rows.
- **Many ways to run:** npm, Homebrew, Docker, GitHub Actions, VS Code and MCP.
- **Snapshot and clone:** With one project it can snapshot, restore and clone it.

## Good for

- Find what drifted between staging and production before a release
- Catch RLS or grant differences that tests miss
- Apply environment fixes from CI with a dry run first
- Let a coding agent inspect drift through MCP

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add supaforge -- npx -y @akal/supaforge
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "supaforge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add supaforge -- npx -y @akal/supaforge
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.supaforge]
command = "npx"
args = ["-y", "@akal/supaforge"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user supaforge npx -- -y @akal/supaforge

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "supaforge": {
      "command": "npx",
      "args": [
        "-y",
        "@akal/supaforge"
      ]
    }
  }
}
```

## FAQ

### Does SupaForge change my database by default?

No. Writes need --apply and risky ones need --allow-destructive.

### What Node version is needed?

Node.js 22 or newer for the CLI, according to the README; the site mentions 20+.

### Does SupaForge work with self-hosted Supabase?

Yes, the README lists Supabase Cloud, self-hosted stacks and plain PostgreSQL targets.

### Are storage objects copied?

No, only buckets and their policies are compared.

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

Run this command in your terminal: claude mcp add supaforge -- npx -y @akal/supaforge

### What are the best alternatives to SupaForge?

The closest alternatives to SupaForge are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [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): 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.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers 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.

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