Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MCP dbutils

MCP server by donghao1393 Verified · gh:donghao1393

MCP dbutils connects AI assistants to SQLite, MySQL, PostgreSQL and other databases through one unified YAML configuration. It is built for read-only data analysis and suits users who want AI help with their data without direct database access.

  • Score 77
  • 89 stars
  • MIT
  • Updated

Install MCP dbutils

Built from the published package, never by AI.

claude mcp add mcp-dbutils -- uvx mcp-dbutils

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MCP dbutils in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-dbutils block.

About

MCP dbutils is an MCP server that lets an AI assistant access several types of databases, including SQLite, MySQL and PostgreSQL, through one connection configuration stored in a single YAML file. The source describes it as a secure bridge between the AI and the database, so the AI can read and analyze data without direct database access. Operations are strictly read-only, and connections are isolated, made on demand and closed after automatic timeouts.

The server provides tools for listing connections and tables, describing table structure, retrieving DDL, indexes, statistics and constraints, running SELECT queries, and explaining and analyzing query performance. The source says it processes data locally, exposes minimal data and masks sensitive information such as passwords. It is aimed at businesses, startups and individual users who care about data protection and want AI-assisted data analysis.

Written from the project's README and checked against it.

Tools it gives your assistant

  • dbutils-list-connectionsLists configured database connections without showing sensitive values such as passwords.
  • dbutils-list-tablesLists all tables in a given database connection, grouped by database type.
  • dbutils-run-queryRuns read-only SELECT queries, including JOINs, GROUP BY and aggregate functions.
  • dbutils-describe-tableShows column names, data types, nullability, defaults and comments for a table.
  • dbutils-get-ddlReturns the full CREATE statement for a table, including columns, constraints and indexes.
  • dbutils-list-indexesLists indexes on a table with names, uniqueness, index method and included columns.
  • dbutils-get-statsReturns table statistics such as estimated row count, row length and data and index size.
  • dbutils-list-constraintsLists primary key, foreign key, unique and check constraints on a table.
  • dbutils-explain-queryReturns the execution plan for a SQL query, including access methods and estimated cost.
  • dbutils-get-performanceReturns connection performance metrics such as query count, average time and errors.

What you need

  • A YAML file with your database connection details
  • Access to the databases you want to connect

Try asking

  • List all the tables in my database.
  • What is the structure of the customers table?
  • Explain the execution plan for this SELECT query.

Good to know

  • Operations are strictly read-only.
  • The run-query tool accepts only SELECT statements.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to MCP dbutils

All alternatives →
Supabase supabase
97

Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.

AAA Local and remote 172k/wk
ArcadeDB MCP Server ArcadeData
94

ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.

AAA Local 1.3k
DBHubbytebase
94

Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.

AAA Local 343k/wk
MCP Toolbox for Databasesgoogleapis
94

MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.

AAA Local 17k
MCP Toolbox for Databasesgoogleapis
94

Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.

AAA Local 17k
mongodb-mcp-servermongodb-js
94

MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.

AAA Local 203k/wk

Compare with Supabase, ArcadeDB MCP Server or DBHub

MCP dbutils: common questions

Can the AI change data in my database?

The source says the server is strictly read-only and that the run-query tool accepts only SELECT statements.

Which databases does it support?

The source names SQLite, MySQL and PostgreSQL, and says the same interface works across them.

How are passwords handled?

The source says the list-connections tool hides sensitive information such as passwords and mentions credential protection.

How do I install MCP dbutils?

In Claude Code run claude mcp add mcp-dbutils -- uvx mcp-dbutils. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MCP dbutils the official server?

MCP dbutils is published by gh:donghao1393 from its verified domain in the official MCP Registry.

Is MCP dbutils free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is MCP dbutils safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to MCP dbutils?

Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.

Does MCP dbutils work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

MCP dbutils Install

Add to stack

Loading.