# MCP Toolbox for Databases

> An open source MCP server for databases

Source: https://talira.ai/catalog/mcp-toolbox-for-databases-yx1af6jx
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: MCP server, Command-line tool
- Categories: [ai / mcp / servers](https://talira.ai/categories/ai/mcp/servers), [ai / agents / tool integration](https://talira.ai/categories/ai/agents/tool-integration)
- Platforms: macos, linux, windows, docker[^4]
- Licence: Apache-2.0[^3]
- Pricing: Free and open source[^3]
- Pricing notes: Free under Apache-2.0; you run it yourself.
- Free tier: yes[^3]
- Self-hostable: yes[^2]
- MCP server: yes[^4]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^4]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^5]

MCP Toolbox for Databases is Google's Apache-2.0 MCP server, written in Go, that sits between AI agents or IDEs and your databases. Run with `--prebuilt=<database>` it gives MCP clients such as [Gemini CLI](https://talira.ai/catalog/gemini-cli-xq86svf2.md), Google Antigravity, [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md) and [Codex](https://talira.ai/catalog/codex-8m7d8cdk.md) generic tools like `list_tables` and `execute_sql`; as a framework, you define your own tools in `tools.yaml` (a source, a parameterised SQL statement, a description), group them into toolsets, and agents can only run those queries. It handles connection pooling, IAM and OIDC authentication and OpenTelemetry tracing, and supports Google Cloud databases (AlloyDB, BigQuery, Cloud SQL, Spanner, Firestore) and others including [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md), [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md), SQL Server, Oracle, [MongoDB](https://talira.ai/catalog/mongodb-bnayk648.md), [Redis](https://talira.ai/catalog/redis-v917j45s.md), [Elasticsearch](https://talira.ai/catalog/elasticsearch-5kvt1ns8.md), [ClickHouse](https://talira.ai/catalog/clickhouse-x6tr2p66.md), [Neo4j](https://talira.ai/catalog/neo4j-76zxhxgj.md), Snowflake and Trino. Client SDKs in Python, JavaScript/[TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md), Go and Java load the tools into ADK, [LangChain](https://talira.ai/catalog/langchain-x3527dp4.md), [LlamaIndex](https://talira.ai/catalog/llamaindex-qn17jtyq.md) or custom agents; it was first called Gen AI Toolbox for Databases (googleapis/genai-toolbox).

## Links

- Website: https://mcp-toolbox.dev/
- GitHub: https://github.com/googleapis/mcp-toolbox
- Docs: https://mcp-toolbox.dev/documentation/introduction/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/mcp-toolbox>[^1]

## Problems it solves

- let Claude Code or Gemini CLI list tables and run SQL against our Postgres while I write code
- give a production agent only a fixed set of parameterised SQL queries instead of free-form SQL access
- define database tools for an AI agent in a YAML file instead of writing a custom MCP server
- connect an AI agent to BigQuery, AlloyDB or Spanner with Google Cloud IAM authentication
- one MCP server that works across Postgres, MySQL, SQL Server, Oracle and MongoDB
- pass the signed-in user's identity into the queries an agent runs so it only sees their rows
- trace and measure every database call my agent makes with OpenTelemetry
- load the same database tools into LangChain, LlamaIndex or Google ADK agents from Python, TypeScript, Go or Java
- connection pooling for an AI agent that hits our database on every turn
- self-host the database MCP server on Cloud Run or Kubernetes next to our databases

## Features

- prebuilt tools per database (`--prebuilt=postgres`, toolsets like `postgres/data`): list_tables, execute_sql and more
- custom tools in tools.yaml: sources, parameterised SQL tools, toolsets and prompts
- Google Cloud sources: AlloyDB, BigQuery, Cloud SQL (PostgreSQL, MySQL, SQL Server), Spanner, Firestore, Knowledge Catalog
- other sources: PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, MongoDB, Redis, Elasticsearch, CockroachDB, ClickHouse, Couchbase, Neo4j, Snowflake, Trino
- semantic search and NL2SQL tools (such as alloydb-ai-nl)
- connection pooling, IAM auth, Google Sign-In and generic OIDC auth services
- OpenTelemetry metrics and tracing
- stdio and HTTP MCP endpoints, per-toolset URLs
- client SDKs: Python (core, LangChain, LlamaIndex, ADK), JavaScript/TypeScript (core, ADK), Go, Java
- binaries for Linux, macOS and Windows, a container image, npx and Homebrew
- deploy guides for Cloud Run, Docker Compose and Kubernetes

## Limitations

- Doesn't come as a managed service: it's open source and self-hosted; Google Cloud MCP Servers are Google's managed option[^2]

## Capabilities

- Has a command line tool: plan not known
- Has an MCP server: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.48 out of 1.
Signals: backing 0.55, extensibility 0.40.

- backed by Google
- funding: public company (NASDAQ:GOOGL)
- has an MCP server for agents

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [pgEdge Postgres MCP Server](https://talira.ai/catalog/pgedge-postgres-mcp-server-fr903afd.md): A PostgreSQL MCP server with a Natural Language Agent CLI and Web UI
- [Postgres MCP Pro](https://talira.ai/catalog/postgres-mcp-pro-j2wvmkav.md): A Postgres MCP server with index tuning, explain plans, health checks, and safe SQL execution
- [mcp-server-mysql](https://talira.ai/catalog/mcp-server-mysql-ttm9zvf9.md): MCP server that lets Claude and other LLMs inspect MySQL schemas and run queries, read-only by default
- [Open Source MCP Servers for AWS](https://talira.ai/catalog/open-source-mcp-servers-for-aws-0nk09f9c.md): A suite of open source MCP servers that connect AI assistants to AWS services, docs and best practices
- [MySQL MCP Server](https://talira.ai/catalog/mysql-mcp-server-51fznpxz.md): Python MCP server for exploring and querying MySQL databases from AI assistants

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://mcp-toolbox.dev/dev/reference/faq/ (checked 20 Nov 2026)
[^3]: https://github.com/googleapis/mcp-toolbox/blob/main/LICENSE (checked 20 Nov 2026)
[^4]: https://github.com/googleapis/mcp-toolbox/blob/main/README.md (checked 20 Nov 2026)
[^5]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
