mcpbeat Sign in

Lokra MCP Server

local only

Lokra runs on your own machine — the client starts it, so there is no endpoint to ping. 5 962 installs a week from pypi. Last commit 30 Nov 2026.

Postgres for AI agents with row locks, masking, approved writes and a signed audit ledger.

Installs per day peak 1 832 · avg 198
a month agotoday
5 962
Installs / week
pypi · lokra
0
Stars
0 open issues
30 Nov 2026
Last commit
from GitHub
Apache-2.0
License
HTML

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add lokra -e 'LOKRA_CONFIG=<LOKRA_CONFIG>' -e 'LOKRA_TOKEN=<LOKRA_TOKEN>' -- uvx lokra serve
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "lokra": {
      "command": "uvx",
      "args": [
        "lokra",
        "serve"
      ],
      "env": {
        "LOKRA_CONFIG": "<LOKRA_CONFIG>",
        "LOKRA_TOKEN": "<LOKRA_TOKEN>"
      }
    }
  }
}
~/.codex/config.toml
[mcp_servers.lokra]
command = "uvx"
args = ["lokra", "serve"]
env = { LOKRA_CONFIG = "<LOKRA_CONFIG>", LOKRA_TOKEN = "<LOKRA_TOKEN>" }
.cursor/mcp.json
{
  "mcpServers": {
    "lokra": {
      "command": "uvx",
      "args": [
        "lokra",
        "serve"
      ],
      "env": {
        "LOKRA_CONFIG": "<LOKRA_CONFIG>",
        "LOKRA_TOKEN": "<LOKRA_TOKEN>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "lokra": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "lokra",
        "serve"
      ],
      "env": {
        "LOKRA_CONFIG": "<LOKRA_CONFIG>",
        "LOKRA_TOKEN": "<LOKRA_TOKEN>"
      }
    }
  }
}

Put your own values in place of <LOKRA_CONFIG> (Path to the policies.yaml that defines this agent's access), <LOKRA_TOKEN> (The agent's token, from lokra mint-token <agent>). The author’s registry entry marks them as required.

What the code does

We read the source, 9 h ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

const el=(t,c,h)=>{const e=document.createElement(t);if(c)e.className=c;if(h!=null)e.innerHTML=h;return e;};

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Alternatives to Lokra

same job, measured the same way
Sota
by sota

EU-native PaaS for AI agents — deploy web apps with one sentence, managed Postgres, GDPR by default.

1 204 installs/wk 15 tools answering
Monomem
by calasdan-sketch

Local shared memory for AI coding agents: SQLite notes with writer provenance, undo, search.

502 installs/wk local only
Echo Memory
by echo-mem

Shared memory for AI agents, as a graph in your own Postgres. Writes never call an LLM.

307 installs/wk answering
tusk
by volveezz

Postgres for agents: named local/stage/prod targets, READ ONLY reads, opt-in writes, SSH tunnels

298 installs/wk local only
Fastmcp Sqltools
by atarkowska

A MCP server provides SQL database access with support for PostgreSQL, MySQL, and SQLite.

294 installs/wk local only
Zektor
by m-akcan

Managed Postgres and Valkey hosted in Germany. Agents can create a trial database with no signup.

240 installs/wk local only
Knowledge Graph RDBMS
by cunicopia-dev

A label property graph on SQLite/Postgres with multi-ontology routing and a gated MCP server.

239 installs/wk local only
pgbrake
by lexang

Postgres brake for AI agents: risky SQL waits for approval, UPDATE/DELETE get one-command undo.

131 installs/wk local only

Lokra — questions

Answers built from our own checks of this server.

Why is there no uptime for Lokra?
Lokra runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package lokra was installed 5 962 times last week.
How do I connect Lokra?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls lokra straight from pypi; nothing to host, nothing to sign up for.
How many people use Lokra?
The pypi package lokra was installed 5 962 times in the last week. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Lokra open source?
Yes — it is published under the Apache-2.0 licence, written in HTML and 0 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.