================== /// MCP /// /// GEN /// ================== [server:online] [protocol:ready]
genai-toolbox
by googleapis
MCP Toolbox for Databases – an open-source MCP server that sits between Gen-AI agents and relational data sources, providing connection pooling, auth, observability, and a YAML-driven tool definition system.
8.3k
607
Open Source01
search-hotels-by-name
Search for hotels based on name.
Installation
Prerequisites
1. Golang ≥ 1.22 (https://go.dev/dl/)
2. A running PostgreSQL / MySQL instance (or any DB supported by the toolbox)
3. A Google Cloud project if you plan to use Vertex AI / other Google-hosted LLMs.
Installation (local build)
# Clone source
$ git clone https://github.com/googleapis/genai-toolbox.git
$ cd genai-toolbox
# Build the MCP server binary
$ go build -o mcp ./cmd/mcp
# Copy the sample configuration
$ cp configs/sample.yaml mcp.yaml # edit values for your database & model provider
# Launch the server
$ ./mcp --config mcp.yaml
Installation (Go install)
# Installs the latest released binary in $GOBIN
$ go install github.com/googleapis/genai-toolbox/cmd/mcp@latest
Installation (container image)
# Pull the image from GHCR
$ docker pull ghcr.io/googleapis/genai-toolbox:mcp-latest
# Run with mounted config file
$ docker run -p 8080:8080 -v $(pwd)/mcp.yaml:/app/mcp.yaml ghcr.io/googleapis/genai-toolbox:mcp-latest --config /app/mcp.yaml
Configuration Snippet
port: 8080
logging: debug
model_provider:
type: vertex # openai | vertex | ollama | llama.cpp | local
project_id: my-gcp-project
location: us-central1
model: text-bison
vector_store:
type: postgres
dsn: "postgres://user:pass@db-host:5432/dbname"
Documentation
License: Apache License 2.0
Updated 7/30/2025