# Approval gate for databases

> Approval gate for databases is an open-source MCP server for databases. MCP wrapper that holds database writes until a second person approves them on their phone. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, API
- **Repository:** https://github.com/hibira-io/mcp-approval-gate
- **MCP Registry name:** io.hibira/mcp-approval-gate
- **Categories:** databases, security
- **Listing updated:** 2026-11-14

## About

Most database MCP servers are either read-only or let an assistant write anything, and a client's own allow prompt is answered by the same person who asked. This gate sits in front of the database MCP server you already run and lets reads through, while any statement that changes data or schema waits for someone else to approve it in a Hibira approvals inbox, with a push notification to their phone.

An approval is bound to one exact call: if the statement changes it needs a new approval, and an approved call runs once. It fails closed, so SQL it cannot read, tools not known to be read-only, and an unreachable approval service all block execution. The reviewer sees the database label, the kind of change, warnings such as a DELETE without WHERE, and the full statement. The assistant never receives the approval link.

It was tested with DBHub, Postgres MCP Pro and Supabase MCP, and presets cover Stripe, GitHub, Gmail and Shopify. The gate runs next to your database, and Hibira sees only the request title, statement and tool name, never your connection string or results. A Hibira Approvals workspace is required, and an HTTP mode with a token serves ChatGPT and claude.ai.

## Features

- **Write approval:** Writes and schema changes wait for another person to approve.
- **Exact-call binding:** Approval covers one call with one set of arguments and runs once.
- **Fails closed:** Unreadable SQL or an unreachable approval service blocks execution.
- **Reviewer warnings:** Flags things like a DELETE without WHERE.
- **Presets:** Preset rules for Stripe, GitHub, Gmail and Shopify servers.
- **Remote HTTP mode:** Can run as a small server for web clients such as ChatGPT.

## Good for

- Let an assistant query production while a manager approves updates
- Require sign-off before migrations on a Supabase project
- Gate Stripe refunds or GitHub merges behind an approval
- Give a team an audit step before data changes

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-approval-gate --env GATE_COMMAND='<GATE_COMMAND>' --env HIBIRA_APP_ID='<HIBIRA_APP_ID>' --env HIBIRA_KEY='<HIBIRA_KEY>' --env HIBIRA_SECRET='<HIBIRA_SECRET>' -- npx -y @hibira-io/mcp-approval-gate
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-approval-gate": {
      "command": "npx",
      "args": [
        "-y",
        "@hibira-io/mcp-approval-gate"
      ],
      "env": {
        "GATE_COMMAND": "<GATE_COMMAND>",
        "HIBIRA_APP_ID": "<HIBIRA_APP_ID>",
        "HIBIRA_KEY": "<HIBIRA_KEY>",
        "HIBIRA_SECRET": "<HIBIRA_SECRET>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-approval-gate": {
      "command": "npx",
      "args": [
        "-y",
        "@hibira-io/mcp-approval-gate"
      ],
      "env": {
        "GATE_COMMAND": "<GATE_COMMAND>",
        "HIBIRA_APP_ID": "<HIBIRA_APP_ID>",
        "HIBIRA_KEY": "<HIBIRA_KEY>",
        "HIBIRA_SECRET": "<HIBIRA_SECRET>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp-approval-gate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hibira-io/mcp-approval-gate"
      ],
      "env": {
        "GATE_COMMAND": "<GATE_COMMAND>",
        "HIBIRA_APP_ID": "<HIBIRA_APP_ID>",
        "HIBIRA_KEY": "<HIBIRA_KEY>",
        "HIBIRA_SECRET": "<HIBIRA_SECRET>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-approval-gate": {
      "command": "npx",
      "args": [
        "-y",
        "@hibira-io/mcp-approval-gate"
      ],
      "env": {
        "GATE_COMMAND": "<GATE_COMMAND>",
        "HIBIRA_APP_ID": "<HIBIRA_APP_ID>",
        "HIBIRA_KEY": "<HIBIRA_KEY>",
        "HIBIRA_SECRET": "<HIBIRA_SECRET>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-approval-gate": {
      "command": "npx",
      "args": [
        "-y",
        "@hibira-io/mcp-approval-gate"
      ],
      "env": {
        "GATE_COMMAND": "<GATE_COMMAND>",
        "HIBIRA_APP_ID": "<HIBIRA_APP_ID>",
        "HIBIRA_KEY": "<HIBIRA_KEY>",
        "HIBIRA_SECRET": "<HIBIRA_SECRET>"
      }
    }
  }
}
```

## FAQ

### Does Hibira see my database?

No. It sees only the approval request title, statement and tool name, not the connection string or query results.

### What happens if the approval service is down?

Nothing runs; the gate fails closed.

### Which database servers has it been tested with?

DBHub, Postgres MCP Pro and Supabase MCP.

### Can it be used with claude.ai or ChatGPT?

Yes, by running it in HTTP mode behind HTTPS with a GATE_TOKEN.

### Is Approval gate for databases free?

Yes. Approval gate for databases is open source, so you can use and self-host it for free.

### How do I add Approval gate for databases to Claude Code?

Run this command in your terminal: claude mcp add mcp-approval-gate --env GATE_COMMAND='<GATE_COMMAND>' --env HIBIRA_APP_ID='<HIBIRA_APP_ID>' --env HIBIRA_KEY='<HIBIRA_KEY>' --env HIBIRA_SECRET='<HIBIRA_SECRET>' -- npx -y @hibira-io/mcp-approval-gate

### What are the best alternatives to Approval gate for databases?

The closest alternatives to Approval gate for databases are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/approval-gate-for-databases
