mcp-multi-db
v1.1.1Read-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.
| Parameter | Type | Description |
|---|---|---|
database_id * | string | Database id from list_databases |
schema | string | Schema name (Postgres/MySQL). Ignored for SQLite. |
describe_table
Describe columns for a table in a configured database.
| Parameter | Type | Description |
|---|---|---|
database_id * | string | Database id from list_databases |
table * | string | Table name |
schema | string | Schema 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`).
| Parameter | Type | Description |
|---|---|---|
database_id * | string | Database id from list_databases |
sql * | string | Read-only SQL query |
limit | integer | Max 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. |