MCP Catalogs
首页mcp-dbutils screenshot

mcp-dbutils

by donghao1393·88·综合分 41

mcp-dbutils 是一个安全的 MCP 服务器,让 AI 能够以只读方式分析多种数据库的数据。

databasedeveloper-toolssecurity
14
Forks
14
活跃 Issue
12 个月前
最近提交
2 天前
收录于

概述

mcp-dbutils 在 AI 系统和数据库之间提供安全桥梁,允许模型在无需直接访问数据库的情况下分析数据。它通过统一配置支持 SQLite、MySQL、PostgreSQL 等多种数据库类型。该服务器采用安全优先的架构,只执行只读操作,保持连接隔离,并最小化数据暴露。用户可以浏览表、分析架构和执行 SQL 查询,同时确保数据保护和隐私安全。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:跨多种数据库类型的 AI 驱动数据分析
:企业环境中的安全数据库交互
:自动化数据库探索和架构分析
:此服务器真的是只读的吗?
:我可以同时连接多个数据库吗?

什么时候选它

当您需要安全地对多种数据库类型进行只读AI访问,而不希望凭据直接暴露给AI模型时,选择此MCP服务器。

什么时候不要选它

如果您需要数据库的写访问权限或需要执行SELECT查询之外的直接SQL操作功能,请避免使用此服务器。

此 server 暴露的工具

从 README 抽取出 11 个工具
  • dbutils-list-connections

    Lists all available database connections with details while hiding sensitive information.

  • dbutils-list-tables

    Lists all tables in a specified database connection with metadata.

  • dbutils-run-query

    Executes read-only SQL queries and returns structured results.

  • dbutils-describe-table

    Provides detailed table structure including column names and data types.

  • dbutils-get-ddl

    Retrieves the complete DDL statement for creating a specified table.

  • dbutils-list-indexes

    Lists all indexes on a specified table with their properties.

  • dbutils-get-stats

    Retrieves statistical information about a table including row count and size.

  • dbutils-list-constraints

    Lists all constraints on a table including primary keys and foreign keys.

  • dbutils-explain-query

    Provides the execution plan for an SQL query showing how it will be processed.

  • dbutils-get-performance

    Retrieves performance metrics for a database connection.

  • dbutils-analyze-query

    Analyzes SQL query performance with execution plan and optimization suggestions.

可对比工具

db-mcpsql-mcppostgres-mcpmysql-mcp

安装

安装

使用 Smithery(推荐)

smithery install @donghao1393/mcp-dbutils

使用 uvx

uvx mcp-dbutils

使用 Docker

docker run -it donghao1393/mcp-dbutils

Claude Desktop 配置

添加到您的 Claude Desktop 配置中:

{
  "mcpServers": {
    "dbutils": {
      "command": "mcp-dbutils",
      "args": []
    }
  }
}

FAQ

此服务器真的是只读的吗?
是的,mcp-dbutils 只支持读操作(SELECT语句)。它会阻止任何写入操作以确保数据安全。
我可以同时连接多个数据库吗?
是的,该服务器支持通过单个 YAML 文件配置的多个数据库连接。

mcp-dbutils 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。