Read-only MCP access to SQLite, PostgreSQL, and MySQL with schema discovery, query safeguards, privacy controls, and index analysis.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Dbridge MCP.
list_tablesList every table in the database.
describe_tableReturn a table's columns, primary key, foreign keys, and row-count estimate.
sample_tablePreview the first rows of a table (`json`/`csv`/`markdown`).
count_rowsReturn the exact row count of a table.
run_queryRun a single read-only `SELECT` / `WITH` and return rows as `json`, `csv`, or `markdown`.
explain_queryReturn a query's plan and estimated cost without running it.
ugurcl/dbridge-mcp MCP server gives an MCP-compatible client a guarded, read-only view of a SQL database. It supports SQLite, PostgreSQL, and MySQL/MariaDB, using the connection argument to determine which engine to use. A file path selects SQLite, while postgres://, postgresql://, and mysql:// connection strings select the corresponding network database.
The server is suited to natural-language data questions because the agent can first inspect the available schema and then produce a query for the userβs request. It also exposes database metadata and performance information for tasks that go beyond retrieving rows.
Schema discovery is available through table listing, table descriptions, and a schema resource. Query execution accepts one SELECT or WITH statement and can format results as JSON, CSV, or Markdown. Query plans can be inspected without executing the query, while row counts, samples, column statistics, index information, and recorded slow statements support analysis and troubleshooting.
ugurcl/dbridge-mcp MCP server applies multiple restrictions around database access. The SQL guard rejects writes, DDL, and data-modifying common table expressions. Queries use read-only database access, and PostgreSQL and MySQL queries also run in read-only transactions. Row limits still apply when a submitted query contains a larger LIMIT. PostgreSQL and MySQL queries have per-query timeouts, and expensive queries can be rejected based on estimated cost.
Column privacy can be configured by hiding columns from the model or masking their values while keeping them available for querying. Rate limits and a capped connection pool further limit request volume and concurrent database use.
The package requires Node.js 22.5 or newer. SQLite uses Nodeβs built-in node:sqlite, so the documented npm runner does not require a native compilation step. The published package can be started with npx -y dbridge-mcp followed by a database path or connection string.
A configuration file can be supplied through the DBRIDGE_CONFIG environment variable. The README shows this variable in Claude Desktop, Claude Code, and OpenCode configurations. MCP clients start the process as a subprocess; examples are provided for Claude Desktop, Cursor, Windsurf, and Claude Code. Docker usage is also documented, including read-only mounting of a configuration file.
The available tools include:
list_tables, describe_table, sample_table, and count_rows for schema and table inspection.run_query for one read-only query with selectable output formatting.explain_query for a plan and estimated cost without execution.column_stats for distinct-value counts and null fractions.index_health for index sizes, scan counts, and unused, duplicate, or invalid index flags.test_index for PostgreSQL hypothetical index testing through HypoPG.slow_queries for recorded statement timings and call counts where PostgreSQL pg_stat_statements or MySQL performance_schema is available.get_limits for reporting active caps, timeouts, and column privacy settings.The server also provides the dbridge://schema resource and an optimize prompt for a guided performance review. The prompt examines slow queries, plans, and index health, then validates index recommendations with test_index before suggesting them.
ugurcl/dbridge-mcp MCP server is a fit for read-only analytics, private-data question answering, and database diagnostics. It is not intended for migrations, updates, inserts, deletes, schema changes, or other write workflows.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ugurcl-dbridge-mcp)<a href="https://allmcps.com/mcp/ugurcl-dbridge-mcp"><img src="https://allmcps.com/api/badge/ugurcl-dbridge-mcp?style=directory" alt="Dbridge MCP on AllMCPs" /></a>