Skip to Content
dbmcp

Tools

The MCP tools dbmcp exposes and where each is available

exposes tools through the MCP protocol. The available tool set depends on the database backend and read-only setting. AI assistants call these tools to explore and query your database.

Tool Availability

ToolMySQL / MariaDBPostgreSQLSQLiteBlocked when read-only
listDatabasesYesYesNoNo
listTablesYesYesYesNo
listViewsYesYesYesNo
listTriggersYesYesYesNo
listFunctionsYesYesNoNo
listProceduresYesYesNoNo
listMaterializedViewsNoYesNoNo
readQueryYesYesYesNo
writeQueryYesYesYesYes
createDatabaseYesYesNoYes
dropDatabaseYesYesNoYes
dropTableYesYesYesYes
explainQueryYesYesYesNo

SQLite is file-based with a single database, so listDatabases, createDatabase, dropDatabase, listFunctions, listProcedures, and listMaterializedViews are not applicable. listMaterializedViews is PostgreSQL-only — MySQL and MariaDB do not have a materialized-view feature.

Pinning a database with database.name / DBMCP_DB_NAME hides listDatabases, createDatabase, and dropDatabase on MySQL, MariaDB, and PostgreSQL: the server then works with that one database only.

All tools

On this page