Genai Toolbox logo

Genai Toolbox

by googleapis

Connects MCP-compatible agents and IDEs to databases through prebuilt tools or configured custom database actions.

Install Genai Toolbox

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for googleapis/genai-toolbox, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

googleapis/genai-toolbox MCP server connects MCP clients, IDEs, and applications to enterprise databases through prebuilt database tools or custom tool definitions. It supports schema exploration and SQL execution, while custom configurations can expose structured queries, semantic search, and NL2SQL workflows. Configure sources, tools, and toolsets in YAML, or launch a prebuilt database configuration with a command-line flag. Reach for it when an agent needs controlled database access across Google Cloud and other database systems.

Use cases

  • Explore database schemas from an MCP-compatible IDE
  • Query PostgreSQL or other supported databases through agent tools
  • Define restricted SQL actions for production agents
  • Group database tools for different applications or agents

Key features

  • Prebuilt database tools
  • Custom YAML-defined tools
  • Structured queries and semantic search
  • Toolset-based configuration
  • Connection pooling and IAM authentication
  • OpenTelemetry metrics and tracing

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

29/29 checks healthy over the last 77d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars16kStargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Genai Toolbox works

What googleapis/genai-toolbox MCP server does

googleapis/genai-toolbox provides database-facing MCP tools for agents, developer tools, and applications. It can expose generic operations for supported databases, including table discovery and SQL execution, without requiring each client integration to implement database-specific logic.

The server also acts as a framework for defining application-specific tools. Developers can describe approved actions, inputs, data sources, and SQL statements rather than giving an agent unrestricted access to a database. This makes it suitable for assistants that need narrowly scoped queries, structured access patterns, semantic search, or natural-language-to-SQL workflows.

Supported systems include Google Cloud services such as AlloyDB, BigQuery, Cloud SQL, Spanner, Firestore, and Knowledge Catalog. Other listed integrations include PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, MongoDB, Redis, Elasticsearch, CockroachDB, ClickHouse, Couchbase, Neo4j, Snowflake, and Trino.

How it works

A client starts the server through MCP configuration, commonly using the @toolbox-sdk/server package with a --prebuilt=<database> argument and --stdio. The selected prebuilt configuration exposes standard tools for that database. A narrower toolset can be selected with a path such as --prebuilt=postgres/data.

For custom deployments, a tools.yaml file describes the available resources. Sources contain connection details, tools define agent actions and their parameters, and toolsets group tools for different agents or applications. Prompts can also be declared for LLM interactions. The server supports connection pooling, IAM-based authentication, and OpenTelemetry metrics and tracing.

Setup and configuration

Add the server to the MCP client's configuration file, such as mcp.json or claude_desktop_config.json. A prebuilt PostgreSQL entry can invoke:

config.json
{
  "command": "npx",
  "args": ["-y", "@toolbox-sdk/server", "--prebuilt=postgres", "--stdio"]
}

Set the connection environment variables associated with the selected prebuilt database. For custom tools, point the server at a YAML configuration with --config tools.yaml; multiple configuration files can be selected this way as well.

The project also supports other execution methods, including Docker and binaries. Client connections can use MCP directly, while application developers can integrate through the published Python, JavaScript/TypeScript, Go, and Java SDKs.

Tools and capabilities

  • Prebuilt generic tools for database access
  • Table listing and SQL execution
  • Database schema exploration and database-aware code generation
  • Custom tools backed by predefined SQL or other configured logic
  • Structured queries, semantic search, and NL2SQL tool patterns
  • Toolsets for loading different groups of tools
  • Prompt definitions for LLM interactions
  • Connection pooling, IAM authentication, and OpenTelemetry observability

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Genai Toolbox

googleapis/genai-toolbox is an MCP server that connects AI agents, IDEs, and applications to enterprise databases. Its main tools support database exploration, table listing, and SQL execution, while its configuration framework lets developers define structured queries, semantic search, and other controlled database actions.

Add an MCP server entry that runs `npx -y @toolbox-sdk/server` with a database-specific `--prebuilt` flag and `--stdio`. Then set the connection environment variables for that database. Docker and binary-based execution methods are also available.

Define sources, tools, toolsets, and optional prompts in a `tools.yaml` file, then start the server with `--config tools.yaml`. A source describes the database connection, while each tool specifies its action, parameters, source, and query or configured logic.

googleapis/genai-toolbox supports Google Cloud databases and services including AlloyDB, BigQuery, Cloud SQL, Spanner, Firestore, and Knowledge Catalog, along with systems such as PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, MongoDB, Redis, Elasticsearch, Snowflake, Neo4j, and others.

Yes. The server's quick-start names Gemini CLI, Claude Code, and Codex as compatible MCP clients. Configure the server in each client's MCP settings, using a prebuilt database mode or a custom YAML configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGenai Toolbox AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/googleapis-genai-toolbox?style=directory)](https://allmcps.com/mcp/googleapis-genai-toolbox)
HTML Embed
<a href="https://allmcps.com/mcp/googleapis-genai-toolbox"><img src="https://allmcps.com/api/badge/googleapis-genai-toolbox?style=directory" alt="Genai Toolbox on AllMCPs" /></a>