MCP Toolbox for Databases

Google's open-source MCP server for databases: ready tools for Postgres, MySQL, BigQuery, Spanner and more, plus custom tools in tools.yaml

  • 16,749 ★ on the repository
  • Last commit
  • Apache-2.0
MCP serverOfficialEditors’ pick

Broad access

Why this level

  • Can run arbitrary SQL against the connected database
  • Handles database credentials
All reasons and checks

googleapis/mcp-toolbox

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add mcp/mcp-toolbox-for-databases

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • Can run arbitrary SQL against the connected database
  • Handles database credentials

This is third-party code. Review the repository files before installing.

What it does

Toolbox connects an agent to a database in two ways. With --prebuilt you get standard tools such as list_tables and execute_sql for the chosen database, handy for exploring schemas and writing code. In the second mode tools.yaml defines sources, specific queries, toolsets, prompts and resources so the agent gets only approved operations. The server handles connection pooling, IAM auth and OpenTelemetry tracing, and there are SDKs for ADK, LangChain and LlamaIndex.

Who it is for. For developers and analysts who need agent access to databases, including Google Cloud ones.

Good fit when

  • You want the agent to explore a database schema and write queries
  • You need a production agent limited to predefined queries
  • You work with AlloyDB, BigQuery, Cloud SQL or Spanner

Not a fit when

  • The agent must not run arbitrary SQL and you have no time to define tools by hand
  • You need to work with files rather than a database

Example request

List the tables in the database and write a query that counts orders by month

MCP

Transport
stdio, http
Authentication
not required

Limitations

Database connection settings are passed via environment variables; the set depends on the database and is listed in the prebuilt configs reference. Prebuilt tools include execute_sql, so use a read-only account or custom tools on production databases. Local databases need no VPN; Google Cloud database availability from Russia is not guaranteed. The authors consider npx less reliable than the binary or container.

How to disable. Delete the toolbox block from the client's MCP config and stop the toolbox process or container.

FAQ

Did the project have another name?

Yes, Gen AI Toolbox for Databases; the googleapis/genai-toolbox repository was renamed to mcp-toolbox.

Which databases are supported?

Google Cloud databases plus PostgreSQL, MySQL, SQL Server, Oracle, MongoDB, Redis, ClickHouse, Neo4j, Snowflake and more.

Discussion

No questions or reviews yet.

pgEdge Postgres MCP

pgEdge Postgres MCP Server

Postgres MCP in Go with read-mode queries, EXPLAIN plans, semantic search, several databases and a ready chat client and web interface

MCP serverExtended access241Repository stars

A Go MCP server that lets an agent ask a PostgreSQL database questions in plain language and returns the query result

MCP serverExtended access540Repository stars

Postgres MCP (Microsoft)

Postgres MCP Server (Microsoft)

Postgres MCP from Microsoft: connection profiles with passwords in the OS keyring, Entra ID sign-in for Azure, queries, schema, CSV and server metrics

MCP serverBroad access68Repository stars

A Go MCP server and REST API for databases: PostgreSQL, MySQL, ClickHouse, Snowflake, BigQuery and more, with personal data masking and a cache

MCP serverBroad access549Repository stars

A Python MCP server for MySQL: listing tables, reading data, running SQL and inspecting schema through a controlled interface

MCP serverBroad access1.4KRepository stars

An MCP server for PostgreSQL with several databases at once, table descriptions from the catalog, PostGIS and pgvector hints and query plans

MCP serverExtended access540Repository stars

Comparison with similar tools

Entries that share the main search query, and how they differ.

EntryOfficialAuthenticationRepository starsMain difference
MCP Toolbox for Databases (this entry)yesnot required16,749
Anyquerynokey is optional1,787a SQLite-based SQL engine with plugins for apps
CentralMind Gatewaynokey is optional549a Go MCP server and REST API for databases

README in short

The README explains the two modes: prebuilt tools and the custom tools framework. It gives an MCP config example for Postgres and walks through tools.yaml sections. It covers installation via binary, container, Homebrew, go install and Gemini CLI extensions, plus SDK integration. Apache-2.0 licensed.

README badge

Report a problem

Foxx AIMCP Toolbox for Databases
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.