mcpdirectory.dev
9,129 servers · updated 23 Sept

Db MCP server

community Active last commit 22 d
{
  "mcpServers": {
    "haymon-db": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/haymon-ai/dbmcp:0.13.2"
      ],
      "env": {
        "DB_SSL_KEY": "<db_ssl_key>"
      }
    }
  }
}
file .mcp.json (in your project root)version 0.13.2

What it does

An MCP server that connects AI assistants to MySQL, MariaDB, PostgreSQL, and SQLite databases. It provides schema discovery, data access, and DDL operations with optional read-only mode and PII redaction capabilities. Runs as a single binary with stdio or HTTP transport.

  • Query a database schema to understand table structure and relationships before writing data access queries.
  • Execute read-only queries against a production database to fetch data for analysis or reporting without write access.
  • Manage database objects like creating or dropping databases and tables through an AI assistant interface.

Tools this server exposes

ToolDoes
listDatabasesList all databases available in the connected database server.
listTablesList all tables in the current database.
listViewsList all views in the current database.
listTriggersList all triggers in the current database.
listFunctionsList all functions in the current database.
listProceduresList all procedures in the current database.
listMaterializedViewsList all materialized views in the current database.
readQueryExecute a read-only query against the database.
writeQueryExecute a write query against the database (disabled in read-only mode).
createDatabaseCreate a new database (disabled in read-only mode).
dropDatabaseDrop an existing database (disabled in read-only mode).
dropTableDrop an existing table (disabled in read-only mode).
explainQueryExplain the execution plan for a query.

Before you enable it

An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.