---
title: "MCP Toolbox for Databases: setup for Claude, Cursor, Codex · DotsAgent"
description: "One server with prebuilt tool sets for Postgres, MySQL, BigQuery, AlloyDB, Spanner and other databases. Set up MCP Toolbox for Databases in 13 MCP clients."
url: https://dotsagent.io/mcp/servers/mcp-toolbox-databases
---

Data · Google

# Set up MCP Toolbox for Databases

One server with prebuilt tool sets for Postgres, MySQL, BigQuery, AlloyDB, Spanner and other databases.

- **Publisher**: Google Official
- **Run locally**: `npx -y @toolbox-sdk/server --prebuilt=postgres --stdio`
- **Transports**: stdio, streamable-http
- **Authentication**: Database credentials in environment variables, such as POSTGRES_USER and POSTGRES_PASSWORD.
- **What it can touch**: Depends on the tools you configure and the database user's grants.
- **Licence**: Apache-2.0
- **Source**: [github.com/googleapis/mcp-toolbox](https://github.com/googleapis/mcp-toolbox)
- **Status**: Active

## Install

This server runs on your machine as a child process of the client. You need the runtime its command uses, such as Node.js for npx, uv for uvx or Docker, plus any variables listed under Environment.

### Claude Code

`shell`

```
claude mcp add --scope project mcp-toolbox-databases -- npx -y @toolbox-sdk/server --prebuilt=postgres --stdio
```

### Cursor

`.cursor/mcp.json`

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

### Codex

`~/.codex/config.toml`

```
[mcp_servers.mcp-toolbox-databases]
command = "npx"
args = ["-y", "@toolbox-sdk/server", "--prebuilt=postgres", "--stdio"]
```

[Config for other clients →](https://dotsagent.io/mcp/config#add=mcp-toolbox-databases)

Connect it with a database user that holds only the grants the agent needs, above all on production.

## Other servers in data

- [Airtable](https://dotsagent.io/mcp/servers/airtable): Query, create and update records in Airtable bases, limited to the bases you authorise.

- [BigQuery](https://dotsagent.io/mcp/servers/google-bigquery): Google-hosted endpoint to explore BigQuery datasets and run SQL. Cloud SQL and Spanner have their own.

- [Supabase](https://dotsagent.io/mcp/servers/supabase): Manage Supabase projects from an agent: run SQL, apply migrations, read logs and deploy Edge Functions.

- [Neon](https://dotsagent.io/mcp/servers/neon): Create Neon Postgres projects and branches, run SQL and do branch-based migrations. Meant for development use.

- [MongoDB](https://dotsagent.io/mcp/servers/mongodb): Query and administer MongoDB databases and Atlas clusters, using a connection string or an Atlas service account.

- [Redis](https://dotsagent.io/mcp/servers/redis): Lets an agent work with Redis data structures, search and vector indexes in plain language.

## Sources

1. [github.com](https://github.com/googleapis/mcp-toolbox)/googleapis/mcp-toolbox

Independent reference for people who build AI agents. Not affiliated with any vendor named here.

© 2026 DotsAgent · Facts checked October 1, 2026
