GM

googleapis/mcp-toolbox

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1.7万 stars 1786 forks 质量 90 趋势 61Apache-2.0

MCP 数据库工具箱是一个开源的数据库 MCP 服务器。

概览

MCP 数据库工具箱是一款开源的模型上下文协议(MCP)服务器,将您的 AI 代理、IDE 和应用程序直接连接到企业数据库。 它提供:1. 使用我们预构建的通用工具,将Gemini CLI、Google Antigravity、Claude Code、Codex或其他MCP客户端即时连接到您的数据库。与您的数据对话,探索模式,生成代码而无需编写模板。2. 构建一个强大的框架,为您的生产代理构建专门且高度安全的AI工具。安全便捷地定义结构化查询、语义搜索和NL2SQL功能。 本README提供了简要概述。详见完整文档。 genai-toolbox 仓库已正式更名为 mcp-toolbox。为了确保本地环境反映新名称,你可以更新远程:git remote set-url origin https://github.com/googleapis/mcp-toolbox.git 该解决方案最初名为“数据库生成式人工智能工具箱”(GitHub)。

概述(AI 翻译)

MCP 数据库工具箱是一款开源的模型上下文协议(MCP)服务器,将您的 AI 代理、IDE 和应用程序直接连接到企业数据库。

它有双重作用:

  1. 现成可用的MCP服务器(构建时间): 使用我们的预建通用工具,即时将Gemini CLI、Google Antigravity、Claude Code、Codex或其他MCP客户端连接到您的数据库。与您的数据对话,探索模式,生成代码,无需编写样板代码。
  2. 自定义工具框架(运行时): 一个强大的框架,用于为您的生产代理构建专业且高度安全的AI工具。安全便捷地定义结构化查询、语义搜索和NL2SQL功能。

本README提供了简要概述。详见完整文档。

[!重要] 仓库名称更新: genai-toolbox 仓库已正式更名为 mcp-toolbox。为了确保本地环境反映新名称,您可以更新远程设备: git remote set-url origin https://github.com/googleapis/mcp-toolbox.git

[!注] 这个解决方案最初名为“Gen AI Toolbox for Databases”(GitHub)。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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.

在 GitHub 查看完整 README

安装

npx -y @toolbox-sdk/server --prebuilt=postgres --stdio
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "toolbox-postgres": { "command": "npx", "args": [ "-y", "@toolbox-sdk/server", "--prebuilt=postgres", "--stdio" ] } } }