Auto modeNow available

The database harness for AI agents.

Stop gambling with your production database.

Agents propose SQL over MCP and approved queries run on your Beekeeper Studio connection. With Auto mode on, eligible reads run without a click and writes always wait for you. The agent never holds your database credentials.

Requires Beekeeper Studio 5.4 or later

A working demo of the Gatekeeper plugin in Beekeeper Studio, on a test database, with Auto mode on. A write waits for Write mode and a read that returns customer emails waits for review. New reads arrive and Auto mode evaluates and approves each one.

Works with and any other MCP client
Why Gatekeeper

The usual ways make you choose between fast and safe.

Common ways to let an agent query your database vs. Gatekeeper

Approach No database credentials in the agentCan read without a clickWrites need your approvalSensitive data flaggedQuery and outcome recorded
Paste results by hand You run each query and copy the rows back
No database credentials in the agent: Who knowsCan read without a click: Who knowsWrites need your approval: Who knowsSensitive data flagged: Who knowsQuery and outcome recorded: Who knows
SQL from the terminal The agent runs a database client, with a login in its environment
No database credentials in the agent: NoCan read without a click: YesWrites need your approval: PartlySensitive data flagged: NoQuery and outcome recorded: Partly
Direct SQL over MCP An MCP server holds the connection and runs whatever SQL the agent sends
No database credentials in the agent: PartlyCan read without a click: YesWrites need your approval: PartlySensitive data flagged: PartlyQuery and outcome recorded: Partly
Predefined query tools The agent fills in queries someone wrote in advance
No database credentials in the agent: YesCan read without a click: YesWrites need your approval: PartlySensitive data flagged: PartlyQuery and outcome recorded: Partly
Gatekeeper Each query checked, then approved by you or Auto mode
No database credentials in the agent: YesCan read without a click: YesWrites need your approval: YesSensitive data flagged: YesQuery and outcome recorded: Yes
How it works

Every query stops at a card that says what it will do.

Gatekeeper reads the SQL before you do and nothing runs until you or Auto mode approve it.

  1. 01

    Who asks and why

    The agent session and the intent it stated.

  2. 02

    What it touches

    Each table and whether it is read, written or deleted from.

  3. 03

    The exact SQL

    Formatted, with hidden characters made visible.

  4. 04

    What is sensitive

    Likely personal and client data in what the query returns.

  5. 05

    What Auto mode did

    It held this read for you. Eligible reads run without a click.

  6. 06

    Your answer

    Approve, reject, or send the agent a note to revise.

Auto mode

A read that passes two checks runs without a click.

Your agent gets its answer in seconds and you only see the reads that need a person.

Choose the evaluator

Auto mode only ever approves reads.

Off by default

Audit Trail & Export

Open any query from the past and see why it ran.

  • Each entry keeps the SQL, the intent and the outcome.
  • Automatic approvals are recorded with the evaluator's answers.
  • A period exports as Markdown, CSV or JSON, without result rows.
Where it fits

For anyone nervous about an agent near a database.

An import failed

Find the failed jobs before a retry.

An order question

Check one order's status and contact.

A product review

See how often the new export is used.

A migration check

Find orphan rows before the foreign key.

A payout to reconcile

Match a bank payout to its transactions.

A stock recount

Read the correction before it runs.

Install Gatekeeper in a minute.

Free and open source under the MIT license.
Issues and pull requests are welcome.

  1. Add the plugin in Beekeeper Studio

    Don't forget to turn on Community Plugins

  2. Set up your agent in a terminal

    $ npx skills add Gldywn/gatekeeper
    > /install-gatekeeper  # in your agent

    The skill registers the MCP server and walks you through pairing.

Requires Beekeeper Studio 5.4 or later.