Skip to main content
ClaudeWave
EN, English
googleapis / MCP Servers · Official registry

mcp-toolbox

MCP Toolbox for Databases is an open source MCP server for databases.

  • 16.7k stars
  • 1.8k forks
  • 400 open issues
  • Language: Go
  • License: Apache-2.0
  • updated

Install

local · npx
Claude Code CLI
claude mcp add mcp-toolbox -- npx -y @toolbox-sdk/server
  1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
  2. Replace any <placeholder> values with your API keys or paths.
  3. Restart Claude. The MCP server and its tools appear automatically.

Editor's note

MCP Toolbox for Databases is an open source MCP server written in Go that connects AI agents and MCP-compatible clients, including Claude Code and Claude Desktop via `claude_desktop_config.json`, directly to enterprise databases. It operates in two modes: a build-time mode offering prebuilt generic tools such as `list_tables` and `execute_sql` for immediate schema exploration and SQL querying, and a run-time custom tools framework for defining structured queries, semantic search, and NL2SQL capabilities in production agents. Supported databases span PostgreSQL, MySQL, BigQuery, Spanner, Firestore, MongoDB, Redis, Elasticsearch, CockroachDB, TiDB, ClickHouse, and Oracle, among others. Client SDKs are available for Python, JavaScript/TypeScript, Go, and Java, and the server integrates with LangChain, LlamaIndex, and Google Agent Development Kit in fewer than ten lines of code. A notable built-in feature is connection pooling combined with OpenTelemetry-based metrics and tracing, making it suited for platform engineers and AI application developers who need auditable, observable database access from LLM agents.

README

MCP Servers overview

Full README on GitHub

logo

MCP Toolbox for Databases

License: Apache
2.0 Docs Discord Medium

Python SDK JS/TS SDK Go SDK Java SDK

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:

  1. 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.

  2. 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: The genai-toolbox repository has been officially renamed to mcp-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?

  • 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.

  1. Add the following to your client's MCP configuration file (usually mcp.json or claude_desktop_config.json):

     {
       "mcpServers": {
         "toolbox-postgres": {
           "command": "npx",
           "args": [
             "-y",
             "@toolbox-sdk/server",
             "--prebuilt=postgres",
             "--stdio"
           ]
         }
       }
     }
  2. Set the appropriate environment variables to connect, see the Prebuilt Tools Reference.

When you run Toolbox with a --prebuilt= flag, you instantly get access to standard tools to interact with that database. You can also specify a specific toolset using the --prebuilt=/ 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."
Topics
agentagentsaibigqueryclickhousecockroachdbdatabaseelasticsearchfirestoregenaillmmcpmongodbmysqloraclepostgresqlredisserverspannertidb
Frequently asked

What people ask about mcp-toolbox

What is googleapis/mcp-toolbox?

googleapis/mcp-toolbox is mcp servers for the Claude AI ecosystem. MCP Toolbox for Databases is an open source MCP server for databases. It has 16.7k GitHub stars and its last recorded update is dated 2026-10-23.

How do I install mcp-toolbox?

You can install mcp-toolbox by cloning the repository (https://github.com/googleapis/mcp-toolbox) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is googleapis/mcp-toolbox safe to use?

Our security agent has analyzed googleapis/mcp-toolbox and assigned a Trust Score of 100/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains googleapis/mcp-toolbox?

googleapis/mcp-toolbox is maintained by googleapis. The last recorded GitHub activity is dated 2026-10-23, with 400 open issues.

Are there alternatives to mcp-toolbox?

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Maintain this repo? Show its Trust Score in your README

The badge shows this repository's current Trust Score and verdict, and links back to this page. It follows the catalogue data: nobody can buy or edit the score it displays.

ClaudeWave Trust Score for googleapis/mcp-toolbox
Markdown (README)
[![ClaudeWave Trust Score for googleapis/mcp-toolbox](https://claudewave.com/api/badge/googleapis-mcp-toolbox)](https://claudewave.com/en/repo/googleapis-mcp-toolbox)
HTML
<a href="https://claudewave.com/en/repo/googleapis-mcp-toolbox"><img src="https://claudewave.com/api/badge/googleapis-mcp-toolbox" alt="ClaudeWave Trust Score for googleapis/mcp-toolbox" width="320" height="64"></a>

What the badge means and how the score is computed

Alternatives

See all