gatekeeper
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Human-approved bridge between AI agents and your database through Beekeeper Studio.
The database harness for AI agents.
Stop gambling with your production database.
Works with Claude Code, Codex, OpenCode and other MCP clients.
Gatekeeper is a database harness for AI agents. A coding harness like Claude Code checks the commands an agent runs. Gatekeeper checks the queries it sends to your database.
An agent proposes a query over MCP. Gatekeeper classifies it and checks it against the mode you armed. The query runs once you approve it, or once Auto mode approves an eligible read. It runs on the connection Beekeeper Studio already holds, and the rows go back to the agent. The agent never holds your database credentials.
Turn on Auto mode and eligible reads run without a click. Writes always wait for you.
https://github.com/user-attachments/assets/b6dd8629-da87-4671-a3df-26507742b085
Music from #UppbeatHow it works
An agent connected straight to a database over MCP, with its SQL calls preapproved, can run whatever its database role allows. Gatekeeper adds a decision in between, so a query runs only after Gatekeeper has checked it and you or Auto mode have approved it.
| Direct MCP access, SQL preapproved | Through Gatekeeper | |
|---|---|---|
| Credentials | The connector holds them | They stay in Beekeeper Studio |
| What runs | Whatever the database role allows | Each query, once approved |
| Writes | Run like any other query | Statements classified as writes need a mode you arm, and your approval |
Auto mode
Auto mode lets your agent read without waiting for you. It checks each new PostgreSQL read on your machine, sends the eligible ones to an evaluator, and runs the reads that pass both without a click.
- Reads only. It never approves a write, and arming Write or Destructive mode turns it off.
- PostgreSQL today. It handles a restricted set of single
SELECTstatements over named tables. - What the evaluator sees. It receives the SQL structure and the names and types the query refers to, never the result rows.
- Audit Trail. Every automatic approval is recorded with the evaluator's answers.
- Heavy reads too. It also runs reads the load check flags as heavy, unless you turn on Auto-deny heavy queries in Settings.
- Off until you turn it on. A reload, a re-pair or a connection switch turns it off again.
You can use TypeSafe's hosted evaluator or a compatible Custom server, and Auto mode covers the setup, the cutoffs and the limits.
Safety layers

Here a write waits until you arm Write mode, and the reads Auto mode approved carry a lightning mark.
- Read-only by default. A statement classified as a write runs only in a mode you arm, and each one still needs your approval. A read can still call a function with side effects, so connect Beekeeper with a role that has only the privileges you intend to delegate, or to a read replica.
- Approval on the exact SQL. The card shows the query formatted, with hidden characters made visible.
- No credentials in the agent. Queries run on the connection Beekeeper Studio already holds.
- Sensitive data flagged. Likely personal and client data in what a query returns is flagged before you decide.
- Every decision recorded. The Audit Trail keeps each decision with its SQL and outcome, and exports to Markdown, CSV or JSON.
- Heavy queries flagged. The card warns when a query could load or lock the database.
- Stop a running query. Ask the database to stop a long query, on supported PostgreSQL and MySQL versions.
- Loopback only. The plugin and the server talk over
127.0.0.1, with a token on every query.
The threat model and its limits are in Security.
Getting started
Gatekeeper needs Beekeeper Studio 5.4 or later and Node 22 or later, and is developed and tested on macOS.
1. Add the plugin. In Beekeeper Studio, open Tools > Manage Plugins, find Gatekeeper and click Install. If Gatekeeper is missing in Beekeeper Studio 6.2 or later, turn on Community Plugins in the same window. Some older versions need a setting or the release zip, as Install explains.
2. Set up your agent. Add Gatekeeper's skills to your agent, then ask it to install Gatekeeper.
npx skills add Gldywn/gatekeeper
The install-gatekeeper skill registers the MCP server, adds the companion skill and walks you through pairing, after which your agent can propose queries.
3. Allow writes when you need them. Beekeeper Studio 6.2 and later ticks Read-Only for every new plugin and then refuses any write it runs, so untick Read-Only for Gatekeeper in Tools > Manage Plugins before you use Write or Destructive mode.

Install covers the manual setup for Claude Code, Codex, OpenCode and any client that reads .mcp.json, along with pairing and troubleshooting. Gatekeeper is free and open source under the MIT license.
For agents
If you are an AI agent, the full reference is in these files.
| To | Read |
|---|---|
| Install, update or repair Gatekeeper | install-gatekeeper, update-gatekeeper, Install |
| Propose queries and wait for decisions | gatekeeper skill, MCP tools |
| Know what Auto mode accepts and shares | Auto mode |
| Understand the design | Architecture |
| Configure the server | Configuration |
| Assess the risks | Security |
| Change the code | AGENTS.md, Development |
| Ship a release | Releasing |
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi