mcp-dbutils
DButils is an all-in-one MCP service that enables your AI to do data analysis by accessing versatile types of database (sqlite, mysql, postgres, and more with ssl, etc.) within a unified connection configuration in a secured way.
Overview
MCP Database Utilities is a multifunctional MCP service that enables your AI to securely access various types of databases (SQLite, MySQL, PostgreSQL, etc.) for data analysis through a unified connection configuration.
To use MCP Database Utilities, install it via one of the methods (uvx, Docker, or Smithery), create a configuration file with your database connection details, and integrate it with your AI client.
- Secure read-only access to databases - Support for multiple database types with a single interface - Simple configuration using a YAML file - Advanced features like table browsing and query execution
- Analyzing data across multiple databases
- Executing SQL queries securely without direct database access
- Integrating with AI systems for enhanced data insights
Add to your AI client
Use these steps to connect mcp-dbutils in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-dbutils-donghao1393": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-dbutils-donghao1393"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-dbutils-donghao1393": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-dbutils-donghao1393"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-dbutils-donghao1393": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-dbutils-donghao1393"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-dbutils-donghao1393": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-dbutils-donghao1393"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-dbutils-donghao1393": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-dbutils-donghao1393"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-dbutils-donghao1393": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-dbutils-donghao1393"
]
}
}
}FAQ
Is MCP Database Utilities secure?
Yes! It employs a security-first architecture with strict read-only access and no direct database connections.
What databases are supported?
It supports SQLite, MySQL, PostgreSQL, and more.
How do I install MCP Database Utilities?
You can install it using uvx, Docker, or Smithery, following the installation instructions provided in the documentation.