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
claude mcp add --scope project mcp-toolbox-databases -- npx -y @toolbox-sdk/server --prebuilt=postgres --stdio
Cursor
{
"mcpServers": {
"mcp-toolbox-databases": {
"command": "npx",
"args": [
"-y",
"@toolbox-sdk/server",
"--prebuilt=postgres",
"--stdio"
]
}
}
}
Codex
[mcp_servers.mcp-toolbox-databases]
command = "npx"
args = ["-y", "@toolbox-sdk/server", "--prebuilt=postgres", "--stdio"]
Connect it with a database user that holds only the grants the agent needs, above all on production.
Other servers in data
Airtable
Query, create and update records in Airtable bases, limited to the bases you authorise.
BigQuery
Google-hosted endpoint to explore BigQuery datasets and run SQL. Cloud SQL and Spanner have their own.
Supabase
Manage Supabase projects from an agent: run SQL, apply migrations, read logs and deploy Edge Functions.
Neon
Create Neon Postgres projects and branches, run SQL and do branch-based migrations. Meant for development use.
MongoDB
Query and administer MongoDB databases and Atlas clusters, using a connection string or an Atlas service account.
Redis
Lets an agent work with Redis data structures, search and vector indexes in plain language.