MCP Toolbox for Databases
Google open-source database MCP server and custom tool framework supporting BigQuery, Cloud SQL, Postgres, MySQL, Spanner, and 20+ DBs.
About this Server
MCP Toolbox for Databases (`mcp-toolbox` / `googleapis/mcp-toolbox`, formerly Gen AI Toolbox) is Google’s open-source database MCP server and custom tools framework. It gives AI coding agents prebuilt and custom structured tools for schema exploration, NL2SQL execution, semantic search, and parameterized query execution across BigQuery, Cloud SQL, AlloyDB, Spanner, Firestore, PostgreSQL, MySQL, ClickHouse, Snowflake, and MongoDB with IAM auth and OpenTelemetry observability.
Direct low-latency RPC protocol communication with structured JSON schemas.
Restricted capability bounds to prevent accidental modifications or leakage.
Security & Best Practices
When to Use (and When Not To)
- •Querying enterprise databases like BigQuery, Cloud SQL, AlloyDB, Postgres, and Snowflake from AI assistants
- •Defining hardened, deterministic database tools via tools.yaml manifests for production agent workflows
- •Natural language to SQL exploration with automated schema inspection and table discovery
- •Observability metrics, PromQL, and Loki log inspection (use Grafana MCP Server instead)
- •Public mobile app store user feedback and sentiment benchmarking (use App Store Review Intelligence MCP instead)
- •SEO rank tracking and SERP performance analytics (use AltoRank MCP instead)
Install & Setup
claude mcp add toolbox-postgres -- npx -y @toolbox-sdk/server --prebuilt=postgres --stdioExposed Tools & Endpoints
6 toolsFunctions your AI agent can invoke via this Model Context Protocol server
Lists all tables, views, and schemas available in the configured database connection.
Retrieves the column definitions, primary keys, data types, and index constraints for a specific table.
Executes parameterized SQL queries against the connected database engine with safety limits.
Performs semantic vector search or full-text query matching across configured database collections.
Discovers analytical datasets and partitioned tables in data warehouses such as BigQuery and Snowflake.
Dynamically loads a specific named toolset group from the toolbox configuration manifest.