mcp-dbutils
by donghao1393·★ 88·综合分 41
mcp-dbutils 是一个安全的 MCP 服务器,让 AI 能够以只读方式分析多种数据库的数据。
概述
mcp-dbutils 在 AI 系统和数据库之间提供安全桥梁,允许模型在无需直接访问数据库的情况下分析数据。它通过统一配置支持 SQLite、MySQL、PostgreSQL 等多种数据库类型。该服务器采用安全优先的架构,只执行只读操作,保持连接隔离,并最小化数据暴露。用户可以浏览表、分析架构和执行 SQL 查询,同时确保数据保护和隐私安全。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要安全地对多种数据库类型进行只读AI访问,而不希望凭据直接暴露给AI模型时,选择此MCP服务器。
什么时候不要选它
如果您需要数据库的写访问权限或需要执行SELECT查询之外的直接SQL操作功能,请避免使用此服务器。
此 server 暴露的工具
从 README 抽取出 11 个工具dbutils-list-connectionsLists all available database connections with details while hiding sensitive information.
dbutils-list-tablesLists all tables in a specified database connection with metadata.
dbutils-run-queryExecutes read-only SQL queries and returns structured results.
dbutils-describe-tableProvides detailed table structure including column names and data types.
dbutils-get-ddlRetrieves the complete DDL statement for creating a specified table.
dbutils-list-indexesLists all indexes on a specified table with their properties.
dbutils-get-statsRetrieves statistical information about a table including row count and size.
dbutils-list-constraintsLists all constraints on a table including primary keys and foreign keys.
dbutils-explain-queryProvides the execution plan for an SQL query showing how it will be processed.
dbutils-get-performanceRetrieves performance metrics for a database connection.
dbutils-analyze-queryAnalyzes SQL query performance with execution plan and optimization suggestions.
可对比工具
安装
安装
使用 Smithery(推荐)
smithery install @donghao1393/mcp-dbutils使用 uvx
uvx mcp-dbutils使用 Docker
docker run -it donghao1393/mcp-dbutilsClaude Desktop 配置
添加到您的 Claude Desktop 配置中:
{
"mcpServers": {
"dbutils": {
"command": "mcp-dbutils",
"args": []
}
}
}FAQ
- 此服务器真的是只读的吗?
- 是的,mcp-dbutils 只支持读操作(SELECT语句)。它会阻止任何写入操作以确保数据安全。
- 我可以同时连接多个数据库吗?
- 是的,该服务器支持通过单个 YAML 文件配置的多个数据库连接。
mcp-dbutils 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。