# MCP Toolbox for Databases

Connect an AI agent to databases through MCP to inspect schemas, run queries, and write code informed by the database structure.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 16717
- Author: googleapis · official Google repository
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/googleapis/mcp-toolbox
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases

## What it does

MCP Toolbox for Databases gives Claude Code ready-made ways to work with a connected database. An agent can retrieve table names with `list_tables` or run SQL through `execute_sql`. Supported options include PostgreSQL, MySQL, MongoDB, and Google Cloud database services.

To connect it, add a server entry to the client's MCP configuration. The PostgreSQL example runs `@toolbox-sdk/server` with `npx` and the `--prebuilt=postgres` option. Then provide environment variables for the database connection; without them, the server has no connection settings to use.

Toolbox also lets you define custom tools with structured queries and semantic search. You can select a narrower toolset with a value such as `--prebuilt=postgres/data`, which loads SQL tools for PostgreSQL.

## Requirements
- Needs: Docker
- Works with: PostgreSQL

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- connect Claude Code to a database
- inspect database tables through an AI agent
- run SQL from an IDE
- define a tool with custom query logic

## Example prompts
- Show me the tables in the connected database.
- Run a SQL query to find the latest records in this table.
- Write code for this database using its schema.

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433
- [apify-mcp-server](https://affpapa.org/en/nevibecode/mcp/apify-mcp-server.md) — MCP server · ★ 12927
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9366

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
