Skip to content
Agent Search Engine.

The shortlist

Connect an AI agent to your database

An MCP server is the standard way to let an agent inspect schemas and run queries against a real database. The choice is mostly about which databases you run and how much the server should do beyond querying.

3 picks · chosen editorially from the index · how we choose

Best overall

Config entry — npx

DBHubMCP server

3.6k stars · Open source · TypeScript

One small server for Postgres, MySQL, MariaDB, SQL Server, Oracle and SQLite, with only two tools by default to keep context lean, and read-only mode, row limits and query timeouts built in.

Postgres tuning

Self-host — pipx or Docker

Postgres MCP ProMCP server

3.3k stars · Open source · Python

For Postgres it goes beyond queries: database health checks, index tuning across candidate indexes and EXPLAIN plans with hypothetical indexes, with restricted and unrestricted access modes.

Many databases, production tools

Config entry — npx

MCP Toolbox for DatabasesMCP server

16k stars · Open source · Go

Google's open-source server covers a long list of databases, from Postgres and BigQuery to Spanner, with prebuilt tools for exploration and a framework for governed custom tools once agents move to production.

Before you commit

Start read-only and against a copy. A model with write access will eventually run a statement you did not intend, so use DBHub's read-only mode or Postgres MCP Pro's restricted mode, point the server at a replica or development database, and never hand it credentials that can drop tables. If your data lives in Supabase or MongoDB, both vendors publish their own MCP servers, listed in the index.

For agent buildersMake your product part of the discovery.Explore advertising

More decisions