
Halfnine
io.github.notinferred由 GitHub 帳號 notinferred 發布v0.3.0更新於 Nov 1, 2026
PostgreSQL through Halfnine: describe, read-only queries, and changes you approve in the app.
概覽
Halfnine 是一款 macOS 與 Windows 桌面 PostgreSQL 用戶端,同時可作為本機 MCP 伺服器,讓助理檢視並查詢你儲存的連線。
- 可以做什麼
- 檢視資料庫結構,並在已儲存的 PostgreSQL 連線上執行唯讀查詢
- 依每個連線的代理權限等級,把變更以資料列或 SQL 形式暫存,等待你確認
- 為代理建立、複製、啟動、停止與刪除 Docker 中的 PostgreSQL 資料庫
- 在 Agents 頁面檢視代理的所有操作,並用一個開關全部暫停
- 適用情境
- 適合已在 Halfnine 中儲存 PostgreSQL 連線,並希望 Claude Code、Codex、Cursor、VS Code 或 Claude Desktop 檢視結構、執行查詢,且寫入需經你核准的情境。
- 執行需求
- 需先在本機安裝 Halfnine 桌面應用程式(Apple 晶片的 macOS 13 以上,或 Windows x64),MCP 伺服器透過應用程式執行檔以 stdio 啟動。需要已儲存的 PostgreSQL 連線;Docker 資料庫功能需受支援的 Docker 引擎。未宣告任何 API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Halfnine,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Halfnine
A small, calm PostgreSQL client for macOS and Windows, light enough to leave open all day.
It is early: ROADMAP.md says where things stand.
Install
Download the installer from Releases. The builds aren't signed yet, so each system asks once before opening them:
- macOS (Apple silicon, macOS 13 or later): open the
.dmgand drag Halfnine to Applications. Open it once, then choose System Settings › Privacy & Security › Open Anyway. Or runxattr -dr com.apple.quarantine /Applications/Halfnine.app. - Windows (x64): run the
-setup.exe. At the SmartScreen warning choose More info › Run anyway. It installs for the current user, without administrator rights.
When a connection saves its password, macOS asks once before Halfnine first reads it, and again after each update until the app is signed. Choose Always Allow.
Docker databases and backups
Turn on Docker databases in Settings, or at the first launch, and the Postgres containers on this computer show under Docker on the connections screen. Double-click one to connect; Halfnine reads its user and password from the container. The Docker page makes new ones (PostgreSQL 14 to 18, optionally from a dump or an SQL file), copies, starts, stops and deletes them. It works with Docker Desktop, OrbStack, Colima and Rancher Desktop.
With backups on, as they are unless you turn them off in Settings, dropping or emptying a table, dropping a column, or deleting a Docker database backs it up first and acts at once, with Undo at the foot of the window. Backups stay on the Docker page until you delete them. A table bigger than the limit in Settings, or one Halfnine can't back up, asks for its name instead.
Use with AI agents
Halfnine is also an MCP server, so Claude Code, Codex, Cursor, VS Code and Claude Desktop can use your connections through it. Open Agents, at the foot of the sidebar or the connections screen, choose Connect next to your tool, and Halfnine shows what it will change before it adds itself. Or add it by hand; on macOS:
For Claude Desktop, install Halfnine first, then open the .mcpb file from the same release to add it as an extension. It is also listed in the official MCP Registry as io.github.notinferred/halfnine.
Each connection sets what agents may do there, under Agents in its settings: Off, Read, Read with approved writes, or Full. Red-labelled connections start at Off and every other at Read. At Read with approved writes, an agent's change opens in Halfnine as staged rows or SQL and waits for your answer. Everything agents do is listed on the Agents page, where one switch pauses them all. What an agent reads goes to its AI provider.
With Docker databases on, an agent can make its own databases, or copy one before risky work. Those start at Full and are marked with the agent's name, and it gets their URL for programs it runs. It deletes one made for it without asking; deleting any other asks you. While backups are on, what an agent drops or empties is backed up first, and run_sql won't drop tables, schemas or databases.
Develop
You need Node 24 or later, pnpm (the version in package.json is fetched automatically), Rust through rustup (rust-toolchain.toml picks the version), and on macOS the Xcode Command Line Tools. With Homebrew, brew install rustup, then put /opt/homebrew/opt/rustup/bin on your PATH; Homebrew leaves it off.
To check the app or run the Postgres tests on a Mac without a database, start a throwaway one in Docker. It deletes itself when stopped:
Layout
apps/desktop: the UI, in React and Vite. Design tokens are insrc/ui/tokens.css.crates/desktop: the Tauri app that hosts the UI, with its window, permissions and icons.crates/core,crates/pgandcrates/docker: the types every crate shares, the Postgres adapter, and the Docker engine adapter.docs/: architecture, decisions and brand.
License
Halfnine is source-available under the PolyForm Shield License 1.0.0. You may use it for any purpose, at work included, and change it, but not to sell it or to provide a product that competes with it. Copyright 2026 notInferred.
來源:README.md,提交 c9f3f3d
工具
0版本歷史
2- v0.3.0最新Nov 1, 2026
- v0.2.0Oct 30, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。