MCP Toolbox for Databases is an open source Model Context Protocol (MCP) server that connects AI assistants, development environments, and software applications directly to relational and non-relational database systems. Developed by Google, it functions as both an off-the-shelf build-time MCP server and a run-time framework for developing secure, production-ready database tools. Software engineers, data analysts, and AI application developers use it to inspect schemas, execute read-only queries, and safely interact with operational data directly from IDEs or agent workflows. The server supports a broad range of storage engines, including PostgreSQL, MySQL, BigQuery, AlloyDB, Cloud SQL, Spanner, Firestore, SQL Server, Oracle, MongoDB, Redis, Snowflake, and ClickHouse. It includes prebuilt database tools such as list_tables and execute_sql, alongside configuration structures in tools.yaml to define parameterized SQL queries, custom toolsets, and prompts. Built-in connection pooling, IAM authentication support, and OpenTelemetry observability ensure consistent performance and security during database operations.
Category: Databases & Data Stores
Tags: data-access, database-management, SQL
Visit MCP Toolbox for Databases
To install and configure MCP Toolbox for Databases in your MCP client (such as Claude Desktop or Gemini CLI), follow these steps: 1. Open your client's configuration file (such as claude_desktop_config.json or mcp.json). 2. Add the server under mcpServers using the @toolbox-sdk/server package via npx: json { "mcpServers": { "toolbox-postgres": { "command": "npx", "args": [ "-y", "@toolbox-sdk/server", "--prebuilt=postgres", "--stdio" ] } } } 3. Set the required database connection environment variables according to your database target, or supply a custom configuration using --config tools.yaml. 4. Save the configuration and restart your MCP client.
Part of MCP Servers
You can run MCP Toolbox for Databases using npx with the @toolbox-sdk/server package. Add the configuration to your MCP client settings file such as claude_desktop_config.json or mcp.json, specify the target database with the prebuilt flag, and provide the necessary connection credentials via environment variables.
The server connects MCP clients to enterprise databases. It provides prebuilt tools for listing schemas and executing read-only SQL queries, and serves as a framework to create custom parameterized queries, prompts, and toolsets using a tools.yaml configuration file.
MCP Toolbox for Databases functions with any standard MCP-compatible client or development environment. Common examples documented by the project include Gemini CLI, Google Antigravity, Claude Code, Codex, and Claude Desktop.
Supported data stores include PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, MongoDB, Redis, Elasticsearch, CockroachDB, ClickHouse, Couchbase, Neo4j, Snowflake, Trino, and Google Cloud services like AlloyDB, BigQuery, Cloud SQL, Spanner, and Firestore.
Yes, MCP Toolbox for Databases is an open source project released under the Apache 2.0 license. The source code, documentation, and SDKs are maintained publicly on GitHub in the googleapis/mcp-toolbox repository.