MCP Toolbox for Databases
MCP Toolbox for Databases is Google's official open-source server that connects AI agents like Claude and Gemini to databases. As of v1.9.0, its BigQuery source config supports an apiEndpoint field, so you can point it to route through Yuki instead of hitting bigquery.googleapis.com directly. That's what lets Yuki sit in front of BigQuery traffic coming from agentic tools, not just traditional query traffic, so agentic workloads get the same Yuki optimization as everything else.
Setup
-
Clone and build the toolbox, if you don't have it already:
git clone https://github.com/googleapis/mcp-toolbox.gitcd mcp-toolboxgo build -o toolbox . -
Authenticate - make sure Application Default Credentials are set up:
gcloud auth application-default login -
Point the BigQuery source at Yuki in your
tools.yaml:kind: sourcename: my-bigquery-sourcetype: bigqueryproject: "<your-gcp-project-id>"apiEndpoint: "https://<your-yuki-proxy-host>/bigquery/v2/" -
Run the toolbox:
./toolbox --config tools.yaml
Test the Connection
The /api/* endpoints are disabled by default now - use the MCP JSON-RPC endpoint instead:
curl -X POST http://127.0.0.1:5000/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"execute_sql","arguments":{"sql":"SELECT 1"}}}'