Database-mcp Server

The most complete MCP server for databases. 33 tools across 3 engines (PostgreSQL, MySQL, SQLite), with connection groups, named connection management, automatic rollback, dump/restore, schema…

Local serverstdioMIT

What is the Database-mcp Server?

Database MCP is an MCP project maintained in the cocaxcode/database-mcp repository. The maintainer describes its purpose as “The most complete MCP server for databases. 33 tools across 3 engines (PostgreSQL, MySQL, SQLite), with connection groups, named connection management, automatic rollback, dump/restore, schema…”. Read the project documentation for the complete scope.

Installation

The documented npm package is @cocaxcode/database-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
CategoryTools
Connectionsconn_create conn_list conn_get conn_set conn_switch conn_rename conn_delete conn_duplicate conn_test conn_export conn_import
Groupsconn_group_create conn_group_list conn_group_delete conn_group_add_scope conn_group_remove_scope conn_set_default conn_set_group
Schemasearch_schema
Queriesexecute_query execute_mutation explain_query
Dumpdb_dump db_restore db_dump_list
Rollbackrollback_list rollback_apply
Historyhistory_list history_clear
Configconfig_get config_set

How to install the Database-mcp Server

{
  "mcpServers": {
    "database": {
      "command": "npx",
      "args": [
        "-y",
        "@cocaxcode/database-mcp@latest"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.