| What it is | An open source MCP server for databases | A PostgreSQL MCP server with a Natural Language Agent CLI and Web UI | A Postgres MCP server with index tuning, explain plans, health checks, and safe SQL execution | MCP server that lets Claude and other LLMs inspect MySQL schemas and run queries, read-only by default |
| 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
| - 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
| - mysql_query tool, read-only by default
- insert, update and delete enabled separately by environment flags
- per-schema read and write permissions
- table and column listing resource
- SSH tunnel support for remote databases
- SSL/TLS with optional mutual TLS
- multi-database mode
- automatic PII redaction in results
- All 9 features
|
| Limitations | - Doesn't come as a managed service: it's open source and self-hosted; Google Cloud MCP Servers are Google's managed option
| - 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
| |