Database · Developer Tools

MCP Dbutils logo

MCP Dbutils

donghao1393/mcp-dbutils

MCP Database Utilities is an all-in-one MCP service that enables your AI to do data analysis by accessing versatile types of database (SQLite, MySQL, PostgreSQL, and more) within a unified connection configuration in a safe way.

Install

See repository

Setup steps are in the repository README.

Open README
GitHub stars
61
Category
Database, Developer Tools
License
MIT
Updated
Oct 6, 2026

About MCP Dbutils

Think of it as a secure bridge between AI systems and your databases, allowing AI to read and analyze your data without direct database access or risking data modifications.

Features

  • Security First: Strictly read-only operations, no direct database access, isolated connections, on-demand connectivity, automatic timeouts

  • Privacy Safeguards: Local processing, minimal data exposure, credential protection, sensitive data masking

  • Multiple Database Support: Connect to SQLite, MySQL, PostgreSQL with the same interface

  • Simple Configuration: Single YAML file for all your database connections

  • Advanced Capabilities: Table exploration, schema analysis, and query execution

Tools (11)

  • dbutils-list-connections

    Lists all available database connections with detailed information including database type, host, port, and database name, while hiding sensitive information…

  • dbutils-list-tables

    Lists all tables in the specified database connection with table names, URIs, and available descriptions, grouped by database type for easy identification.

  • dbutils-run-query

    Executes read-only SQL queries (SELECT only) with support for complex queries including JOINs, GROUP BY, and aggregate functions, returning structured results…

  • dbutils-describe-table

    Provides detailed information about a table's structure, including column names, data types, nullability, default values, and comments in an easy-to-read…

  • dbutils-get-ddl

    Retrieves the complete DDL (Data Definition Language) statement for creating the specified table, including all column definitions, constraints, and indexes.

  • dbutils-list-indexes

    Lists all indexes on the specified table, including index names, types (unique/non-unique), index methods, and included columns, grouped by index name.

  • dbutils-get-stats

    Retrieves statistical information about the table, including estimated row count, average row length, data size, and index size.

  • dbutils-list-constraints

    Lists all constraints on the table, including primary keys, foreign keys, unique constraints, and check constraints, with referenced tables and columns for…

  • dbutils-explain-query

    Provides the execution plan for a SQL query, showing how the database engine will process the query, including access methods, join types, and estimated costs.

  • dbutils-get-performance

    Retrieves performance metrics for the database connection, including query count, average execution time, memory usage, and error statistics.

  • dbutils-analyze-query

    Analyzes the performance characteristics of a SQL query, providing execution plan, actual execution time, and specific optimization recommendations.

Details on this page are taken from the project's README. Open README

Related MCP servers

More servers
Supabase MCP logo

Supabase MCP

supabase-community/supabase-mcp

1.3k

The Model Context Protocol (MCP) standardizes how Large Language Models (LLMs) talk to external services like Supabase. It connects AI assistants directly with your Supabase project and allows them to perform tasks like managing tables, fetching config, and querying data. See the full list of tools.

Database
Genai Toolbox logo

Genai Toolbox

googleapis/genai-toolbox

769

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.

Database
Supabase MCP Server logo

Supabase MCP Server

alexander-zuev/supabase-mcp-server

677

Query MCP is an open-source MCP server that lets your IDE safely run SQL, manage schema changes, call the Supabase Management API, and use Auth Admin SDK — all with built-in safety controls.

Database
Awesome MCP List logo

Awesome MCP List

MobinX/awesome-mcp-list

645

This is a continuously updated curated list of MCP servers, covering categories such as browser control, arts and culture, cloud platforms, command line, communication, customer data platforms, databases, developer tools, data science tools, file systems, finance and fintech, gaming, knowledge and memory, location services, marketing, monitoring, search and utilities. Each project includes a GitHub link and star count for quick reference and use.

Database
PostgreSQL Model Context Protocol (PG MCP) Server logo

PostgreSQL Model Context Protocol (PG MCP) Server

stuzero/pg-mcp-server

440

PG-MCP is a server implementation of the Model Context Protocol for PostgreSQL databases. It provides a comprehensive API for AI agents to discover, connect to, query, and understand PostgreSQL databases through MCP's resource-oriented architecture.

Database
dbhub logo

dbhub

bytebase/dbhub

332

[!NOTE] If you need an enterprise-level database MCP server with built-in guardrails like approval flow, access control, data masking, and audit logging beyond what DBHub offers, check out Bytebase.

Database