googleapis/mcp-toolbox

MCP Toolbox for Databases is an open source MCP server for databases.

What it solves

MCP Toolbox for Databases provides a standardized way to connect AI agents, IDEs, and applications to enterprise databases. It eliminates the need to write repetitive boilerplate code for database connectivity and allows developers to safely expose database capabilities to LLMs through structured tools.

How it works

It operates as a Model Context Protocol (MCP) server that can be deployed as a binary, container, or via NPM. It offers two primary modes of operation:

  1. Prebuilt Tools: Users can instantly connect to a wide variety of databases (including Google Cloud AlloyDB, BigQuery, Cloud SQL, and others like PostgreSQL, MongoDB, and Snowflake) using generic tools for schema exploration and SQL execution.
  2. Custom Tools Framework: Developers can use a tools.yaml configuration file to define specific data sources, structured queries, semantic search capabilities, and prompts, ensuring that AI agents interact with data securely and predictably.

Who it’s for

  • AI Agent Developers: Those building production agents using frameworks like LangChain or LlamaIndex who need secure database access.
  • Developers using AI IDEs: Users of Gemini CLI, Claude Code, or Codex who want to query their databases in plain English.
  • Enterprise Data Engineers: Teams needing to expose database schemas and data to LLMs with restricted access and observability.

Highlights

  • Broad Database Support: Works with a vast array of SQL and NoSQL databases across Google Cloud and other providers.
  • Security-First: Supports Restricted Access, Structured Queries, and integrated IAM authentication.
  • Observability: Built-in support for OpenTelemetry for metrics and tracing.
  • Cient SDKs: Provides dedicated SDKs for Python, JS/TS, Go, and Java to integrate tools into custom applications.
  • Flexible Deployment: Can be run as a standalone binary, Docker container, or via npx.

Related

  • Project
  • Project
  • Project
  • Project
  • Project