mcp-multi-db

v1.1.1
mcp-multi-db Checked 2 days ago Published 22 days ago

Read-only MCP server for PostgreSQL, MySQL, and SQLite — one server, one config, one set of tools across multiple databases.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_databases

List all configured database connections (id, type, label, description, and policy when one is set: which tools are enabled, row cap, whether tables are restricted, which columns are redacted). Call this first to discover which database_id to use.

list_tables

List tables and views in a configured database.

ParameterTypeDescription
database_id *stringDatabase id from list_databases
schemastringSchema name (Postgres/MySQL). Ignored for SQLite.

describe_table

Describe columns for a table in a configured database.

ParameterTypeDescription
database_id *stringDatabase id from list_databases
table *stringTable name
schemastringSchema name (Postgres/MySQL). Ignored for SQLite.

run_query

Execute a read-only SQL query (SELECT, WITH, EXPLAIN) on a configured database. Writes are blocked. If the database has a policy, queries reading tables outside it are refused with the reason, and redacted columns come back as "[redacted]" (listed in `redacted`).

ParameterTypeDescription
database_id *stringDatabase id from list_databases
sql *stringRead-only SQL query
limitintegerMax rows to return. Defaults to 100 with a ceiling of 1000 unless configured; each database's effective default and ceiling are in list_databases (rowLimits). Larger values are clamped to the ceiling.