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

Lomberk

by ege-ustaversion 0.2.1i★ 0iRuns on your computerOfficial site ↗
Registry nameio.github.ege-usta/lomberk

How to install

What it does

Postgres gateway for AI agents: blocks destructive SQL, holds risky writes, undoes applied ones.

  • Connects Runs on your computer
  • Account or key Needs LOMBERK_AGENT_DSN, LOMBERK_ADMIN_DSN · 1 setting to fill in (LOMBERK_CONFIG)
  • Category Databases & datasets

Use together with

Skills that teach the AI this kind of work; they work alongside this one

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

by google-research★ 35,6381 skills

Skill · How-to guide

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

by BigBodyCobain★ 11,6051 skills

Skill · How-to guide

google-maps-scraper

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

by gosom★ 8,2361 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

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

Let your AI install it with one sentence

Please install Lomberk. Follow https://mcp.popnx.com/i/ege-usta-lomberk.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

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 Lomberk key (create it on the maker’s site) · 1 setting(s) to fill in (LOMBERK_CONFIG) · Install Python (uv) 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 Lomberk for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "lomberk": { "command": "uvx", "args": [ "lomberk", "serve" ], "env": { "LOMBERK_CONFIG": "your-value", "LOMBERK_AGENT_DSN": "your-value", "LOMBERK_ADMIN_DSN": "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 LOMBERK_AGENT_DSN, LOMBERK_ADMIN_DSN, LOMBERK_CONFIG, 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 Lomberk 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 uv (if you don’t have it)

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

    uv --version
    • A version number such as uv … = 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: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

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

    Install once; it works for everything that needs uv

  2. Sign up and create a Lomberk 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 Lomberk site ↗

  3. Fill in 1 setting(s)

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

    • LOMBERK_CONFIG Absolute path to the lomberk.yaml that `lomberk setup` wrote. The connection strings and keys are read from the .env beside it.

    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": {
        "lomberk": {
          "command": "uvx",
          "args": [
            "lomberk",
            "serve"
          ],
          "env": {
            "LOMBERK_CONFIG": "your-value",
            "LOMBERK_AGENT_DSN": "your-value",
            "LOMBERK_ADMIN_DSN": "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 Lomberk and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Lomberk or shows a Lomberk tool in the answer, you are connected

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

ChatGPT cannot connect Lomberk yet

Lomberk 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 Lomberk

  • You need a Lomberk key (create it on the maker’s site) · 1 setting(s) to fill in (LOMBERK_CONFIG) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Lomberk key (create it on the maker’s site) · 1 setting(s) to fill in (LOMBERK_CONFIG) · Install Python (uv) on your computer first (one time)
  • You need a Lomberk key (create it on the maker’s site) · 1 setting(s) to fill in (LOMBERK_CONFIG) · Install Python (uv) on your computer first (one time)
  • You need a Lomberk key (create it on the maker’s site) · 1 setting(s) to fill in (LOMBERK_CONFIG) · Install Python (uv) 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 Lomberk key (create it on the maker’s site) · 1 setting(s) to fill in (LOMBERK_CONFIG) · Install Python (uv) 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 Lomberk for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user lomberk --env LOMBERK_CONFIG=your-value --env LOMBERK_AGENT_DSN=your-value --env LOMBERK_ADMIN_DSN=your-value -- uvx lomberk serve 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 LOMBERK_AGENT_DSN, LOMBERK_ADMIN_DSN, LOMBERK_CONFIG, 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 Lomberk 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 uv (if you don’t have it)

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

    uv --version
    • A version number such as uv … = 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: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

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

    Install once; it works for everything that needs uv

  2. Sign up and create a Lomberk 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 Lomberk site ↗

  3. Fill in 1 setting(s)

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

    • LOMBERK_CONFIG Absolute path to the lomberk.yaml that `lomberk setup` wrote. The connection strings and keys are read from the .env beside it.

    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 lomberk --env LOMBERK_CONFIG=your-value --env LOMBERK_AGENT_DSN=your-value --env LOMBERK_ADMIN_DSN=your-value -- uvx lomberk serve

    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 Lomberk listed as connected

  7. Try it

    Use Lomberk and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Lomberk or shows a Lomberk tool in the answer, you are connected

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 Lomberk key (create it on the maker’s site) · 1 setting(s) to fill in (LOMBERK_CONFIG) · Install Python (uv) 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 Lomberk for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "lomberk": { "command": "uvx", "args": [ "lomberk", "serve" ], "env": { "LOMBERK_CONFIG": "your-value", "LOMBERK_AGENT_DSN": "your-value", "LOMBERK_ADMIN_DSN": "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 LOMBERK_AGENT_DSN, LOMBERK_ADMIN_DSN, LOMBERK_CONFIG, 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 Lomberk 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 uv (if you don’t have it)

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

    uv --version
    • A version number such as uv … = 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: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

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

    Install once; it works for everything that needs uv

  2. Sign up and create a Lomberk 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 Lomberk site ↗

  3. Fill in 1 setting(s)

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

    • LOMBERK_CONFIG Absolute path to the lomberk.yaml that `lomberk setup` wrote. The connection strings and keys are read from the .env beside it.

    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 Lomberk settings, LOMBERK_AGENT_DSN, LOMBERK_ADMIN_DSN, LOMBERK_CONFIG 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 Lomberk and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Lomberk or shows a Lomberk tool in the answer, you are connected

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 Lomberk key (create it on the maker’s site) · 1 setting(s) to fill in (LOMBERK_CONFIG) · Install Python (uv) 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 Lomberk for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "lomberk": { "type": "stdio", "command": "uvx", "args": [ "lomberk", "serve" ], "env": { "LOMBERK_CONFIG": "your-value", "LOMBERK_AGENT_DSN": "your-value", "LOMBERK_ADMIN_DSN": "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 LOMBERK_AGENT_DSN, LOMBERK_ADMIN_DSN, LOMBERK_CONFIG, 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 Lomberk 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 uv (if you don’t have it)

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

    uv --version
    • A version number such as uv … = 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: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

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

    Install once; it works for everything that needs uv

  2. Sign up and create a Lomberk 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 Lomberk site ↗

  3. Fill in 1 setting(s)

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

    • LOMBERK_CONFIG Absolute path to the lomberk.yaml that `lomberk setup` wrote. The connection strings and keys are read from the .env beside it.

    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 Lomberk settings, LOMBERK_AGENT_DSN, LOMBERK_ADMIN_DSN, LOMBERK_CONFIG 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 Lomberk and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Lomberk or shows a Lomberk tool in the answer, you are connected

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 Lomberk💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user lomberk --env LOMBERK_CONFIG=your-value --env LOMBERK_AGENT_DSN=your-value --env LOMBERK_ADMIN_DSN=your-value -- uvx lomberk serve

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "lomberk": {
      "command": "uvx",
      "args": [
        "lomberk",
        "serve"
      ],
      "env": {
        "LOMBERK_CONFIG": "your-value",
        "LOMBERK_AGENT_DSN": "your-value",
        "LOMBERK_ADMIN_DSN": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "lomberk": {
      "command": "uvx",
      "args": [
        "lomberk",
        "serve"
      ],
      "env": {
        "LOMBERK_CONFIG": "your-value",
        "LOMBERK_AGENT_DSN": "your-value",
        "LOMBERK_ADMIN_DSN": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "lomberk": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "lomberk",
        "serve"
      ],
      "env": {
        "LOMBERK_CONFIG": "your-value",
        "LOMBERK_AGENT_DSN": "your-value",
        "LOMBERK_ADMIN_DSN": "your-value"
      }
    }
  }
}

Values you fill in

  • LOMBERK_CONFIG required env
    Absolute path to the lomberk.yaml that `lomberk setup` wrote. The connection strings and keys are read from the .env beside it.
  • LOMBERK_AGENT_DSN secret required env
    Connection string for the low-privilege role the agent's SQL runs as. Only needed when the .env beside lomberk.yaml doesn't set it.
  • LOMBERK_ADMIN_DSN secret required env
    Connection string for the control role that owns the lomberk schema (checkpoints, undo, ledger). Only needed when the .env beside lomberk.yaml doesn't set it.

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
Licencei
Apache-2.0
Connection
Runs on your computer
Latest versioni
0.2.1
Published to registryi
Nov 14, 2026
Code last changedi
Nov 14, 2026
Maker
ege-usta
Packages
pypi: lomberk
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 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account ege-usta, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 5 days ago

  • ✓ Pass

    Has a licence

    Uses Apache-2.0

  • – 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 lomberk@0.2.1

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
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/ege-usta-lomberk.svg)](https://mcp.popnx.com/en/servers/ege-usta-lomberk)

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 1237 servers in this category
  • Published to the registry more recently than 88% of the other 1237 servers in this category
  • Basic checks equal to or better than 99% of the other 1237 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 Lomberk 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: LOMBERK_AGENT_DSN, LOMBERK_ADMIN_DSN

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 5 days ago, and the latest version (0.2.1) reached the registry 5 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) 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 yesterday

Computer or cloud✓ service owner · supabase.com

Neon

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

by neondatabaseGrowing★ 666Updated 13 days ago

Runs in the cloud✓ service owner · neon.com

DBCode

Query and explore 100+ databases through your DBCode connections.

by dbcodeioEarly↓ 118/wk★ 368 Stars for the whole repoUpdated 2 months 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★ 84Updated 3 days ago

Computer or cloud✓ service owner · keboola.com
Compared with similar ones
This one
Lomberk
QueryWeaverSupabaseNeonDBCodeKeboola MCP
Runs whereInstalls on your computerInstalls on your computerCloud or install on your computerRuns in the cloud, nothing to installInstalls on your computerCloud or install on your computer
Needs a keyYesNoYesNoNoNo
Add with + in ClaudeNoNoYesYesNoNo
Basic checks3/33/35/55/52/35/5
LicenseApache-2.0AGPL-3.0Apache-2.0MITNOASSERTIONMIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

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.

Lomberk

Every agent write, reversible. Lomberk is an MCP gateway for PostgreSQL. AI agents send SQL through it instead of holding database credentials. It blocks destructive commands, holds large or sensitive writes for a human, records every changed row, and can undo any applied write, including foreign-key cascades.

Just want a seatbelt for Claude Code? Lomberk Seatbelt is a free plugin that makes your agent ask before DROP, TRUNCATE, DELETE without WHERE, prisma migrate reset, dropdb and friends. Install it in two commands.

Quickstart (60 seconds)

You need uv and the owner's connection string of a PostgreSQL 14+ database (a role that can create roles: postgres on Supabase, Neon and RDS).

uvx lomberk setup     # asks for the owner connection string; what you type stays out of your shell history

In a script, set LOMBERK_INSTALL_DSN instead and add --yes. Setup creates two least-privilege roles with generated passwords, installs Lomberk, lists your tables and makes the ones you pick undoable, then writes lomberk.yaml and a private .env (mode 600) and runs lomberk doctor on them. It never changes a role or file that already exists. The owner connection string is used once and never saved. At the end it prints the line for your MCP client, for example:

claude mcp add lomberk -e LOMBERK_CONFIG=/path/to/lomberk.yaml -- uvx lomberk serve

Cursor, Claude Desktop, VS Code and Codex get their config snippet too. Then ask your agent to change something:

lomberk log                 # what your agents changed, newest first

lomberk undo cp_… # put it back, cascades included lomberk approve cp_… # let a held write run (or: lomberk reject cp_…) lomberk doctor # check the setup any time

Supabase, Neon, RDS, Railway: [docs/hosted-postgres.md](https://github.com/ege-usta/lomberk/blob/main/docs/hosted-postgres.md). On Supabase, use the **session pooler** connection string (IPv4); setup derives the `lomberk_agent.<project-ref>` login names from it.
What the agent gets
Tool
execute_sqlOne statement through the hard gate, the policy and capture. Replies with a checkpoint (cp_…), APPROVAL REQUIRED, or why it was denied
describe_tablesThe tables it can use, their columns (secret ones hidden) and which writes wait for a human
wait_for_approvalWaits for a person to approve or reject a held write, reporting progress, then says whether it ran
checkpoint_statusWhat happened to one of its writes: waiting, applied, rejected or undone
list_my_changesIts own recent writes with their tokens, so it can tell you what to undo

The agent can't approve or undo anything. That takes the admin key, the CLI or (Pro) Slack, SSO or the panel.

9-second database deletion demo

In April 2026 an autonomous coding agent deleted a production database in 9 seconds (through an over-privileged infrastructure token). Lomberk closes the other door: an agent's own database access. Here is what a rogue agent can and can't do when its SQL goes through Lomberk.

1. Start the stack
git clone https://github.com/ege-usta/lomberk && cd lomberk

docker compose up -d --build curl localhost:8000/readyz # {"status":"ready"}

This starts a demo `pocketos` database (`users` ← `payments` with `ON DELETE CASCADE`), installs Lomberk with two least-privilege roles, registers both tables, and starts the gateway.
2. Connect your agent (it gets a URL and a key, nothing else)
claude mcp add --transport http lomberk http://localhost:8000/mcp \

--header "Authorization: Bearer demo-agent-key"

Any MCP client that speaks Streamable HTTP works the same way.
3. The agent goes rogue
Agent sendsLomberk
DROP TABLE public.usersDenied: DDL is structurally banned
DELETE FROM public.usersDenied: write without WHERE
DELETE FROM public.users WHERE id > 0Held: public.users is protected → APPROVAL REQUIRED. Token: cp_…
UPDATE public.payments SET amount = 0 WHERE id > 0Applied, with a checkpoint: 2 rows on an unprotected table. One undo call puts the old amounts back
The same write on more rows than max_rows_without_approval (10 in the demo)Held: it ran, was counted and rolled back, and now waits for a person
4. A human decides (admin key, never given to the agent)
H="X-API-Key: demo-admin-key"

curl -H "$H" localhost:8000/v1/checkpoints/pending curl -H "$H" "localhost:8000/v1/checkpoints?status=applied" # recent writes, to find the cp_ to undo curl -H "$H" -X POST localhost:8000/v1/checkpoints/cp_…/approve # or /reject curl -H "$H" -X POST localhost:8000/v1/checkpoints/cp_…/undo # users AND cascaded payments come back

Pending requests expire after `agent.approval_timeout_minutes`. Review the exact SQL first with `GET /v1/checkpoints/cp_…` or `lomberk show cp_…`.

See the rows, not just the SQL. When a write is held, Lomberk runs it once, records what it changed and rolls it back, so the approver sees the effect before deciding, cascades included:

$ lomberk show cp_…        # the agent sent: DELETE FROM public.users WHERE id = 1

would change: 2 row(s) in public.users (1), public.payments (1) (dry run when held) delete public.users {"id": "1"}: {"id": 1, "name": "Alice CEO", "plan": "enterprise", "email": "alice@pocketos.com", …} delete public.payments {"id": "1"}: {"id": 1, "amount": 1000.0, "status": "success", "user_id": 1}

The same preview is in the web panel and the API; Slack gets the counts only. Secret columns are masked, and columns hidden from the agent role never appear. A held write that would fail (a duplicate key, a missing parent) is refused at once instead of waiting for a person. The preview is a snapshot of the moment it was held. If a table's own triggers do something a rollback can't take back, set `approvals.preview: false`.

Configuration (lomberk.yaml)

limits:

max_rows_without_approval: 10 # larger writes are rolled back and held statement_timeout_ms: 15000 protected_tables: # any write, or FK cascade, reaching these is held

  • public.users

sensitive_columns: # like password: never shown to the agent, hidden by the DB on register

  • pass
  • settings # a JSON column that holds secrets

agent: approval_timeout_minutes: 30

Unknown keys fail startup, so a typo can never silently turn protection off. The gateway reads `./lomberk.yaml`; when it starts somewhere else (MCP clients usually launch `lomberk serve` from another directory), set `LOMBERK_CONFIG` to the file's absolute path. If that file is missing, startup is refused; a missing `./lomberk.yaml` only prints a warning and runs with defaults (no protected tables).

Environment: LOMBERK_CONFIG (path to lomberk.yaml), LOMBERK_ADMIN_DSN (control role), LOMBERK_AGENT_DSN (agent role), LOMBERK_API_KEY (agent), LOMBERK_ADMIN_KEY (approvers), LOMBERK_AUDIT_LOG (JSONL path), LOMBERK_LICENSE_KEY (Pro), LOMBERK_METRICS_KEY (turns on /metrics). Keys must be 32+ random characters (openssl rand -hex 32); the gateway refuses weak or demo keys unless LOMBERK_ALLOW_WEAK_KEYS=true (laptop demos only).

Installing on your own database

pip install lomberk          # Slack and SSO: pip install "lomberk[pro]"; or: docker build -t lomberk .

export LOMBERK_INSTALL_DSN=postgresql://owner@db/app # used only for install

first, as that owner: CREATE ROLE lomberk_control LOGIN PASSWORD '...'; CREATE ROLE lomberk_agent LOGIN PASSWORD '...';

lomberk init --control-role lomberk_control --agent-role lomberk_agent lomberk register public.orders --agent-role lomberk_agent # repeat per table (and FK children) lomberk verify-ledger # tamper-evidence check

What an agent can't do, with the exact refusal for 20 real attacks: [docs/attack-gallery.md](https://github.com/ege-usta/lomberk/blob/main/docs/attack-gallery.md).

Step-by-step for Supabase, Neon, Amazon RDS and Railway (roles, connection strings, RLS, updated_at triggers): docs/hosted-postgres.md.

Common questions before adopting Lomberk: docs/faq.md.

Local, single-user development without the service: lomberk serve (stdio MCP). Do not use this mode with agents that have shell access. See SECURITY.md.

Team features (Solo and Pro)

The web panel and audit export come with Solo and Pro; Slack approvals, approver SSO and the two-person rule are Pro.

Slack approvals and approver SSO need extra libraries: pip install "lomberk[pro]", or uvx --from "lomberk[pro]" lomberk serve. The Docker image has them. Without them the gateway refuses to start and says what to install.

Approve in Slack (Pro)

Create the app from slack/app-manifest.json (bot scope chat:write only, Socket Mode, so no public URL is needed), invite the bot to your approvals channel, then:

slack:

channel_id: C0123APPROVALS team_allowlist: [T0123] admin_allowlist: [U0ALICE, U0BOB] # only these users' clicks count include_sql: false # default: SQL never leaves for Slack

```bash

LOMBERK_SLACK_ENABLED=true LOMBERK_SLACK_APP_TOKEN=xapp-… LOMBERK_SLACK_BOT_TOKEN=xoxb-…

Every held request is posted with Approve/Reject buttons, and the message updates to the final state. The approver's Slack ID is written to the audit log.
Approver SSO (Pro)

Approvers sign in with the company identity provider (Okta, Microsoft Entra ID, Google, Keycloak, any OIDC issuer) and send their ID token. The audit log then records the person (oidc:alice@corp.com), not a shared key.

sso:

issuer: https://corp.okta.com # keys are discovered from the issuer audience: lomberk-approvals # the client ID registered for Lomberk allowed_groups: [db-approvers] # and/or allowed_identities: [alice@corp.com]

allow_admin_key: true # the shared key is OFF once SSO is on; CLI stays as break-glass

```bash

curl -H "Authorization: Bearer $ID_TOKEN" -X POST localhost:8000/v1/checkpoints/cp_…/approve

Only asymmetrically signed tokens (RS/PS/ES) for this issuer and audience are accepted, and they must be unexpired. With the default `identity_claim: email`, the token must mark the email as verified. Entra ID does not send that flag, so set `identity_claim` to `upn` or `oid` there.
Web approval panel (Pro)

Open https:// /panel/ for writes waiting for approval, the history with who approved each one, one-click undo, and exports. Approvers sign in with SSO or the admin key. To offer "Sign in with SSO", register /panel/sso/callback as a redirect URI at your IdP:

sso:

...the SSO settings above, with audience = the panel's client ID

pa

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