MCP ConfigsMar 30, 2026·2 min read

GenAI Toolbox — MCP Server for Databases by Google

Open-source MCP server for databases by Google. Connect AI agents to PostgreSQL, MySQL, Cloud SQL, AlloyDB, and Spanner with built-in auth, connection pooling, and safety. 13K+ stars.

TO
TokRepo精选 · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

# Download
curl -O https://storage.googleapis.com/genai-toolbox/v0/os/linux/cpu/toolbox
chmod +x toolbox

# Run with config
./toolbox --config tools.yaml
# tools.yaml
sources:
  my-pg:
    kind: postgres
    host: localhost
    port: 5432
    database: mydb
    user: postgres
    password: secret
tools:
  search-users:
    kind: postgres-sql
    source: my-pg
    statement: "SELECT * FROM users WHERE name ILIKE $1"
    parameters:
      - name: query
        type: string
        description: Search term for user name

Intro

GenAI Toolbox for Databases is an open-source MCP server by Google that connects AI agents to databases. It supports PostgreSQL, MySQL, Cloud SQL, AlloyDB, and Spanner with built-in authentication, connection pooling, parameterized queries, and safety guardrails. Designed for production use with Google Cloud but works with any database. 13,500+ GitHub stars.

Best for: Developers connecting AI agents to databases securely Works with: Claude Code, Cursor, Gemini CLI, any MCP client


Key Features

Multi-Database Support

PostgreSQL, MySQL, Cloud SQL, AlloyDB, Spanner — configure via YAML.

Safety Built-In

  • Parameterized queries prevent SQL injection
  • Read-only mode available
  • Connection pooling for performance
  • IAM-based authentication for Google Cloud

MCP Protocol

Standard MCP server — works with any MCP-compatible AI tool.

Declarative Config

Define tools as SQL templates in YAML. No code required.


FAQ

Q: What is GenAI Toolbox? A: An open-source MCP server by Google for connecting AI agents to databases (PostgreSQL, MySQL, Cloud SQL, AlloyDB, Spanner) with built-in safety and auth. 13K+ stars.

Q: Does it only work with Google Cloud? A: No, it works with any PostgreSQL or MySQL database. Google Cloud features (Cloud SQL, IAM auth) are optional.


🙏

Source & Thanks

Created by Google. Licensed under Apache 2.0. googleapis/genai-toolbox — 13,500+ GitHub stars

Related Assets