npx 方式主打便捷而非性能,正式使用建议改用二进制或容器镜像;预置工具需自行设置对应数据库的环境变量才能连接;仓库已从 genai-toolbox 改名为 mcp-toolbox,旧 remote 需手动更新

mcp-toolbox
googleapisApache-2.0活跃维护面向数据库的开源 MCP 服务器,让 AI 代理和 LLM 通过统一协议安全访问 BigQuery、ClickHouse、Elasticsearch 等多种数据源。
MCP Toolbox for Databases is an open source MCP server for databases.
npx @toolbox-sdk/server --config tools.yamlREADME 未说明硬件要求,工具以二进制、容器或 npx 方式运行,不涉及 GPU 或显存
开源 MCP 服务器,把 AI 代理和 IDE 直接连到企业数据库,免写样板代码
面向数据库的开源 MCP 服务器,让 AI 代理和 LLM 通过统一协议安全访问 BigQuery、ClickHouse、Elasticsearch 等多种数据源。
核心能力
- 用 --prebuilt 参数一键加载各数据库预置工具
- 通过 tools.yaml 定义结构化查询与语义搜索等自定义工具
- 内置连接池、IAM 认证与 OpenTelemetry 可观测性
- 支持 Python、JS/TS、Go、Java 多语言 SDK 集成
- 覆盖 BigQuery、Spanner、PostgreSQL、MySQL、MongoDB 等数据库
容易踩的坑
- v1.16.0最新正式版2026-11-05 · 2026-11-05 19:56 UTC
1.16.0 (2026-11-05)
Features
- Add skills over MCP extension (#4104) (cb998b0)
- mssql: Adding new mssql function to return source code for all custom database objects (#3954) (9612d48)
- prebuilt/dataplex: Remove search_aspect_types tool from prebuilt config (08a42a2)
- server, resources: Support dynamic UI resources, ResourceProvider, and StructuredToolResult (#4315) (772847c)
- tool/bigquery: Add debug logging across BigQuery tools (#4346) (1e4dea5)
- tool/looker-import-dashboard-from-lookml: Add Looker import_dashboard_from_lookml (#4156) (af22702)
- tool/looker: Support text, markdown, and rich-text dashboard elements (#4180) (0c8a71d)
Bug Fixes
- looker: Bind all dashboard_filters in add_dashboard_element and update_dashboard_element (#4326) (6f47f4e)
- source/bigquery: Recover default-ADC clients after on-disk re-auth (#4329) (fae6849)
- source/bigquery: Set UseLegacySql to false when creating session (#4358) (494092a)
- tool/bigquery-execute-sql: Make writeMode protected fail-closed for non-SELECT statements (#4359) (426fb4e)
- tool/bigquery-get-table-info: Compact zero-valued schema fields (#4328) (4d74bf9)
- Watch tools.yaml for reload when config flag omitted (#4025) (00761dd)
OS/Architecture Description SHA256 Hash linux/amd64 ([Signature](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.16.0/ - v1.15.02026-10-23 · 2026-10-23 00:14 UTC
查看更新说明
1.15.0 (2026-10-22)
Features
- conversational-analytics: Add create, update, and delete data agent tools (#3685) (aaf8841)
- looker: Support running saved queries by query_id in query tool (#4220) (0f2f3fb)
- server: Backport MCP Apps UI support across v20241105 - v20251125 (#4057) (3a4032c)
- ui: Add collapsible sidebar and resizable scrollable tool description (#4281) (8d1930f)
- ui: Add MCP Apps support to toolbox playground (#4063) (d0628f7)
Bug Fixes
- auth/generic: Validate issuer claim in GetClaimsFromHeader (#4296) (e0d655a)
- resource/file: Sanitize server filesystem paths from read errors (#4260) (5aeb8f9)
- source/bigquery: Sort allowedDatasets for deterministic tool manifests (#4272) (6d46c5f)
- telemetry: Disable self-tracing on GCP telemetry exporters (#4230) (f9ba7e5)
- tools: Remove
Authorized()from Tool interface to ensure centralizedauthRequiredcheck (#4254) (00ce635)
OS/Architecture Description SHA256 Hash linux/amd64 (Signature) For Linux systems running on Intel/AMD 64-bit processors. f6fac005c39898a379523700727a2a3d0a2828f579bec22cc0efe74e0652062d darwin/arm64 For macOS systems running on Apple Silicon (M1, M2, M3, etc.) processors. ddf69a8cd52904f86532d5e195d06e5d4c158de61c69dc17bd4d8b6203fc52fc darwin/amd64 For macOS systems running on Intel processors. - v1.14.02026-10-08 · 2026-10-08 18:48 UTC
查看更新说明
1.14.0 (2026-10-08)
Features
- bigquery: Support authorized views with dataset restrictions (#2561) (441d4e7)
- looker: Include LookML dashboards in get_dashboards tool (#4216) (2fea1b5)
- source/firestore: Propagate requester header on collection listing for get_schema (#4131) (0fa215a)
- sources/spanner: Add support for Spanner Omni (#4198) (a24e5e6)
- tool/cloud-gemini-data-analytics-query: Support Bigtable and Firestore references (#4136) (3aff9a7)
- tool/looker: Add looker-get-explore tool (#4173) (ceb657e)
Bug Fixes
- datalineage: Increase timeouts (69aa2f2)
- looker: Update legacy feature test expectation (e9c2f42)
- resources: Normalize resource-template URI scheme to lowercase (#4023) (2311dc1)
- tool/bigquery: Check lexically referenced datasets before dry run (#4164) (912189f)
OS/Architecture Description SHA256 Hash linux/amd64 (Signature) For Linux systems running on Intel/AMD 64-bit processors. 8ff7c6034d792e2754999e101116ac63b8a9fb926dd2f736065d8e0ef85ead22 darwin/arm64 For macOS systems running on Apple Silicon (M1, M2, M3, etc.) processors. d1578b3f551b1aa0947c7b377716cd5e8b9448ac5a79fdc1e06dc11a69bbe334 darwin/amd64 For macOS systems running on Intel processors. 79db60dfd3e4c50c7019d4d0a15069b405392375067c0cfed1b6b1fdf0b0e458 [windows/amd64](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.14.0/windows/amd64/toolbox.e - v1.13.12026-09-25 · 2026-09-25 23:10 UTC
查看更新说明
1.13.1 (2026-09-25)
Bug Fixes
OS/Architecture Description SHA256 Hash linux/amd64 (Signature) For Linux systems running on Intel/AMD 64-bit processors. d8e0df24b5ce9934c8f7ae8466f64ff5512857c5a7e47640301750ee82f92db3 darwin/arm64 For macOS systems running on Apple Silicon (M1, M2, M3, etc.) processors. fb14fd0692c777d14e45fbebeebd7907564a0e3a1942c55a8829cfd9423f012b darwin/amd64 For macOS systems running on Intel processors. b26129f5773312d071fc28b060ca203843798caa5f82d2a123914907572dfde6 windows/amd64 For Windows systems running on Intel/AMD 64-bit processors. fbc00ac9d5be48c5c9948189a33db800087f9bd71778ac1c9c401fcb72a59582 windows/arm64 For Windows systems running on ARM 64-bit processors. fe4c49cf945044b837cbb91980cfec6cd816536de74afc0cfae0d46b7aa30f16 - v1.13.02026-09-25 · 2026-09-25 01:20 UTC
查看更新说明
1.13.0 (2026-09-24)
Features
- Add prebuilt config for bigtable (#4068) (576b9f7)
- Support
--defer-source-connectflag to connecting sources on first use (#4076) (5700630) - tool/conversational-analytics-list-accessible-data-agents: Return all data agents and support manual paging (#4066) (0131c39)
- tool/looker: Expose value_format and value_format_name in field metadata (#4094) (4b7a44d)
Bug Fixes
OS/Architecture Description SHA256 Hash linux/amd64 (Signature) For Linux systems running on Intel/AMD 64-bit processors. 04a500b692020beeb31c928c0f3e8abc87638cef05e2fa819e59b9efad0d2346 darwin/arm64 For macOS systems running on Apple Silicon (M1, M2, M3, etc.) processors. ef4c86a5a1592f9674892ac2a47386dea9d23e08fc910d987f138613884bb0b9 darwin/amd64 For macOS systems running on Intel processors. 09f67b733684e2e1f297ffa789e9a6ed9698b1fc4ac8b7469c271c08e3ebef19 windows/amd64 For Windows systems running on Intel/AMD 64-bit processors. 8626992f54f70f968f5667b980cbdcb6427a9c05c9092f9b39137174b42b4e3d windows/arm64 For Windows systems running on ARM 64-bit processors. 3d1aab86d9c1c8773dc3e227090dce262875d2bb9e06258222b16973f4d66b99
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。

MCP Toolbox for Databases
MCP Toolbox for Databases is an open source Model Context Protocol (MCP) server that connects your AI agents, IDEs, and applications directly to your enterprise databases.
It serves a dual purpose:
- Ready-to-use MCP Server (Build-Time): Instantly connect Gemini CLI, Google Antigravity, Claude Code, Codex, or other MCP clients to your databases using our prebuilt generic tools. Talk to your data, explore schemas, and generate code without writing boilerplate.
- Custom Tools Framework (Run-Time): A robust framework to build specialized, highly secure AI tools for your production agents. Define structured queries, semantic search, and NL2SQL capabilities safely and easily.
This README provides a brief overview. For comprehensive details, see the full documentation.
[!IMPORTANT]
Repository Name Update: Thegenai-toolboxrepository has been officially renamed tomcp-toolbox. To ensure your local environment reflects the new name, you may update your remote:git remote set-url origin https://github.com/googleapis/mcp-toolbox.git
[!NOTE] This solution was originally named “Gen AI Toolbox for Databases” (github.com/googleapis/genai-toolbox) as its initial development predated MCP, but was renamed to align with the MCP compatibility.
Table of Contents
- Why MCP Toolbox?
- Quick Start: Prebuilt Tools
- Quick Start: Custom Tools
- Install & Run the Toolbox server
- Connect to Toolbox
- Additional Features
- Versioning
- Contributing
- Community
Why MCP Toolbox?
- Out-of-the-Box Database Access: Prebuilt generic tools for instant data exploration (e.g.,
list_tables,execute_sql) directly from your IDE or CLI. - Custom Tools Framework: Build production-ready tools with your own predefined logic, ensuring safety through Restricted Access, Structured Queries, and Semantic Search.
- Simplified Development: Integrate tools into your Agent Development Kit (ADK), LangChain, LlamaIndex, or custom agents in less than 10 lines of code.
- Better Performance: Handles connection pooling, integrated auth (IAM), and end-to-end observability (OpenTelemetry) out of the box.
- Enhanced Security: Integrated authentication for more secure access to your data.
- End-to-end Observability: Out of the box metrics and tracing with built-in support for OpenTelemetry.
Quick Start: Prebuilt Tools
Stop context-switching and let your AI assistant become a true co-developer. By connecting your IDE to your databases with MCP Toolbox, you can query your data in plain English, automate schema discovery and management, and generate database-aware code.
You can use the Toolbox in any MCP-compatible IDE or client (e.g., Gemini CLI, Google Antigravity, Claude Code, Codex, etc.) by configuring the MCP server.
Prebuilt tools are also conveniently available via the Google Antigravity MCP Store with a simple click-to-install experience.
-
Add the following to your client's MCP configuration file (usually
mcp.jsonorclaude_desktop_config.json):{ "mcpServers": { "toolbox-postgres": { "command": "npx", "args": [ "-y", "@toolbox-sdk/server", "--prebuilt=postgres", "--stdio" ] } } } -
Set the appropriate environment variables to connect, see the Prebuilt Tools Reference.
When you run Toolbox with a --prebuilt=<database> flag, you instantly get access to standard tools to interact with that database. You can also specify a specific toolset using the --prebuilt=<database>/<toolset> syntax (e.g., --prebuilt=postgres/data to only load SQL tools).
Supported databases currently include:
- Google Cloud: AlloyDB, BigQuery, Cloud SQL (PostgreSQL, MySQL, SQL Server), Spanner, Firestore, Knowledge Catalog (formerly known as Dataplex).
- Other Databases: PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, MongoDB, Redis, Elasticsearch, CockroachDB, ClickHouse, Couchbase, Neo4j, Snowflake, Trino, and more.
For a full list of available tools and their capabilities across all supported databases, see the Prebuilt Tools Reference.
See the Install & Run the Toolbox server section for different execution methods like Docker or binaries.
[!TIP] For users looking for a managed solution, Google Cloud MCP Servers provide a managed MCP experience with prebuilt tools; you can learn more about the differences here.
Quick Start: Custom Tools
Toolbox can also be used as a framework for customized tools.
The primary way to configure Toolbox is through the tools.yaml file. If you
have multiple files, you can tell Toolbox which to load with the --config tools.yaml flag.
You can find more detailed reference documentation to all resource types in the Resources.
Sources
The sources section of your tools.yaml defines what data sources your
Toolbox should have access to. Most tools will have at least one source to
execute against.
kind: source
name: my-pg-source
type: postgres
host: 127.0.0.1
port: 5432
database: toolbox_db
user: toolbox_user
password: my-password
For more details on configuring different types of sources, see the Sources.
Tools
The tools section of a tools.yaml define the actions an agent can take: what
type of tool it is, which source(s) it affects, what parameters it uses, etc.
kind: tool
name: search-hotels-by-name
type: 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 || '%';
For more details on configuring different types of tools, see the Tools.
Toolsets
The toolsets section of your tools.yaml allows you to define groups of tools
that you want to be able to load together. This can be useful for defining
different groups based on agent or application.
kind: toolset
name: my_first_toolset
tools:
- my_first_tool
- my_second_tool
---
kind: toolset
name: my_second_toolset
tools:
- my_second_tool
- my_third_tool
Prompts
The prompts section of a tools.yaml defines prompts that can be used for
interactions with LLMs.
kind: prompt
name: code_review
description: "Asks the LLM to analyze code quality and suggest improvements."
messages:
- content: >
Please review the following code for quality, correctness,
and potential improvements: \n\n{{.code}}
arguments:
- name: "code"
description: "The code to review"
For more details on configuring prompts, see the Prompts.
Resources
The resources and resourceTemplates sections of your tools.yaml define read-only
content, files, or parameterized directory trees that can be discovered and retrieved
by MCP clients:
kind: resource
name: database_schema_ddl
type: text
description: "Core table definitions and constraints."
mimeType: text/x-sql
text: |
CREATE TABLE customers (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
email VARCHAR(255) UNIQUE NOT NULL
);
---
kind: resource
name: database_schema
type: file
description: "PostgreSQL schema definition."
path: "./schema.sql"
---
kind: resourceTemplate
name: server_logs
type: file
description: "Application log files."
uriTemplate: "file:///var/log/{path}"
allowedPaths:
- "/var/log"
For more details on configuring resources and resource templates, see Resources.
Install & Run the Toolbox server
You can run Toolbox directly with a configuration file:
npx @toolbox-sdk/server --config tools.yaml
This runs the latest version of the Toolbox server with your configuration file.
[!NOTE] This method is optimized for convenience rather than performance. For a more standard and reliable installation, please use the binary or container image as described in Install & Run the Toolbox server.
Install Toolbox
For the latest version, check the releases page and use the following instructions for your OS and CPU architecture.
To install Toolbox as a binary:
To install Toolbox as a binary on Linux (AMD64):
# see releases page for other versions export VERSION=1.16.0 curl -L -o toolbox https://storage.googleapis.com/mcp-toolbox-for-databases/v$VERSION/linux/amd64/toolbox chmod +x toolboxTo install Toolbox as a binary on macOS (Apple Silicon):
# see releases page for other versions export VERSION=1.16.0 curl -L -o toolbox https://storage.googleapis.com/mcp-toolbox-for-databases/v$VERSION/darwin/arm64/toolbox chmod +x toolboxTo install Toolbox as a binary on macOS (Intel):
# see releases page for other versions export VERSION=1.16.0 curl -L -o toolbox https://storage.googleapis.com/mcp-toolbox-for-databases/v$VERSION/darwin/amd64/toolbox chmod +x toolboxTo install Toolbox as a binary on Windows (Command Prompt):
:: see releases page for other versions set VERSION=1.16.0 curl -o toolbox.exe "https://storage.googleapis.com/mcp-toolbox-for-databases/v%VERSION%/windows/amd64/toolbox.exe"To install Toolbox as a binary on Windows (PowerShell):
# see releases page for other versions $VERSION = "1.16.0" curl.exe -o toolbox.exe "https://storage.googleapis.com/mcp-toolbox-for-databases/v$VERSION/windows/amd64/toolbox.exe"To install Toolbox as a binary on Windows ARM64 (Command Prompt):
:: see releases page for other versions set VERSION=1.16.0 curl -o toolbox.exe "https://storage.googleapis.com/mcp-toolbox-for-databases/v%VERSION%/windows/arm64/toolbox.exe"To install Toolbox as a binary on Windows ARM64 (PowerShell):
# see releases page for other versions $VERSION = "1.16.0" curl.exe -o toolbox.exe "https://storage.googleapis.com/mcp-toolbox-for-databases/v$VERSION/windows/arm64/toolbox.exe"
# see releases page for other versions
export VERSION=1.16.0
docker pull us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:$VERSION
To install Toolbox using Homebrew on macOS or Linux:
brew install mcp-toolbox
To install from source, ensure you have the latest version of Go installed, and then run the following command:
go install github.com/googleapis/[email protected]
# Install Gemini CLI
npm install -g @google/gemini-cli
# Install the extension
gemini extensions install https://github.com/gemini-cli-extensions/cloud-sql-postgres
# Run Gemini CLI
gemini
Interact with your custom tools using natural language through the Gemini CLI.
# Install the extension
gemini extensions install https://github.com/gemini-cli-extensions/mcp-toolbox
Run Toolbox
Configure a tools.yaml to define your tools, and then
execute toolbox to start the server:
To run Toolbox from binary:
./toolbox --config "tools.yaml"
ⓘ Note
Toolbox enables dynamic reloading by default. To disable, use the--disable-reloadflag.
To run the server after pulling the container image:
export VERSION=0.24.0 # Use the version you pulled
docker run -p 5000:5000 \
-v $(pwd)/tools.yaml:/app/tools.yaml \
us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:$VERSION \
--config "/app/tools.yaml"
ⓘ Note
The-vflag mounts your localtools.yamlinto the container, and-pmaps the container's port5000to your host's port5000.
To run the server directly from source, navigate to the project root directory and run:
go run .
ⓘ Note
This command runs the project from source, and is more suitable for development and testing. It does not compile a binary into your$GOPATH. If you want to compile a binary instead, refer the Developer Documentation.
If you installed Toolbox using Homebrew, the toolbox
binary is available in your system path. You can start the server with the same
command:
toolbox --config "tools.yaml"
To run Toolbox directly without manually downloading the binary (requires Node.js):
npx @toolbox-sdk/server --config tools.yaml
# Run Gemini CLI
gemini
# List extensions
/extensions list
# List MCP servers
/mcp list
You can use toolbox help for a full list of flags! To stop the server, send a
terminate signal (ctrl+c on most platforms).
For more detailed documentation on deploying to different environments, check out the resources in the Deploy Toolbox section
Connect to Toolbox
Once your Toolbox server is up and running, you can load tools into your MCP-compatible client or application.
MCP Client
Add the following configuration to your MCP client configuration:
{
"mcpServers": {
"toolbox": {
"type": "http",
"url": "http://127.0.0.1:5000/mcp",
}
}
}
If you would like to connect to a specific toolset, replace url with "http://127.0.0.1:5000/mcp/{toolset_name}".
Toolbox SDKs: Integrate with your Application
Toolbox Client SDKs provide the easy-to-use building blocks and advanced features for connecting your custom applications to the MCP Toolbox server. See below the list of Client SDKs for using various frameworks:
-
Install Toolbox Core SDK:
pip install toolbox-core -
Load tools:
from toolbox_core import ToolboxClient # update the url to point to your server async with ToolboxClient("http://127.0.0.1:5000") as client: # these tools can be passed to your application! tools = await client.load_toolset("toolset_name")
For more detailed instructions on using the Toolbox Core SDK, see the project's README.
-
Install Toolbox LangChain SDK:
pip install toolbox-langchain -
Load tools:
from toolbox_langchain import ToolboxClient # update the url to point to your server async with ToolboxClient("http://127.0.0.1:5000") as client: # these tools can be passed to your application! tools = client.load_toolset()For more detailed instructions on using the Toolbox LangChain SDK, see the project's README.
-
Install Toolbox Llamaindex SDK:
pip install toolbox-llamaindex -
Load tools:
from toolbox_llamaindex import ToolboxClient # update the url to point to your server async with ToolboxClient("http://127.0.0.1:5000") as client: # these tools can be passed to your application! tools = client.load_toolset()For more detailed instructions on using the Toolbox Llamaindex SDK, see the project's README.
-
Install Toolbox Core SDK:
npm install @toolbox-sdk/core -
Load tools:
import { ToolboxClient } from '@toolbox-sdk/core'; // update the url to point to your server const URL = 'http://127.0.0.1:5000'; let client = new ToolboxClient(URL); // these tools can be passed to your application! const tools = await client.loadToolset('toolsetName');For more detailed instructions on using the Toolbox Core SDK, see the project's README.
-
Install Toolbox Core SDK:
npm install @toolbox-sdk/core -
Load tools:
import { ToolboxClient } from '@toolbox-sdk/core'; // update the url to point to your server const URL = 'http://127.0.0.1:5000'; let client = new ToolboxClient(URL); // these tools can be passed to your application! const toolboxTools = await client.loadToolset('toolsetName'); // Define the basics of the tool: name, description, schema and core logic const getTool = (toolboxTool) => tool(currTool, { name: toolboxTool.getName(), description: toolboxTool.getDescription(), schema: toolboxTool.getParamSchema() }); // Use these tools in your Langchain/Langraph applications const tools = toolboxTools.map(getTool);
-
Install Toolbox Core SDK:
npm install @toolbox-sdk/core -
Load tools:
import { ToolboxClient } from '@toolbox-sdk/core'; import { genkit } from 'genkit'; // Initialise genkit const ai = genkit({ plugins: [ googleAI({ apiKey: process.env.GEMINI_API_KEY || process.env.GOOGLE_API_KEY }) ], model: googleAI.model('gemini-2.0-flash'), }); // update the url to point to your server const URL = 'http://127.0.0.1:5000'; let client = new ToolboxClient(URL); // these tools can be passed to your application! const toolboxTools = await client.loadToolset('toolsetName'); // Define the basics of the tool: name, description, schema and core logic const getTool = (toolboxTool) => ai.defineTool({ name: toolboxTool.getName(), description: toolboxTool.getDescription(), schema: toolboxTool.getParamSchema() }, toolboxTool) // Use these tools in your Genkit applications const tools = toolboxTools.map(getTool);
-
Install Toolbox ADK SDK:
npm install @toolbox-sdk/adk -
Load tools:
import { ToolboxClient } from '@toolbox-sdk/adk'; // update the url to point to your server const URL = 'http://127.0.0.1:5000'; let client = new ToolboxClient(URL); // these tools can be passed to your application! const tools = await client.loadToolset('toolsetName');For more detailed instructions on using the Toolbox ADK SDK, see the project's README.
-
Install Toolbox Go SDK:
go get github.com/googleapis/mcp-toolbox-sdk-go -
Load tools:
package main import ( "github.com/googleapis/mcp-toolbox-sdk-go/core" "context" ) func main() { // Make sure to add the error checks // update the url to point to your server URL := "http://127.0.0.1:5000"; ctx := context.Background() client, err := core.NewToolboxClient(URL) // Framework agnostic tools tools, err := client.LoadToolset("toolsetName", ctx) }For more detailed instructions on using the Toolbox Go SDK, see the project's README.
-
Install Toolbox Go SDK:
go get github.com/googleapis/mcp-toolbox-sdk-go -
Load tools:
package main import ( "context" "encoding/json" "github.com/googleapis/mcp-toolbox-sdk-go/core" "github.com/tmc/langchaingo/llms" ) func main() { // Make sure to add the error checks // update the url to point to your server URL := "http://127.0.0.1:5000" ctx := context.Background() client, err := core.NewToolboxClient(URL) // Framework agnostic tool tool, err := client.LoadTool("toolName", ctx) // Fetch the tool's input schema inputschema, err := tool.InputSchema() var paramsSchema map[string]any _ = json.Unmarshal(inputschema, ¶msSchema) // Use this tool with LangChainGo langChainTool := llms.Tool{ Type: "function", Function: &llms.FunctionDefinition{ Name: tool.Name(), Description: tool.Description(), Parameters: paramsSchema, }, } }
-
Install Toolbox Go SDK:
go get github.com/googleapis/mcp-toolbox-sdk-go -
Load tools:
package main import ( "context" "log" "github.com/firebase/genkit/go/genkit" "github.com/googleapis/mcp-toolbox-sdk-go/core" "github.com/googleapis/mcp-toolbox-sdk-go/tbgenkit" ) func main() { // Make sure to add the error checks // Update the url to point to your server URL := "http://127.0.0.1:5000" ctx := context.Background() g := genkit.Init(ctx) client, err := core.NewToolboxClient(URL) // Framework agnostic tool tool, err := client.LoadTool("toolName", ctx) // Convert the tool using the tbgenkit package // Use this tool with Genkit Go genkitTool, err := tbgenkit.ToGenkitTool(tool, g) if err != nil { log.Fatalf("Failed to convert tool: %v\n", err) } log.Printf("Successfully converted tool: %s", genkitTool.Name()) }
-
Install Toolbox Go SDK:
go get github.com/googleapis/mcp-toolbox-sdk-go -
Load tools:
package main import ( "context" "encoding/json" "github.com/googleapis/mcp-toolbox-sdk-go/core" "google.golang.org/genai" ) func main() { // Make sure to add the error checks // Update the url to point to your server URL := "http://127.0.0.1:5000" ctx := context.Background() client, err := core.NewToolboxClient(URL) // Framework agnostic tool tool, err := client.LoadTool("toolName", ctx) // Fetch the tool's input schema inputschema, err := tool.InputSchema() var schema *genai.Schema _ = json.Unmarshal(inputschema, &schema) funcDeclaration := &genai.FunctionDeclaration{ Name: tool.Name(), Description: tool.Description(), Parameters: schema, } // Use this tool with Go GenAI genAITool := &genai.Tool{ FunctionDeclarations: []*genai.FunctionDeclaration{funcDeclaration}, } }
-
Install Toolbox Go SDK:
go get github.com/googleapis/mcp-toolbox-sdk-go -
Load tools:
package main import ( "context" "encoding/json" "github.com/googleapis/mcp-toolbox-sdk-go/core" openai "github.com/openai/openai-go" ) func main() { // Make sure to add the error checks // Update the url to point to your server URL := "http://127.0.0.1:5000" ctx := context.Background() client, err := core.NewToolboxClient(URL) // Framework agnostic tool tool, err := client.LoadTool("toolName", ctx) // Fetch the tool's input schema inputschema, err := tool.InputSchema() var paramsSchema openai.FunctionParameters _ = json.Unmarshal(inputschema, ¶msSchema) // Use this tool with OpenAI Go openAITool := openai.ChatCompletionToolParam{ Function: openai.FunctionDefinitionParam{ Name: tool.Name(), Description: openai.String(tool.Description()), Parameters: paramsSchema, }, } }
-
Install Toolbox Go SDK:
go get github.com/googleapis/mcp-toolbox-sdk-go -
Load tools:
package main import ( "github.com/googleapis/mcp-toolbox-sdk-go/tbadk" "context" ) func main() { // Make sure to add the error checks // Update the url to point to your server URL := "http://127.0.0.1:5000" ctx := context.Background() client, err := tbadk.NewToolboxClient(URL) if err != nil { return fmt.Sprintln("Could not start Toolbox Client", err) } // Use this tool with ADK Go tool, err := client.LoadTool("toolName", ctx) if err != nil { return fmt.Sprintln("Could not load Toolbox Tool", err) } }For more detailed instructions on using the Toolbox Go SDK, see the project's README.
Additional Features
Test tools with the Toolbox UI
To launch Toolbox's interactive UI, use the --ui flag. This allows you to test
tools and toolsets with features such as authorized parameters. To learn more,
visit Toolbox UI.
./toolbox --ui
Telemetry
Toolbox emits traces and metrics via OpenTelemetry. Use --telemetry-otlp=<endpoint>
to export to any OTLP-compatible backend like Google Cloud Monitoring, Agnost AI, or
others. See the telemetry docs for details.
Generate Agent Skills
The skills-generate command allows you to convert a toolset into an Agent Skill compatible with the Agent Skill specification. This is useful for distributing tools as portable skill packages.
toolbox --config tools.yaml skills-generate \
--name "my-skill" \
--toolset "my_toolset" \
--description "A skill containing multiple tools"
Once generated, you can install the skill into the Gemini CLI:
gemini skills install ./skills/my-skill
For more details, see the Generating Skills guide. To serve a skill you already have over MCP, see Serving Skills over MCP.
The repository also ships ready-to-use Agent Skills (e.g. maintainer workflows). See skills/ for the catalog and install instructions.
Versioning
MCP Toolbox for Databases follows Semantic Versioning.
The Public API includes the Toolbox Server (CLI, configuration manifests, and pre-built toolsets) and the Client SDKs.
- Major versions are incremented for breaking changes, such as incompatible CLI or manifest changes.
- Minor versions are incremented for new features, including modifications to pre-built toolsets or beta features.
- Patch versions are incremented for backward-compatible bug fixes.
For more details, including our Container Tagging Policy, see our Full Versioning Policy.
Contributing
Contributions are welcome. Please, see the CONTRIBUTING guide to get started.
For technical details on setting up a environment for developing on Toolbox itself, see the DEVELOPER guide.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See Contributor Code of Conduct for more information.
Community
Join our Discord community to connect with our developers!