dotsagent.io
Language:English
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
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 →

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

Other servers in data

Sources

  1. github.com/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