DBeast

A PostgreSQL MCP server for AI assistants

Gives AI assistants 21 focused tools to inspect a PostgreSQL database, and previews what a write would do instead of running it.

Status
Open source, MIT licence
Works with
Claude, Cursor, Windsurf and VS Code Copilot, on PostgreSQL 12 and later
Stack
Python, MCP, asyncpg, Pydantic, sqlglot, Docker
What happens when an AI assistant queries a database
  1. Claude or Cursor calls one of 21 focused tools over MCP

  2. On PostgreSQL, with a row limit added

  3. INSERT, UPDATE and DELETE stop at DBeast

  4. The rows affected, a risk level and rollback SQL for a DELETE

  5. With passwords, secrets and tokens masked

What it is

DBeast connects AI assistants such as Claude, Cursor, Windsurf and VS Code Copilot to PostgreSQL through the Model Context Protocol. Instead of one broad “execute SQL” escape hatch, it gives them 21 focused tools for schema discovery, safe queries, impact analysis, performance, security, maintenance, replication and data quality.

It runs locally as a subprocess of the assistant, so there is nothing to host, and works with local PostgreSQL, AWS RDS and Aurora, Supabase and Neon. It is listed on the official MCP Registry, Glama, PulseMCP and other MCP directories.

Writing about it