Halfnine
Let AI agents query PostgreSQL through Halfnine, with writes you approve in the app
Halfnine is an MCP server for databases. It runs locally on your machine and is started by your AI client.
- Platforms
- macOS, Windows, CLI
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Version
- 0.3.0
- Listing updated
Similar MCP servers
Install
In Claude Desktop → Settings → Extensions
https://github.com/notinferred/halfnine/releases/download/v0.3.0/halfnine-0.3.0.mcpbDownload the bundle and open it with Claude Desktop, or drag it onto Settings → Extensions and click Install. This server is only published as a Claude Desktop bundle.
Using several servers? Build one config file with the MCP config generator.
About Halfnine
The server is a mode of the Halfnine desktop client, so agents use connections you have already set up rather than raw credentials. Each connection has its own agent level under Agents in settings: Off, Read, Read with approved writes, or Full. Connections labelled red start at Off and all others at Read. At Read with approved writes, a change shows up in Halfnine as staged rows or SQL and waits for your answer.
Everything an agent does is listed on one Agents page with a switch that pauses them all. With backups on, anything an agent drops or empties is backed up first, and run_sql will not drop tables, schemas or databases. With Docker databases enabled, an agent can create its own Postgres container or copy one before risky work; it can delete its own without asking, while deleting any other asks you. The README warns that what an agent reads goes to its AI provider.
Halfnine is a small PostgreSQL client for Apple-silicon macOS and Windows x64, in early development and source-available under PolyForm Shield 1.0.0. Claude Code, Codex, Cursor, VS Code and Claude Desktop can connect.
Tools this server provides (1)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 1 tool changes data.
From the server's own tool labels and tool names; not verified by us.
- run_sqlName suggests: changes
- Run SQL against a connection; it will not drop tables, schemas or databases.
What it does
- Per-connection permissions
- Choose Off, Read, Read with approved writes or Full for each database.
- Approved writes
- Agent changes appear as staged rows or SQL and wait for your decision.
- Activity log and pause
- See everything agents did and pause all of them with one switch.
- Backups before drops
- Dropped or emptied tables are backed up first, with Undo.
- Agent-made Docker databases
- Agents can create or copy Postgres containers, marked with the agent's name.
- One-click client setup
- Connect Claude Code, Codex, Cursor, VS Code or Claude Desktop from the Agents page.
Good for
- Let an agent explore a development database read-only
- Review agent-proposed row changes before they run
- Give an agent a throwaway Postgres container for testing
- Copy a database before a risky migration
Pricing
Pricing unknown
Source-available; pricing not published
Halfnine FAQ
Which platforms does Halfnine run on?
macOS 13 or later on Apple silicon and Windows x64; builds are not yet signed.
Can an agent drop a table?
run_sql won't drop tables, schemas or databases, and drops through other routes are backed up first when backups are on.
Does data stay local?
What an agent reads goes to its AI provider, according to the README.
What is the license?
Source-available under PolyForm Shield 1.0.0; use and modification are allowed but not to sell it or build a competing product.
What are the best alternatives to Halfnine?
The closest alternatives to Halfnine are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


