数据库 · 开发者工具

MCP Dbutils logo

MCP Dbutils

donghao1393/mcp-dbutils

MCP Database Utilities 是一个多功能的 MCP 服务,它使您的 AI 能够通过统一的连接配置安全地访问各种类型的数据库(SQLite、MySQL、PostgreSQL 等)进行数据分析。

安装

见仓库说明

安装步骤请参阅仓库 README。

查看 README
GitHub 星标
61
分类
数据库, 开发者工具
许可证
MIT
更新于
2026年10月6日

功能特点

  • 安全优先:严格只读操作,无直接数据库访问,隔离连接,按需连接,自动超时

  • 隐私保障:本地处理,最小数据暴露,凭证保护,敏感数据屏蔽

  • 多数据库支持:使用相同的接口连接 SQLite、MySQL、PostgreSQL

  • 简单配置:所有数据库连接使用单个 YAML 文件

  • 高级功能:表格浏览、架构分析和查询执行

工具(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.

本页信息摘自该项目的 README。 查看 README

相关 MCP 服务器

更多服务器
Supabase MCP logo

Supabase MCP

supabase-community/supabase-mcp

1.3k

Supabase MCP Server是一个连接Supabase项目与AI助手的工具,通过Model Context Protocol(MCP)标准化大型语言模型(LLMs)与外部服务的交互,实现数据库管理、配置获取和数据查询等功能。

数据库
Genai Toolbox logo

Genai Toolbox

googleapis/genai-toolbox

769

MCP Toolbox for Databases是一个开源数据库MCP服务器,专注于企业级和生产质量,简化工具开发,提供连接池、认证等复杂功能。

数据库
Supabase MCP Server logo

Supabase MCP Server

alexander-zuev/supabase-mcp-server

677

Supabase MCP服务器是一个开源工具,允许IDE安全执行SQL、管理模式变更、调用Supabase管理API和使用Auth Admin SDK,内置安全控制。

数据库
Awesome MCP List logo

Awesome MCP List

MobinX/awesome-mcp-list

645

这是一个持续更新的MCP服务器精选列表,涵盖了浏览器控制、艺术与文化、云平台、命令行、通信、客户数据平台、数据库、开发者工具、数据科学工具、文件系统、金融与金融科技、游戏、知识与记忆、位置服务、营销、监控、搜索和实用工具等多个类别。每个项目都附带了GitHub链接和星标数量,方便用户快速了解和使用。

数据库
PostgreSQL Model Context Protocol (PG MCP) Server logo

PostgreSQL Model Context Protocol (PG MCP) Server

stuzero/pg-mcp-server

440

PG-MCP是一个为PostgreSQL数据库设计的模型上下文协议服务器,提供AI代理发现、连接、查询和理解数据库的API,支持多数据库连接、丰富的目录信息和查询解释功能。

数据库
dbhub logo

dbhub

bytebase/dbhub

332

DBHub是一个实现模型上下文协议(MCP)的通用数据库网关,支持多种数据库连接和操作。

数据库