Skip to content
VS Code

Lokra for VS Code

io.github.lokrahq/lokra

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

client:VS Code transport:stdio runtime:pypi

Install Lokra in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "lokra-config",
      "description": "LOKRA_CONFIG",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lokra-token",
      "description": "LOKRA_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "lokra": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "lokra"
      ],
      "env": {
        "LOKRA_CONFIG": "${input:lokra-config}",
        "LOKRA_TOKEN": "${input:lokra-token}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Lokra in other clients