genai-toolbox
MCP Toolbox for Databases is an open source MCP server for databases.
claude mcp add --transport stdio googleapis-genai-toolbox npx -y @toolbox-sdk/server \ --env TOOLS_FILE="path/to/tools.yaml"
How to use
The MCP Toolbox for Databases (GenAI Toolbox) provides a server that exposes a suite of database-oriented GenAI tools and integrations. It acts as a bridge between your agents or copilots and your data sources, handling concerns like connection management, authentication, and tool orchestration so your AI workflows can focus on generating useful data-driven results. Once running, you can load a tools configuration (tools.yaml) that defines the available database tools, prompts, and toolsets, enabling agents to query schemas, generate SQL, manage schemas, and run data tasks in a structured, observable way.
To use it, start the toolbox server (via npx as shown in the setup) and supply your tools.yaml configuration. The server will expose the defined tools to your MCP-based agents or Gemini/IDEs integrations, allowing natural language prompts to be translated into database actions, code generation, and data retrieval. You can integrate Toolbox with Gemini CLI extensions or other MCP clients to orchestrate complex tool sequences, manage authentication, and monitor tool performance through built-in observability hooks.
How to install
Prerequisites:
- Node.js and npm installed on your system (recommended latest LTS).
- Git installed (optional for cloning booklets or templates).
Install and run:
- Install Node.js and npm from https://nodejs.org if not already installed.
- Run the MCP Toolbox server using NPX (no persistent install required):
npx -y @toolbox-sdk/server --tools-file tools.yaml
- If you prefer a persistent installation, you can install the package locally or globally and run the server from a script. For example:
# Install locally
npm install @toolbox-sdk/server
# Run (adjust path to your local node_modules if needed)
npx @toolbox-sdk/server --tools-file tools.yaml
- Prepare your tools.yaml configuration that defines Sources, Tools, Toolsets, and Prompts, as described in the Toolbox documentation. Then point the server to that file with --tools-file or via the corresponding environment/config mechanism supported by your deployment method.
Additional notes
Notes and tips:
- The toolbox is designed to be used in non-production experiments via npx; for production deployments, set up a proper installation and run as a service.
- If you’re deploying in environments without interactive prompts, supply a tools.yaml via the --tools-file flag or the TOOLS_FILE environment variable.
- Ensure database connection credentials and network access are configured securely (use environment-based secrets management in production).
- Check the Toolbox docs for details on configuring Sources (databases), Tools (specific actions like query generation, schema introspection), Toolsets (groupings of tools), and Prompts (instructions to control AI behavior).
- Monitor observability and metrics integration (OpenTelemetry) as part of your deployment to keep track of tool performance and reliability.
Related MCP Servers
mindsdb
Query Engine for AI Analytics: Build self-reasoning agents across all your live data
bytebot
Bytebot is a self-hosted AI desktop agent that automates computer tasks through natural language commands, operating within a containerized Linux desktop environment.
koog
Koog is the official Kotlin framework for building predictable, fault-tolerant and enterprise-ready AI agents across all platforms – from backend services to Android and iOS, JVM, and even in-browser environments. Koog is based on our AI products expertise and provides proven solutions for complex LLM and AI problems
easy-vibe
vibe coding from 0 to 1 | vibecoding 零基础教程 | 产品原型、AI 能力集成、前后端开发、多平台应用开发教程
sdk-typescript
A model-driven approach to building AI agents in just a few lines of code.
agent-builder
An example agent demonstrating streaming, tool use, and interactivity from your terminal. This agent builder can help you to build your own agents and tools.