MCP Toolbox for Databases logo

MCP Toolbox for Databases

Connects MCP-compatible agents and IDEs to databases with prebuilt or custom tools for querying, schema discovery, and code generation.

Install MCP Toolbox for Databases

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for MCP Toolbox for Databases, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

MCP Toolbox for Databases connects MCP-compatible agents, IDEs, and applications to enterprise databases. It provides prebuilt tools such as `list_tables` and `execute_sql`, or lets developers define custom tools with structured queries, semantic search, and NL2SQL capabilities. Run it through an MCP client using a prebuilt database configuration or a `tools.yaml` file, with support for stdio, Docker, and binary deployments. Reach for it when an agent needs controlled database access, schema exploration, or database-aware development workflows.

Use cases

  • Query enterprise databases from an MCP-compatible IDE
  • Explore database schemas with an AI agent
  • Define restricted SQL tools for production agents
  • Group database tools for different applications
  • Generate database-aware code from connected data

Key features

  • Prebuilt database tools
  • Custom YAML-defined tools
  • Structured queries and semantic search
  • Database-specific toolsets
  • Connection pooling and integrated authentication
  • OpenTelemetry metrics and tracing

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

13/13 checks healthy over the last 45d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars16kStargazers on the source repository.
npm downloads330kPackage downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Toolbox for Databases works

What MCP Toolbox for Databases does

MCP Toolbox for Databases exposes database operations to AI agents through the Model Context Protocol. Its ready-to-use configurations provide generic tools for exploring schemas, querying data, and generating code in MCP-compatible clients and IDEs. Common prebuilt tools include list_tables and execute_sql.

The server supports Google Cloud data services such as AlloyDB, BigQuery, Cloud SQL, Spanner, Firestore, and Knowledge Catalog. It also supports PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, MongoDB, Redis, Elasticsearch, CockroachDB, ClickHouse, Couchbase, Neo4j, Snowflake, Trino, and other databases.

It also serves as a framework for application-specific tools. Developers can define restricted access, structured queries, semantic search, and NL2SQL behavior instead of exposing only generic database operations.

How it works

For a quick setup, start the server with a --prebuilt=<database> option. This loads the standard tools for the selected database. A toolset can be selected with a path such as --prebuilt=postgres/data when only a particular group of tools is needed.

For custom behavior, Toolbox reads a tools.yaml configuration. Sources describe the databases available to the server, tools define agent actions and their parameters, toolsets group tools for different agents or applications, and prompts define reusable interactions with language models. A SQL tool can, for example, accept a string parameter and run a parameterized query against a configured PostgreSQL source.

MCP clients connect to the server through its MCP configuration. Toolbox also provides Python, JavaScript/TypeScript, Go, and Java SDKs for integrating its tools into applications and agent frameworks such as ADK, LangChain, and LlamaIndex.

Setup and configuration

A client configuration can launch the prebuilt server with npx, the @toolbox-sdk/server package, a selected database, and the --stdio transport. The database-specific connection settings are supplied according to the selected prebuilt configuration.

Custom deployments use one or more YAML files. Pass the desired file with --config tools.yaml. The configuration can contain source definitions with connection details, tool definitions with SQL or other actions, toolsets, and prompts. Toolbox can also be run using Docker or compiled binaries.

Tools and capabilities

  • Prebuilt database tools for schema inspection and SQL execution
  • Database-specific toolsets that can be loaded independently
  • Custom tools backed by predefined queries and application logic
  • Structured query, restricted-access, semantic-search, and NL2SQL patterns
  • Connection pooling and integrated authentication
  • OpenTelemetry metrics and tracing
  • SDKs for Python, JavaScript/TypeScript, Go, and Java

Limitations and notes

Available tools depend on the selected database and toolset. Generic prebuilt access and custom tools use different configuration paths: prebuilt tools are selected with command-line options, while custom tools are described in YAML. Database connection settings and required credentials must be configured for the chosen source.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Toolbox for Databases

MCP Toolbox for Databases is an MCP server that connects AI agents, IDEs, and applications to enterprise databases. Its main tools include `list_tables` for schema exploration and `execute_sql` for queries, alongside custom tools for structured queries, semantic search, and NL2SQL workflows.

Install it through an MCP client configuration using `npx` and `@toolbox-sdk/server`, then select a database with `--prebuilt=<database>` and use `--stdio`. Docker and binary execution methods are also available.

MCP Toolbox for Databases supports Google Cloud services including AlloyDB, BigQuery, Cloud SQL, Spanner, Firestore, and Knowledge Catalog, along with PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, MongoDB, Redis, Elasticsearch, and others.

Yes. Define sources, tools, toolsets, and prompts in a `tools.yaml` file. Custom tools can implement predefined queries, structured parameters, restricted access, semantic search, and NL2SQL behavior.

Yes. It works with MCP-compatible IDEs and clients, provided Cursor is configured to launch the server through its MCP configuration. The standard setup uses the server command, a selected prebuilt database, and the stdio transport.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Toolbox for Databases AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-toolbox-for-databases?style=directory)](https://allmcps.com/mcp/mcp-toolbox-for-databases)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-toolbox-for-databases"><img src="https://allmcps.com/api/badge/mcp-toolbox-for-databases?style=directory" alt="MCP Toolbox for Databases on AllMCPs" /></a>