MCP Toolbox for Databases is an open-source database server tool from Google, designed to simplify the development of Gen AI tools. This project enables developers to build AI agent tools that can access database data more easily, quickly, and securely.
Project Address: https://github.com/googleapis/genai-toolbox
The toolbox sits between the application's orchestration framework and the database, providing a control plane for modifying, distributing, or invoking tools. It simplifies tool management by providing a central location to store and update tools, allows tools to be shared between agents and applications, and allows these tools to be updated without having to redeploy the application.
# Check the release page for other versions
export VERSION=0.4.0
curl -O https://storage.googleapis.com/genai-toolbox/v$VERSION/linux/amd64/toolbox
chmod +x toolbox
# Check the release page for other versions
export VERSION=0.4.0
docker pull us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:$VERSION
go install github.com/googleapis/genai-toolbox@v0.4.0
./toolbox --tools_file "tools.yaml"
from toolbox_core import ToolboxClient
client = ToolboxClient("http://127.0.0.1:5000")
tools = await client.load_toolset("toolset_name")
from toolbox_langchain import ToolboxClient
client = ToolboxClient("http://127.0.0.1:5000")
tools = client.load_toolset()
from toolbox_llamaindex import ToolboxClient
client = ToolboxClient("http://127.0.0.1:5000")
tools = client.load_toolset()
sources:
my-pg-source:
kind: postgres
host: 127.0.0.1
port: 5432
database: toolbox_db
user: toolbox_user
password: my-password
tools:
search-hotels-by-name:
kind: postgres-sql
source: my-pg-source
description: Search for hotels based on name.
parameters:
- name: name
type: string
description: The name of the hotel.
statement: SELECT * FROM hotels WHERE name ILIKE '%' || $1 || '%';
toolsets:
my_first_toolset:
- my_first_tool
- my_second_tool
my_second_toolset:
- my_second_tool
- my_third_tool
MCP Toolbox for Databases is a powerful and easy-to-use open-source project designed for the database integration needs of modern AI applications. It helps developers quickly build reliable AI database tools by providing a simplified development experience, optimized performance, enhanced security, and comprehensive observability.
Whether you are developing AI agents, building data-driven applications, or need to share database tools across multiple frameworks, MCP Toolbox for Databases is a solution worth considering. Its flexible architecture and rich SDK support make it well-suited to a variety of development scenarios and needs.