MCP Toolbox for Databases
Google's open-source server with prebuilt tools for Postgres, MySQL, Spanner and more.
Officialby GoogleRuns on your computerChecked November 18, 2026
MCP Toolbox for Databases is Google's free, open-source MCP server (Apache-2.0) that gives Claude ready-made tools for 31 prebuilt sources, from PostgreSQL, MySQL, SQL Server and SQLite to AlloyDB, Spanner, BigQuery and Snowflake. You start it with one flag such as --prebuilt=postgres and pass the connection details as environment variables, and Google keeps the prebuilt tools for development, not for production agents.
Who is MCP Toolbox for Databases for?
- Developers working with Google Cloud databases
- Data engineers who manage several database types
- Teams that want vetted, predefined queries for agents
What can you ask MCP Toolbox for Databases to do?
Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.
List the tables in the public schema and describe the columns of the users table.Show the queries that have been running for more than five minutes and any locks they hold.Explain the query plan for this SQL and suggest an index that would speed it up.How to connect MCP Toolbox for Databases to Claude
MCP is an open standard. The setup steps below cover this server in Claude Code, Claude app, Codex, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:
New to MCP? Read what an MCP server is and how to add one.
Connect MCP Toolbox for Databases to Claude Code for me: run this command: claude mcp add --transport stdio toolbox-postgres --env POSTGRES_HOST=localhost --env POSTGRES_DATABASE=YOUR_DB --env POSTGRES_USER=YOUR_USER --env POSTGRES_PASSWORD=YOUR_PASSWORD -- npx -y @toolbox-sdk/server --prebuilt=postgres --stdio
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.Or do it yourself:
claude mcp add --transport stdio toolbox-postgres --env POSTGRES_HOST=localhost --env POSTGRES_DATABASE=YOUR_DB --env POSTGRES_USER=YOUR_USER --env POSTGRES_PASSWORD=YOUR_PASSWORD -- npx -y @toolbox-sdk/server --prebuilt=postgres --stdioReplace the YOUR_ values with your own details first.
Unlock the setup steps
Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.
Good to know
Swap --prebuilt=postgres for another of the 31 prebuilt sources, add /data to load only the SQL tools, and connect with a database user that can only SELECT.
How did we check MCP Toolbox for Databases?
Checked on November 8, 2026, then again on November 18: release v1.17.0 of googleapis/mcp-toolbox (published November 13, Apache-2.0, 16.9k stars), the matching @toolbox-sdk/server npm package, the prebuilt configs page on mcp-toolbox.dev (still 31 sources) and the v1.17.0 prebuilt postgres.yaml file, where we counted 29 tools in five toolsets. We did not run the server against a live database for this page.
What do people ask about MCP Toolbox for Databases?
Is MCP Toolbox for Databases free?
Yes. It is open source under the Apache-2.0 license and runs on your own computer or server, so you pay only for your database and your AI tool. Queries against paid services such as BigQuery or Cloud SQL are billed by those services as usual.
Which databases does it support?
On November 18, 2026 the prebuilt configs page listed 31 sources, including PostgreSQL, MySQL, SQL Server, Oracle, SQLite, ClickHouse, Snowflake, Neo4j and Google's AlloyDB, Cloud SQL, Spanner, BigQuery and Firestore. Other sources named in the README, such as MongoDB and Redis, work through custom tools you define in tools.yaml.
Is it safe to point at a production database?
Google says the prebuilt configs are meant for build-time work with trusted developers and are not secure enough for agents that talk to untrusted users. Its docs recommend a dedicated database identity with SELECT-only access for exploration, and custom parameterized tools for fixed production workflows.
How many tools does it add to Claude?
With --prebuilt=postgres the v1.17.0 config loads 29 tools. Adding a toolset name, such as --prebuilt=postgres/data, loads only the 8 SQL tools, which leaves more of Claude's context for your actual question.
Can I set up MCP Toolbox for Databases without being a developer?
It takes one terminal command, plus your database's host, name, user and password as environment variables, so ask whoever runs the database for a read-only user before you start. Before you connect anything, run the server through the vetting checklist in our guide to what MCP is. Adding a database server to Claude Code is part of the Skills and MCP lesson in our Claude Code course, which is in early access.
We wrote these answers from the official pages of each product named, read on November 18, 2026.
More database servers
Using servers like MCP Toolbox for Databases from Claude Code? Our Claude Code course, in early access, goes from your first command to a landing page, an AI video and a working agent.