MCP Toolbox for Databases
MCP server by googleapis Community
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Install MCP Toolbox for Databases
Built from the published package, never by AI.
claude mcp add mcp-toolbox-for-databases -- docker run -i --rm us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0Run in your terminal. Add --scope user to use it in every project.
Step-by-step: install MCP Toolbox for Databases in Claude Code
{
"mcpServers": {
"mcp-toolbox-for-databases": {
"args": [
"run",
"-i",
"--rm",
"us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0"
],
"command": "docker"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install MCP Toolbox for Databases in Claude Desktop
{
"mcpServers": {
"mcp-toolbox-for-databases": {
"args": [
"run",
"-i",
"--rm",
"us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0"
],
"command": "docker"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-toolbox-for-databases": {
"args": [
"run",
"-i",
"--rm",
"us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0"
],
"command": "docker"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-toolbox-for-databases -- docker run -i --rm us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0{
"mcpServers": {
"mcp-toolbox-for-databases": {
"args": [
"run",
"-i",
"--rm",
"us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0"
],
"command": "docker"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install MCP Toolbox for Databases in Antigravity CLI
gemini mcp add mcp-toolbox-for-databases docker run -i --rm us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0Gemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
Step-by-step: install MCP Toolbox for Databases in Gemini CLI
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-toolbox-for-databases block.
About
MCP Toolbox for Databases is an open source Model Context Protocol server that connects AI agents, IDEs and applications to enterprise databases. It offers prebuilt generic tools, such as list_tables and execute_sql, for exploring schemas and querying data from clients like Gemini CLI, Claude Code and Codex. Prebuilt tools are started with a --prebuilt flag for a given database.
Developers can also use Toolbox as a framework for custom tools. A tools.yaml file defines sources, tools, toolsets, prompts and resources, so teams can build structured queries, semantic search and NL2SQL tools for production agents. The source also lists SDKs for Python, JavaScript, Go and Java, and says the server adds connection pooling, IAM-based auth and OpenTelemetry observability. It suits teams building agents that need database access.
Written from the project's README and checked against it.
Tools it gives your assistant
list_tablesLists tables from a connected database as a prebuilt generic tool.execute_sqlRuns SQL against a connected database as a prebuilt generic tool.
What you need
- A supported database with connection details set as environment variables
- An MCP-compatible client such as Gemini CLI, Claude Code or Codex
- npx, for the quick start command
- Docker or a downloaded binary, for other install methods
Try asking
- Use the toolbox to list the tables in my Postgres database.
- Run a SQL query to count orders created last week.
- Explore my database schema and generate code for the users table.
Good to know
- The npx method is optimized for convenience rather than performance, according to the README.
- The README gives only a brief overview; full details are on the external documentation site.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to MCP Toolbox for Databases
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Query databases from AI coding agents using the connections already set up in DBX. The dbx MCP server suits developers who use Claude Code, Cursor, Windsurf, or another MCP-compatible agent.
Compare with Supabase, ArcadeDB MCP Server or DBHub
MCP Toolbox for Databases: common questions
Which databases does MCP Toolbox for Databases support?
The README lists Google Cloud options such as AlloyDB, BigQuery, Cloud SQL, Spanner and Firestore, plus others including PostgreSQL, MySQL, Oracle, MongoDB and Redis.
Which AI clients can use it?
The README names Gemini CLI, Google Antigravity, Claude Code and Codex, and says any MCP-compatible client can be configured to use it.
What license is it released under?
The README shows an Apache-2.0 license badge and describes the project as open source.
How do I install MCP Toolbox for Databases?
In Claude Code run claude mcp add mcp-toolbox-for-databases -- docker run -i --rm us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is MCP Toolbox for Databases the official server?
MCP Toolbox for Databases is a community project by googleapis, not verified by a company domain.
Is MCP Toolbox for Databases free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is MCP Toolbox for Databases safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to MCP Toolbox for Databases?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does MCP Toolbox for Databases work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
