Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Approval gate for databases

by hibira-ioversion 0.4.0i★ 0iRuns on your computer
Registry nameio.hibira/mcp-approval-gate

How to install

What it does

Wraps a database MCP server: reads pass, writes wait for a supervisor to approve them.

  • Connects Runs on your computer
  • Account or key Needs GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET · 1 setting to fill in (HIBIRA_APP_ID)
  • Category Databases & datasets

Install

Pick the AI app you use, then copy the settings.

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a Approval gate for databases key (create it on the maker’s site) · 1 setting(s) to fill in (HIBIRA_APP_ID) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Approval gate for databases for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "approval-gate": { "command": "npx", "args": [ "-y", "@hibira-io/mcp-approval-gate" ], "env": { "GATE_COMMAND": "your-value", "HIBIRA_APP_ID": "your-value", "HIBIRA_KEY": "your-value", "HIBIRA_SECRET": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Approval gate for databases tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Approval gate for databases key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Approval gate for databases site ↗

  3. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • HIBIRA_APP_ID Hibira app ID (hibira.io portal)

    Descriptions are as written by the maker.

  4. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  5. Paste these settings and save the file

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

    Paste the key only into the app’s field, never into a chat or to anyone

  6. Quit Claude and open it again

  7. Try it

    Use Approval gate for databases and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Approval gate for databases or shows a Approval gate for databases tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • GATE_LABEL The database's name on the approval page
  • GATE_PUSH_INTERESTS Comma-separated push interests that receive approval requests
  • GATE_MODE writes (default), all or none · default writes

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Approval gate for databases yet

Approval gate for databases runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Approval gate for databases

  • You need a Approval gate for databases key (create it on the maker’s site) · 1 setting(s) to fill in (HIBIRA_APP_ID) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Approval gate for databases key (create it on the maker’s site) · 1 setting(s) to fill in (HIBIRA_APP_ID) · Install Node.js on your computer first (one time)
  • You need a Approval gate for databases key (create it on the maker’s site) · 1 setting(s) to fill in (HIBIRA_APP_ID) · Install Node.js on your computer first (one time)
  • You need a Approval gate for databases key (create it on the maker’s site) · 1 setting(s) to fill in (HIBIRA_APP_ID) · Install Node.js on your computer first (one time)

B · Others in Databases & datasets that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a Approval gate for databases key (create it on the maker’s site) · 1 setting(s) to fill in (HIBIRA_APP_ID) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Approval gate for databases for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user approval-gate --env GATE_COMMAND=your-value --env HIBIRA_APP_ID=your-value --env HIBIRA_KEY=your-value --env HIBIRA_SECRET=your-value -- npx -y @hibira-io/mcp-approval-gate 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Approval gate for databases tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Approval gate for databases key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Approval gate for databases site ↗

  3. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • HIBIRA_APP_ID Hibira app ID (hibira.io portal)

    Descriptions are as written by the maker.

  4. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  5. Paste this command and press Enter

    claude mcp add --scope user approval-gate --env GATE_COMMAND=your-value --env HIBIRA_APP_ID=your-value --env HIBIRA_KEY=your-value --env HIBIRA_SECRET=your-value -- npx -y @hibira-io/mcp-approval-gate

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  6. Type /mcp in Claude Code

    You should see Approval gate for databases listed as connected

  7. Try it

    Use Approval gate for databases and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Approval gate for databases or shows a Approval gate for databases tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • GATE_LABEL The database's name on the approval page
  • GATE_PUSH_INTERESTS Comma-separated push interests that receive approval requests
  • GATE_MODE writes (default), all or none · default writes

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a Approval gate for databases key (create it on the maker’s site) · 1 setting(s) to fill in (HIBIRA_APP_ID) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Approval gate for databases for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "approval-gate": { "command": "npx", "args": [ "-y", "@hibira-io/mcp-approval-gate" ], "env": { "GATE_COMMAND": "your-value", "HIBIRA_APP_ID": "your-value", "HIBIRA_KEY": "your-value", "HIBIRA_SECRET": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Approval gate for databases tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Approval gate for databases key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Approval gate for databases site ↗

  3. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • HIBIRA_APP_ID Hibira app ID (hibira.io portal)

    Descriptions are as written by the maker.

  4. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  5. Fill in your key

    In the Approval gate for databases settings, GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  6. Open the AI chat in Cursor in Agent mode

  7. Try it

    Use Approval gate for databases and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Approval gate for databases or shows a Approval gate for databases tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • GATE_LABEL The database's name on the approval page
  • GATE_PUSH_INTERESTS Comma-separated push interests that receive approval requests
  • GATE_MODE writes (default), all or none · default writes

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a Approval gate for databases key (create it on the maker’s site) · 1 setting(s) to fill in (HIBIRA_APP_ID) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Approval gate for databases for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "approval-gate": { "type": "stdio", "command": "npx", "args": [ "-y", "@hibira-io/mcp-approval-gate" ], "env": { "GATE_COMMAND": "your-value", "HIBIRA_APP_ID": "your-value", "HIBIRA_KEY": "your-value", "HIBIRA_SECRET": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Approval gate for databases tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Approval gate for databases key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Approval gate for databases site ↗

  3. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • HIBIRA_APP_ID Hibira app ID (hibira.io portal)

    Descriptions are as written by the maker.

  4. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  5. Fill in your key

    In the Approval gate for databases settings, GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  6. Open the AI chat in VS Code in Agent mode

  7. Try it

    Use Approval gate for databases and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Approval gate for databases or shows a Approval gate for databases tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • GATE_LABEL The database's name on the approval page
  • GATE_PUSH_INTERESTS Comma-separated push interests that receive approval requests
  • GATE_MODE writes (default), all or none · default writes

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Approval gate for databases💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user approval-gate --env GATE_COMMAND=your-value --env HIBIRA_APP_ID=your-value --env HIBIRA_KEY=your-value --env HIBIRA_SECRET=your-value -- npx -y @hibira-io/mcp-approval-gate

Claude Desktop (claude_desktop_config.json)

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

Cursor (~/.cursor/mcp.json)

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

VS Code (mcp.json)

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

Values you fill in

  • GATE_COMMAND secret required env
    The database MCP server to wrap, e.g. npx -y @bytebase/dbhub --transport stdio --dsn postgres://user:pass@host/db
  • HIBIRA_APP_ID required env
    Hibira app ID (hibira.io portal)
  • HIBIRA_KEY secret required env
    Hibira app key
  • HIBIRA_SECRET secret required env
    Hibira app secret
  • GATE_LABEL env
    The database's name on the approval page
  • GATE_PUSH_INTERESTS env
    Comma-separated push interests that receive approval requests
  • GATE_MODE env
    writes (default), all or none

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
Not on npm/PyPI
Verified domain
✓ hibira.io
Connection
Runs on your computer
Latest versioni
0.4.0
Published to registryi
Nov 13, 2026
Code last changedi
Nov 13, 2026
Maker
hibira-io
Packages
npm: @hibira-io/mcp-approval-gate
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 16, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified against the domain hibira.io (the registry checks domain ownership)

  • ✓ Pass

    Still maintained

    Code last changed 3 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for @hibira-io/mcp-approval-gate@0.4.0

Checks only this package version, not every dependency · checked Nov 16, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Databases & datasetsi

  • More stars than 0% of the other 1204 servers in this category
  • Published to the registry more recently than 92% of the other 1204 servers in this category
  • Basic checks equal to or better than 100% of the other 1204 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Approval gate for databases safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 3 days ago, and the latest version (0.4.0) reached the registry 3 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: QueryWeaver, Supabase, Neon, DBCode, Keboola MCP

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

QueryWeaver

An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.

by FalkorDBGrowing★ 1.1KUpdated 14 months ago

Runs on your computer✓ falkordb.com

Supabase

Supabase’s official server lets AI create tables, query data and review project settings in your Supabase database.

by supabaseWidely used↓ 245.5K/wk★ 3K Stars for the whole repoUpdated 3 days ago

Computer or cloud✓ service owner · supabase.com

Neon

Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.

by neondatabaseGrowing★ 663Updated 10 days ago

Runs in the cloud✓ service owner · neon.com

DBCode

Query and explore 100+ databases through your DBCode connections.

by dbcodeioEarly↓ 80/wk★ 367 Stars for the whole repoUpdated 44 days ago

Runs on your computer✓ service owner · dbcode.io

Keboola MCP

Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...

by keboolaGrowing↓ 1.4K/wk★ 85Updated 5 days ago

Computer or cloud✓ service owner · keboola.com
  • QueryWeaver — Installs on your computer · No key needed
  • Supabase — Cloud or install on your computer · Needs a key · In Claude’s directory
  • Neon — Runs in the cloud, nothing to install · No key needed · In Claude’s directory
  • DBCode — Installs on your computer · No key needed
  • Keboola MCP — Cloud or install on your computer · No key needed

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Approval gate for database MCP servers

@hibira-io/mcp-approval-gate sits in front of the MCP server that connects your assistant to a database. Reads go straight through. Anything that changes data or schema waits until another person approves it on a hosted approval page, sent to their phone as a push notification. Then it runs once, exactly as approved.

A real session: Claude Code asks to mark order 1042 as refunded through DBHub. The UPDATE waits and the assistant never gets the approval link. The request shows up in the store manager's Hibira Approvals inbox on her phone (it is also sent to her as a push notification); she opens it, checks the statement and approves, and the assistant finishes the change. (MP4 · the same request rejected)

It works with any MCP server, and is tested with:

and with Claude (Desktop, Code and claude.ai), Cursor, ChatGPT and any other MCP client.

assistant ──► approval gate ──► database MCP server ──► database

│ writes only ▼ Hibira approval page + push ──► supervisor taps Approve / Reject

Why

Most database MCP servers offer two choices: read-only, or let the assistant write anything. Client-side "allow this tool?" prompts are answered by the same person who asked. The gate adds the step a team usually wants for production data: a supervisor approval by someone else, with the exact statement in front of them.

  • Bound to the exact call. The approval covers one tool call with one set of arguments (shown with its fingerprint). If the statement changes, it needs a new approval. An approved call runs once.
  • Fails closed. SQL the gate cannot read, and tools it does not know to be read-only, wait for approval. If the approval service cannot be reached, nothing runs.
  • Your database stays yours. The gate runs where your database MCP server runs. Hibira only sees the approval request (title, statement, tool name), never your connection string or query results.
  • Clear for the reviewer. The page shows the database label, the kind of change (UPDATE, DROP TABLE, ...), warnings such as "DELETE without WHERE changes every row", and the full statement.

Setup

  1. Create a Hibira Approvals workspace at approvals.hibira.io and invite the people who approve (store managers, DBAs, ...). They get requests on their phones and decide in the approvals inbox.
  2. Put the gate in front of your database MCP server in your client's config (below). Everything after -- is the database server's usual command. There are no keys to copy.
  3. The first time the assistant tries to change something, it answers with a link and a short code. A workspace admin opens it, picks the workspace and presses Connect. From then on the gate is connected; reads work all along.

To connect ahead of time from a terminal instead, run npx -y @hibira-io/mcp-approval-gate login. status and logout work the same way. The connection is a token, kept in ~/.config/hibira/approval-gate.json, that can only ask for and read that workspace's approvals. Admins see every connected gate in the workspace settings and can revoke one at any time.

Claude Code
claude mcp add shop-db -e GATE_LABEL=shop-production \

-- npx -y @hibira-io/mcp-approval-gate \ -- npx -y @bytebase/dbhub --transport stdio --dsn "postgres://user:pass@host:5432/shop"

Claude Desktop, Cursor, Windsurf, VS Code

claude_desktop_config.json, .cursor/mcp.json and the others take the same shape:

{

"mcpServers": { "shop-db": { "command": "npx", "args": [ "-y", "@hibira-io/mcp-approval-gate", "--label", "shop-production", "--", "npx", "-y", "@bytebase/dbhub", "--transport", "stdio", "--dsn", "postgres://user:pass@host:5432/shop" ] } } }

postgres-mcp:

"args": ["-y", "@hibira-io/mcp-approval-gate", "--label", "analytics", "--",

"uvx", "postgres-mcp", "--access-mode=unrestricted"], "env": { "DATABASE_URI": "postgresql://..." }

--access-mode=unrestricted is fine here: the gate is what holds writes back.

Supabase (local server):

"args": ["-y", "@hibira-io/mcp-approval-gate", "--label", "supabase-prod", "--",

"npx", "-y", "@supabase/mcp-server-supabase@latest", "--project-ref= "], "env": { "SUPABASE_ACCESS_TOKEN": "sbp_..." }

execute_sql with a SELECT runs right away; writes, apply_migration, deploy_edge_function, branch merges and project pauses wait for approval.

Supabase (hosted server):

"args": ["-y", "@hibira-io/mcp-approval-gate", "--label", "supabase-prod",

"--upstream-url", "https://mcp.supabase.com/mcp?project_ref= ", "--header", "Authorization: Bearer ${SUPABASE_ACCESS_TOKEN}"],

ChatGPT and claude.ai (remote)

Web clients need an HTTPS URL, so run the gate as a small server next to your database and put HTTPS in front of it (your reverse proxy, a tunnel, or a platform such as Fly.io or Railway):

npx -y @hibira-io/mcp-approval-gate login      # once, on the server

export GATE_TOKEN="$(openssl rand -hex 24)" # keep it secret npx -y @hibira-io/mcp-approval-gate --http --host 0.0.0.0 --port 8787 \ --label shop-production \ -- npx -y @bytebase/dbhub --transport stdio --dsn "$DATABASE_URL"

The endpoint is https://your-host/mcp/ ; clients that can send headers may use https://your-host/mcp with Authorization: Bearer .

  • ChatGPT: Settings → Apps & Connectors → Advanced → Developer mode, then Create: paste the URL with the token, authentication "No authentication".
  • claude.ai: Settings → Connectors → Add custom connector, paste the URL with the token.

The gate refuses to listen on a non-local address without GATE_TOKEN. A Dockerfile is included. In a container, where there is no terminal to sign in from, pass the workspace token as HIBIRA_APPROVALS_TOKEN (copy it from ~/.config/hibira/approval-gate.json after login on any machine), or watch the gate's log for the connect link on first start.

Beyond databases: presets

The gate works in front of any MCP server. For a few common ones, --preset knows which tools only read and which change something, and gives the approval a plain title such as "Stripe: POST /v1/refunds" or "GitHub: merge pull request acme/shop#42". --allow and --gate still win over a preset.

PresetWaits for approvalRuns right away
stripestripe_api_write, send_money, transfer_money, convert_currency, ...stripe_api_read, search, docs, analytics
githubmerges, pushes, file changes, new repos, workflow runs, commentsget_*, list_*, search_*, *_read
gmailsending, replying, forwarding, deleting, filtersreading, searching, drafts
shopifygraphql_mutation, creating, updating, discounts, inventoryqueries, analytics, docs

Stripe (hosted server, with an agent API key):

claude mcp add stripe -- npx -y @hibira-io/mcp-approval-gate --preset stripe \

--upstream-url https://mcp.stripe.com --header 'Authorization: Bearer ${STRIPE_AGENT_KEY}'

GitHub (official server in Docker):

claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=... \

-- npx -y @hibira-io/mcp-approval-gate --preset github \ -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server

For Gmail and Shopify, put --preset gmail or --preset shopify in front of the server you already use. Tools a preset does not know follow the usual rules below.

What the assistant sees

A write call waits up to 50 seconds (--wait) for the decision, sending progress updates so the client does not give up early:

  • Approved: the call runs and its normal result comes back, with a line saying it was approved.
  • Rejected or expired: an error saying it did not run, with the supervisor's comment if they left one.
  • Still waiting: a short answer saying a supervisor has to approve it, with an approval_id. The gate adds one tool, check_approval: when the person says it is decided, the assistant calls it with that approval_id, and the call runs if it was approved. Asking for the same call again reuses the same request.

The assistant does not get the approval link when the gate is connected to an Approvals workspace (its members are notified and decide signed in), or when the request reaches the supervisor another way (--push-interests, --push-users or --channel), so the person chatting with it cannot approve their own change from the chat. Without any of those, the link is the only way to reach a supervisor, so the assistant shows it for you to forward. --show-link always or never overrides this.

What waits for approval

With the default --mode writes:

  1. Tools listed in --gate always wait; tools in --allow never do (a trailing * matches a prefix).
  2. Calls with SQL (an argument named sql, query, statement, queries, ...) wait if any statement changes something: INSERT, UPDATE, DELETE, MERGE, CREATE, ALTER, DROP, TRUNCATE, GRANT, COPY, CALL, DO, SET, VACUUM, data-changing WITH, SELECT ... INTO, EXPLAIN ANALYZE of a write, SELECT of functions such as setval or pg_terminate_backend, and anything it cannot parse. Comments, strings and dollar-quoted bodies are skipped, so SELECT 'DROP TABLE x' is a read.
  3. Other tools pass if they are marked readOnlyHint or named like a read (list_, get_, search_, describe_, explain_, analyze_, ...). Everything else waits.

--mode all sends every call for approval, reads included. --mode none turns the gate off (useful while testing).

The gate is a second pair of eyes, not a permission system. Give the database user only the rights it needs too.

Coding agents: approval before risky shell commands

The same package is a hook for Claude Code, Codex, Cursor and Hermes Agent. Shell commands that are hard to take back wait until a second person in your Hibira Approvals workspace approves them; everything else runs as usual.

Waits for approvalExamples
Deleting filesrm -rf src, find . -delete, git clean -fdx (not rm -rf node_modules, dist, build, ...)
Rewriting git historygit push --force, git reset --hard, git branch -D, deleting remote branches

| Deploys and releases | `vercel -

Only the beginning is shown; read the rest in the repo