OfficialDatabaseslocal stdio / remote HTTP

MCP Toolbox for Databases

Connects agents to BigQuery, Cloud SQL, AlloyDB, Spanner, Postgres, MySQL and many other databases.

Install

Claude Desktop

{"mcpServers":{"toolbox-postgres":{"command":"npx","args":["-y","@toolbox-sdk/server","--prebuilt=postgres","--stdio"]}}}

Gemini CLI

gemini extensions install https://github.com/gemini-cli-extensions/mcp-toolbox

Commands and configuration as given in the server’s documentation (Documentation). Replace placeholders such as API keys with your own values.

MCP Toolbox for Databases is Google’s open-source database MCP server, previously named genai-toolbox.

MCP Toolbox for Databases is an MCP server from Google that connects agents to BigQuery, Cloud SQL, AlloyDB, Spanner, Postgres, MySQL and many other databases. It is open source under the Apache-2.0 license and runs over stdio or as an HTTP server on port 5000. Database credentials come from environment variables, with IAM for Google Cloud. The configuration below covers Claude Desktop and Gemini CLI.

The --prebuilt flag gives instant generic tools such as list_tables and execute_sql for a chosen database. You can also define custom tools, toolsets and prompts in YAML. It handles connection pooling, IAM auth and OpenTelemetry.

Questions

Which databases does MCP Toolbox for Databases support?
It connects agents to BigQuery, Cloud SQL, AlloyDB, Spanner, Postgres, MySQL and many other databases.
What does the --prebuilt flag do?
It gives instant generic tools such as list_tables and execute_sql for a chosen database.
Can I define custom tools in MCP Toolbox?
Yes. You can define custom tools, toolsets and prompts in YAML.
What was MCP Toolbox for Databases called before?
It was previously named genai-toolbox.

Sources

Checked October 2, 2026.

Databases

View all
Aftergradient

What are you looking for?

Search commands, errors, tools