Approval gate for databases
MCP wrapper that holds database writes until a second person approves them on their phone
- Pricing
- Open source
- Platforms
- CLI, self-hosted, API
- Runs
- Locally
- Version
- 0.4.0
- Listing updated
- 3 days ago
About Approval gate for databases
Approval gate for databases is an open-source MCP server for databases. It runs locally on your machine and is started by your AI client.
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.
Install
Run in a 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-gateAdd to claude_desktop_config.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>"
}
}
}
}Add to ~/.cursor/mcp.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>"
}
}
}
}Add to .vscode/mcp.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>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.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>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"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>"
}
}
}
}Configuration
GATE_COMMANDThe database MCP server to wrap, e.g. npx -y @bytebase/dbhub --transport stdio --dsn postgres://user:pass@host/dbRequiredHIBIRA_APP_IDHibira app ID (hibira.io portal)RequiredHIBIRA_KEYHibira app keyRequiredHIBIRA_SECRETHibira app secretRequiredGATE_LABELThe database's name on the approval pageGATE_PUSH_INTERESTSComma-separated push interests that receive approval requestsGATE_MODEwrites (default), all or none
What it does
- 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
Pricing
Open source
Needs a Hibira Approvals workspace; its pricing is not published here
Approval gate for databases 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 to Approval gate for databases

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools
Agent Roast
MCP serverOffline review that flags agent changes which weaken tests, assertions or CI
Runs locally- Open source
- 4 Hacker News points
- Developer tools

Midplane
MCP serverPostgres gateway for AI agents with table grants, column masking and approval for writes
Runs locally- Open source
- 5 GitHub stars
- Databases

Leash
MCP serverReview what your AI touched, approve risky actions and undo supported changes
- 1 tool
- Remote
- Free
- 1 GitHub star
- Security
Zero-log MCP server with 49 tools for AI guardrails, secret scanning and EU compliance
- 49 tools
- Remote
- Freemium
- Security

SecureCloud
MCP serverSentinelOne and IT security catalog, prices, quotes and checkout links for Israel
- 7 tools
- Remote
- Free
- Security