For healthcare teams — we're taking on a few design partners. Learn more →
Open-source MCP server for PostgresStar on GitHub ›

Lock rows for AI agents.

It sits between your AI agents and Postgres. The database decides what each agent can see, sensitive values are masked, and every write waits for a human.

AI agents
or any MCP client
Lokra
  1. 1Verify identity
  2. 2Check the SQL
  3. 3Approve writes
  4. 4Run as the role
  5. 5Mask results
  6. 6Sign the ledger
Masked · 12 identifiers
Your servers
Patient database Clinical warehouse
on-prem · in your region
Send a request

Why now

40%of enterprise apps predicted to have AI agents built in by the end of 2026, up from under 5%Gartner, Aug 2025 ↗
9 secfor an AI agent to wipe a production database and its backupsACS, Apr 2026 ↗
9.6critical score of a read-only bypass in AWS's database MCP serverGitHub advisory, Sep 2026 ↗
56%of security leaders can't count the AI and machine identities they runFelicis, 2026 ↗
Agents Claude Code/Cursor/OpenClaw/any MCP client
Data PostgreSQL/Supabase soon

Deployment

Run it your way.

Open source · Free

Self-hosted

  • Runs inside your own network
  • Patient data never leaves your servers
  • Apache-2.0, no usage limits
$ docker compose up -d
$ lokra provision
Quick start →
Coming soon

Lokra Cloud

  • Policy editor and Slack approvals
  • Long-term audit retention
  • SSO and team roles

For hospitals & health services

Give clinical AI agents a safe path to patient data.

Health has been Australia's most-breached sector in every OAIC report since 2018. Point Lokra at the database behind a hospital system and every agent request is scoped, masked, approved and logged. Source ↗

Clinical app teams

Ship agents that book, triage and summarise. Each gets its own database role; writes to the record wait for a clinician.

Data & analytics

Let agents query the warehouse with Medicare and IHI masked and research cohorts de-identified.

Digital health & innovation

Pilot new agents without handing over the whole database. Scope or revoke access in one line.

Security & privacy

A declared purpose on every request, a signed audit, and an evidence pack mapped to the APPs and My Health Records Act.

Working with patient data? We're taking on a few design partners.