| Features | - queries run in read-only transactions by default, configurable per database
- similarity_search: vector search over pgvector columns, chunks re-scored with BM25 and diversified with MMR within a token budget
- query_database, get_schema_info, count_rows and execute_explain tools
- generate_embedding with OpenAI, Voyage AI, Google Gemini or Ollama
- search_knowledgebase over a pre-built documentation database (kb.db)
- several database connections, selectable by the agent
- stdio and HTTP/HTTPS transports, with user and API token authentication and TLS
- Go chat client (CLI) and React web UI for natural-language questions
- All 10 features
| - list_schemas, list_objects and get_object_details for schema context
- execute_sql, read-only in restricted mode
- explain_query, with hypothetical indexes through hypopg
- get_top_queries from pg_stat_statements by total or mean execution time
- analyze_workload_indexes and analyze_query_indexes (up to 10 queries): index recommendations from an Anytime database tuning advisor search
- analyze_db_health: buffer cache hit rates, connections, constraints, duplicate, unused or invalid indexes, sequence limits and vacuum health
- unrestricted (read/write) and restricted (read-only transactions, execution time limit) access modes
- stdio and SSE transports
- All 10 features
| - prebuilt tools per database (
--prebuilt=postgres, toolsets like postgres/data): list_tables, execute_sql and more - custom tools in tools.yaml: sources, parameterised SQL tools, toolsets and prompts
- Google Cloud sources: AlloyDB, BigQuery, Cloud SQL (PostgreSQL, MySQL, SQL Server), Spanner, Firestore, Knowledge Catalog
- other sources: PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, MongoDB, Redis, Elasticsearch, CockroachDB, ClickHouse, Couchbase, Neo4j, Snowflake, Trino
- semantic search and NL2SQL tools (such as alloydb-ai-nl)
- connection pooling, IAM auth, Google Sign-In and generic OIDC auth services
- OpenTelemetry metrics and tracing
- stdio and HTTP MCP endpoints, per-toolset URLs
- All 11 features
|
| Limitations | - Isn't for public-facing apps: it gives the LLM read access to the whole database schema and data, so use it only for trusted internal users
- Doesn't support PostgreSQL 13 or older: it needs PostgreSQL 14 or later
| - No vector or hybrid search tools: its tools cover schemas, SQL, EXPLAIN plans, index tuning and health checks
| - Doesn't come as a managed service: it's open source and self-hosted; Google Cloud MCP Servers are Google's managed option
|