# Halfnine

> Halfnine is an MCP server for databases. Let AI agents query PostgreSQL through Halfnine, with writes you approve in the app. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** macOS, Windows, CLI
- **Repository:** https://github.com/notinferred/halfnine
- **MCP Registry name:** io.github.notinferred/halfnine
- **Categories:** [databases](https://ai-powered.com/categories/databases), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Desktop (Claude Desktop → Settings → Extensions)

```text
https://github.com/notinferred/halfnine/releases/download/v0.3.0/halfnine-0.3.0.mcpb
```

Download 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.

## Tools

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_sql` (name suggests: changes): Run SQL against a connection; it will not drop tables, schemas or databases.

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/halfnine
