Rowbase

io.github.djstreet11v0.2.1更新於 Oct 4, 2026

Safe, read-only-by-default MySQL, PostgreSQL & SQLite access for AI agents. TOON output.

已驗證STDIO僅桌面Developer ToolsDatabases

概覽

AI 產生的概覽

預設唯讀的 MySQL、PostgreSQL 與 SQLite 存取,讓助理瀏覽結構並執行查詢。

功能
Rowbase 是一款資料庫用戶端,內建 MCP 伺服器,提供列出連線、資料庫與資料表,檢視結構、搜尋結構、取樣、計數、執行查詢以及解讀執行計畫等工具。結果以精簡的 TOON 表格格式回傳,比 JSON 更省 token。guide 工具會向助理說明使用方式。只有在明確允許寫入時才會出現 apply_changes 工具。
適用情境
當助理需要檢視或查詢 MySQL、MariaDB、PostgreSQL 或 SQLite 資料庫時適用,例如回答資料相關問題、了解陌生的資料表結構,或撰寫唯讀 SQL。也適合想把資料庫用戶端與 MCP 伺服器合而為一的軟體使用者。
執行需求
透過 stdio 在本機執行。可從 PyPI 安裝 rowbase-db(例如使用 uvx 或 pipx),或下載 macOS、Linux、Windows 的單一檔案程式;桌面應用程式僅支援 macOS。資料庫連線需在 Rowbase 中設定,包括 SSH 通道資訊。未宣告任何環境變數或標頭。
安裝前請注意
連線預設為唯讀,並在多個層面強制執行,但可以開啟寫入,屆時會暴露 apply_changes,助理即可修改資料。連線密碼存放在作業系統鑰匙圈中,而非設定檔。程式尚未程式碼簽章,macOS 與 Windows 首次啟動會出現警告。查詢結果會傳送給你所連接的助理。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Rowbase,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Rowbase icon]

Rowbase

A fast, good-looking, read-only-by-default database client — for humans and for AI agents.
MySQL / MariaDB · PostgreSQL · SQLite · native macOS app · one-file app for macOS, Linux & Windows · built-in MCP server

[Latest release] [CI] [License: Apache-2.0] [PyPI] [MCP Registry]

[Rowbase: table browser with row inspector]

Why Rowbase?

  • Safe by default. Every connection is read-only until you say otherwise — enforced at four independent layers (driver-level single statement, SQL guard, READ ONLY transaction, timeouts). Production connections get a red accent.
  • Made for AI assistants too. A built-in MCP server lets Claude, Cursor, Codex & co. explore your schema and query data — read-only unless you allow writes, with a token-efficient output format (TOON) and a built-in guide so the assistant knows how to use it. One copy-paste prompt sets everything up.
  • One file, no installer. Download a single binary for macOS, Linux or Windows and run it — no admin rights, no Python, no drivers to install. Or use the native macOS app.
  • Nice to use. Foreign-key navigation, "referenced by", transpose, column picker, schema-aware autocomplete, EXPLAIN highlighting, query cancel, inline editing with SQL preview, export to CSV/JSON/Markdown/SQL, SSH tunnels.
  • Open source under Apache-2.0. Passwords live in your OS keychain, never in config files.
[SQL editor with autocomplete and results][Inline editing with pending changes]
SQL editor: autocomplete, ⌘↩ runs the statement under the caret, EXPLAIN, cancelEdit rows safely: pending changes, SQL preview, one atomic save

Download

Grab the latest from Releases:

PlatformFileHow to run
macOS (native app)Rowbase-x.y.z.dmgopen, drag to Applications
macOS (one file)rowbase-macos-arm64chmod +x rowbase-macos-arm64 && ./rowbase-macos-arm64
Linux x64 / arm64rowbase-linux-x64 / -arm64chmod +x rowbase-linux-* && ./rowbase-linux-x64 (Ubuntu 20.04+, Debian 10+, RHEL 8+)
Windows 10 / 11rowbase-windows-x64.exedouble-click

Started without arguments, the one-file app opens the web UI in your browser. Builds are not code-signed yet: macOS → System Settings → Privacy & Security → Open Anyway; Windows → More info → Run anyway.

Connect your AI assistant (MCP)

Open AI / MCP in the app, click Copy prompt, paste it into your assistant — it registers the server, reads the built-in guide and creates a reusable skill. Or register manually:

bash
claude mcp add rowbase -- /path/to/rowbase mcp          # one-file binary or appclaude mcp add rowbase -- uvx --from rowbase-db rowbase mcp   # straight from PyPI, nothing to download

Listed in the official MCP Registry as io.github.djstreet11/rowbase.

Results come back as compact TOON tables (~40% fewer tokens than JSON):

rows[2]{id,customer,total}:  1,"Smith, Bob",9.50  2,ann,nulltruncated: false

Tools: guide, connections, databases, tables, describe, search_schema, sample, count, query, explain (+ apply_changes only when you allow writes). Details: docs/MCP.md.

CLI

Install from PyPI (pipx install rowbase-db / uv tool install rowbase-db) or use a one-file download.

bash
rowbase add shop 'postgres://[email protected]/shop?ssh=deploy@bastion'   # read-only unless --rwrowbase tables -c shoprowbase q "SELECT * FROM orders WHERE status = 'new'" -c shop --format jsonrowbase ui        # web UI on http://127.0.0.1:8765rowbase mcp       # MCP server (stdio)rowbase doctor    # environment report
Dark mode[Dark mode]

Build from source

  • Python track: python3 -m venv .venv && .venv/bin/pip install -e . && .venv/bin/rowbase ui
  • One-file binaries: docs/BUILDING.md · Native macOS app: cd native && swift build · releases: docs/RELEASING.md
  • Architecture & roadmap: SPEC.md

Contributing

Issues, ideas and pull requests are welcome — see CONTRIBUTING.md and the Code of Conduct. If Rowbase is useful to you, a ⭐ helps others find it.

License

Apache-2.0 — see NOTICE and THIRD_PARTY_LICENSES.md.

來源:README.md,提交 2a72dc3

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.2.1最新Oct 4, 2026