Lode · Database workspace for macOS

Every database,one window.

Lode is a native macOS database manager: connections, object tree, SQL editor, table editing, and query history for SQLite, MySQL, PostgreSQL, and Redis — all in one place. It also ships read-only database tools and an MCP server for agents.

macOS 14.0+ · GPLv3 open source · Local first

4

database engines

Read-only

agent access

MCP

stdio server

GPLv3

license

Daily workflow

Connect, browse, edit —then hand off to an agent.

From saved connections to the object tree, SQL drafts, and result grids, all the way to read-only agent tools — every step happens in the same native window.

01

Connect

Save SQLite, MySQL, PostgreSQL, and Redis connections, each with its own capabilities and access scope.

02

Browse

The object tree expands databases, tables, views, indexes, and triggers without switching tools.

03

Edit

The SQL editor uses tree-sitter highlighting; table edits queue in memory before a confirmed write-back.

04

Hand off

Read-only tools and the MCP server let agents inspect schemas and run queries; writes are always rejected.

Core features

Everything the database workflow needs.

Lode is not a general-purpose IDE, and it is more than a read-only client: the parts that database work and agent collaboration need are finished properly.

Four engines

SQLite, MySQL, PostgreSQL, and Redis share one workspace while keeping per-connection settings and capabilities.

Object tree

Browse tables, views, indexes, and triggers per database; open a table to inspect its structure and data.

SQL editor

Tree-sitter highlighting and a dedicated editor host keep completion, selection, and scrolling native.

Table editing

Edits land in an in-memory change queue and write back together after confirmation, so mistakes stay reversible.

Query history

Every execution stays in local history for review, re-run, or another pass.

Agent tools

List connections, describe schemas, run read-only queries, and sample sensitive tables under per-connection permissions.

Agent access

Let agents read your data. Only read.

Agent tools and the MCP server share one read-only policy: access is granted per connection, sensitive samples need explicit approval, and every call is written to an audit log.

Read-only policy

Write statements are rejected at the policy layer before reaching the database.

Per-connection allowlist

Only connections you explicitly allow are exposed to agents.

Auditable log

Cross-connection access and sensitive samples are recorded in the audit log in Settings.

Agent access allowlist

  • Local SQLiteAllowed
  • Staging MySQLAllowed
  • Analytics PostgreSQLBlocked

Audit log

3 entries
  • 09:41query_readonly · local.sqlite12 ms
  • 09:42sample_table · ordersapproved
  • 09:44query_readonly · analyticsdenied

Local first

Connections stay here. Nothing goes to the cloud.

Lode is a native macOS app: connection settings, query history, and audit logs live on this Mac. No account, and no database contents uploaded.

On-device storage

Connections, history, and logs stay on this Mac.

MCP token

lode-db-mcp accepts only a local token, stored with 0600 permissions.

Native SwiftUI

The shared Lumi Kernel / Provider / Plugin architecture keeps the UI and drivers in-process.

Platform & license

Built for macOS. Open source.

A native SwiftUI app built from the repository. GPLv3 licensed, open to review and contribution.

  • macOS 14.0 or later
  • Apple Silicon (arm64)
  • Simplified Chinese and English
  • GPLv3 open source

macOS

14.0+

GPLv3

Open source

Questions

Which databases are supported?

SQLite, MySQL, PostgreSQL, and Redis can all be connected and managed in one workspace.

Where can I get Lode?

Build it from the GitHub source for now; it is not on the App Store yet.

Can agents modify the database?

No. Agent tools and the MCP server expose read-only capabilities only, and write statements are rejected at the policy layer.

How do I connect an MCP client?

Build lode-db-mcp, create a token with --generate-token, then launch it over stdio in your MCP client with LODE_MCP_TOKEN set.

Are connection details uploaded?

No. Connections, query history, and audit logs stay on your Mac. Lode needs no account and uploads no database contents.

Why is App Sandbox disabled?

SSH agent forwarding, password commands, and local tunnel listeners cannot be expressed inside the sandbox. Lode substitutes least privilege, a read-only policy, and audit logging; the trade-off is recorded in docs/security-model.md.

Put the database workflow in one window.

View the source on GitHub, or clone it and build your own.

Go to GitHub

macOS 14.0+ · GPLv3 · Local first

User Feedback

Found a bug or have a feature idea? Let us know and help shape Lode.