Dbridge MCP logo

Dbridge MCP

by ugurcl

Read-only MCP access to SQLite, PostgreSQL, and MySQL with schema discovery, query safeguards, privacy controls, and index analysis.

Install Dbridge MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ugurcl-dbridge-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "dbridge-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y dbridge-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

ugurcl/dbridge-mcp MCP server exposes SQLite, PostgreSQL, and MySQL/MariaDB databases through read-only MCP tools. It lets an agent discover schemas, compose SELECT or WITH queries, inspect plans, and return results as JSON, CSV, or Markdown. Safety controls include column hiding or masking, row caps, query timeouts, cost rejection, rate limits, and read-only database transactions. Reach for it when an agent needs controlled access to private SQL data or database performance information without write capabilities.

Use cases

  • Answer natural-language questions about private SQL data
  • Inspect database schemas and table relationships
  • Review query plans and estimated costs
  • Find unused or duplicate indexes
  • Evaluate hypothetical PostgreSQL indexes

Key features

  • Read-only SQLite, PostgreSQL, and MySQL/MariaDB access
  • Schema discovery and table sampling
  • JSON, CSV, and Markdown query results
  • Column hiding and value masking
  • Row caps, timeouts, cost rejection, and rate limits
  • Query and index performance analysis

Tools11

What Dbridge MCP lets your agent do. Expand a tool for its parameters.

Self-reported~255 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/25 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · dbridge-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads171Package downloads in the last 30 days.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed11Callable tools this server registers over MCP.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Dbridge MCP works

What ugurcl/dbridge-mcp MCP server does

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.

How it works

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.

Setup and configuration

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. 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.

Tools and capabilities

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Dbridge MCP

Use Node.js 22.5 or newer and run the published package with `npx -y dbridge-mcp` followed by a SQLite path or PostgreSQL/MySQL connection string.

Yes. The README provides a Claude Desktop configuration using `npx`, the `dbridge-mcp` package, a database connection, and an optional `DBRIDGE_CONFIG` environment variable.

It supports SQLite, PostgreSQL, and MySQL/MariaDB. The database type is selected from the file path or connection-string scheme.

No. The SQL guard permits only SELECT and WITH statements, and the database connection is read-only. Writes, DDL, and data-modifying CTEs are rejected.

Yes. Configuration can hide columns from the model or mask their values while leaving them queryable.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDbridge MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ugurcl-dbridge-mcp?style=directory)](https://allmcps.com/mcp/ugurcl-dbridge-mcp)
HTML Embed
<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>