原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Dbridge MCP

作者:ugurcl版本 0.7.1i★ –i在你的电脑上运行
注册名称io.github.ugurcl/dbridge-mcp

安装

概览

作者提供的说明(英文原文)

Query SQLite, PostgreSQL, and MySQL in plain language - read-only, with column masking and limits.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 数据库与数据集

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "dbridge": {
      "command": "npx",
      "args": [
        "-y",
        "dbridge-mcp"
      ],
      "env": {
        "DBRIDGE_CONFIG": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add dbridge --env DBRIDGE_CONFIG=your-value -- npx -y dbridge-mcp

运行前请先填写空着的值。

这个服务器需要在启动命令中填入值,请复制设置后自行填写。

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "dbridge": {
      "command": "npx",
      "args": [
        "-y",
        "dbridge-mcp"
      ],
      "env": {
        "DBRIDGE_CONFIG": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器需要在启动命令中填入值,请复制设置后自行填写。

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "dbridge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "dbridge-mcp"
      ],
      "env": {
        "DBRIDGE_CONFIG": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • DBRIDGE_CONFIG env
    Absolute path to a dbridge.config.json with safety settings (row caps, hidden/masked columns, table allow/block lists)

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 ugurcl 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“数据库与数据集”中的其他服务器比较i

  • 星标数多于此分类中其他 1144 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1144 个服务器的 17% 更新
  • 基础检查结果等于或优于此分类中其他 1144 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Dbridge MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.7.1)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Supabase, MongoDB MCP Server, Elasticsearch MCP Server

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Supabase

MCP server for interacting with the Supabase platform

作者:supabase广泛使用↓ 23.5万/周★ 2993前天更新

电脑或云端✓ supabase.com

MongoDB MCP Server

MongoDB Model Context Protocol Server

作者:mongodb-js广泛使用↓ 15.7万/周★ 11574天前更新

在你的电脑上运行

Elasticsearch MCP Server

MCP server for interacting with Elasticsearch

作者:cr7258正在增长↓ 2711/周★ 31514个月前更新

在你的电脑上运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

dbridge-mcp

An MCP server that lets an AI agent query a SQL database in plain language — safely and read-only.

=22.5">

The agent discovers the schema on its own (list_tables, describe_table), then writes and runs a SELECT for whatever the user asks. No hand-written endpoint per question.

Works with SQLite, PostgreSQL, and MySQL / MariaDB.

Why

A raw LLM cannot know what is inside your database, and web search cannot reach private data. dbridge gives the model a guarded door to that data: it can read and answer, but it cannot write, drop, or leak the whole table.

Why dbridge and not another database MCP?

There are many database MCP servers. dbridge is built around one idea — you should be able to point an AI at a real database without holding your breath — and that shows up as a combination the single-engine servers don't offer:

  • One server, three engines. SQLite, PostgreSQL, and MySQL/MariaDB behind the same tools and the same config. Switch databases by changing the connection string, not the tooling.
  • Read-only twice over. A SQL guard rejects anything but SELECT/WITH *and* every query runs inside a database-enforced READ ONLY transaction — so even a query that outsmarts the guard cannot write.
  • Column-level privacy. Hide columns from the model entirely, or mask values (a***@site.com) while keeping them queryable. Most servers expose whatever the connection can see.
  • Blast-radius controls. Row caps enforced over user-supplied LIMITs, per-query timeouts, EXPLAIN-based cost rejection for expensive queries, per-minute rate limits, and a capped connection pool.
  • No native build step. SQLite uses Node's built-in node:sqlite, so npx -y dbridge-mcp works without a compiler toolchain.
  • Performance insight, not just queries. column_stats and index_health give the model real cardinality and index-usage data, and test_index simulates an index with hypopg before anyone builds it — so the model's optimization advice is grounded in the actual database instead of guesswork.

If all you need is "run SQL from my agent", plenty of servers do that. dbridge is for pointing an agent at data you actually care about.

Tools

ToolPurpose
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.
column_statsPer-column distinct-value counts and null fractions — is this column selective enough to index?
index_healthList indexes with sizes and scan counts, flagging unused, duplicate, and invalid ones.
test_indexSimulate a CREATE INDEX without building it and report whether the planner would use it (PostgreSQL, via hypopg).
slow_queriesThe most expensive recorded statements with call counts and timings (PostgreSQL pg_stat_statements, MySQL performance_schema).
get_limitsReport the safety limits in effect (caps, timeouts, hidden/masked columns).

Resources

ResourcePurpose
dbridge://schemaThe full schema (every table and its columns) as one JSON document.

Prompts

PromptPurpose
optimizeA guided optimization pass: find slow queries, inspect plans and index health, and validate every index recommendation with test_index before suggesting it.

Requirements

Node.js 22.5+ (SQLite uses the built-in node:sqlite, no native build step).

Install

The published package ships a dbridge-mcp binary, so no clone or build step is needed to use it. Point it at a database with the connection argument:

npx -y dbridge-mcp demo.db                                  # SQLite (file path)

npx -y dbridge-mcp "postgresql://user:pass@host:5432/mydb" # PostgreSQL npx -y dbridge-mcp "mysql://user:pass@host:3306/mydb" # MySQL / MariaDB

The database engine is chosen from the connection string: a file path is SQLite, postgres:// / postgresql:// is PostgreSQL, and mysql:// is MySQL/MariaDB.

Or install it once, globally:

npm install -g dbridge-mcp

dbridge-mcp "postgresql://user:pass@host:5432/mydb"

MCP clients start the server for you as a subprocess — see the client sections below.

Windows note: MCP clients cannot launch npx directly on Windows because it is a .cmd script. Wrap it with cmd /c — use "command": "cmd" and put "/c", "npx", "-y", "dbridge-mcp", " " in the args. The examples below use the direct form (macOS/Linux); on Windows add the cmd /c prefix.

Use it in Claude Desktop

Claude Desktop only supports a single global config. Add to claude_desktop_config.json:

{

"mcpServers": { "dbridge": { "command": "npx", "args": ["-y", "dbridge-mcp", "postgresql://user:pass@host:5432/mydb"], "env": { "DBRIDGE_CONFIG": "/absolute/path/to/dbridge.config.json" } } } }

For a local SQLite file, replace the connection string with an absolute path to the .db file. Restart Claude Desktop, then ask: _"what were the 5 best-selling products last month?"_

Use it in Claude Code

Add it to the current project with the CLI:

claude mcp add dbridge --scope project \

-e DBRIDGE_CONFIG=/absolute/path/to/dbridge.config.json \ -- npx -y dbridge-mcp "postgresql://user:pass@host:5432/mydb"

--scope project writes a shareable .mcp.json in the project root; use --scope user for a global server or omit it for a private per-project one. The .mcp.json looks like:

{

"mcpServers": { "dbridge": { "command": "npx", "args": ["-y", "dbridge-mcp", "postgresql://user:pass@host:5432/mydb"], "env": { "DBRIDGE_CONFIG": "/absolute/path/to/dbridge.config.json" } } } }

Run claude from that directory; approve the project server once, then check it with /mcp.

Use it in Cursor

Add the same mcpServers block to .cursor/mcp.json in the project root (or ~/.cursor/mcp.json for all projects), enable the server under Settings → MCP, then ask the Agent a question about your data.

Use it in Windsurf

Add the same mcpServers block to ~/.codeium/windsurf/mcp_config.json, then refresh the server list under Settings → Cascade → MCP.

Use it in OpenCode

Add to opencode.json (project root or ~/.config/opencode/opencode.json):

{

"$schema": "https://opencode.ai/config.json", "mcp": { "dbridge": { "type": "local", "command": ["npx", "-y", "dbridge-mcp", "postgresql://user:pass@host:5432/mydb"], "enabled": true } } }

To tune the safety guard, point the server at a config file with the environment block:

"environment": { "DBRIDGE_CONFIG": "/absolute/path/to/dbridge.config.json" }

Docker

Build the image and run the server over stdio:

docker build -t dbridge-mcp .

docker run --rm -i dbridge-mcp "postgresql://user:pass@host:5432/mydb"

Mount a config file and point DBRIDGE_CONFIG at it:

docker run --rm -i \

-v "$PWD/dbridge.config.json:/config.json:ro" \ -e DBRIDGE_CONFIG=/config.json \ dbridge-mcp "postgresql://user:pass@host:5432/mydb"

Safety

  • The connection is opened read-only. On PostgreSQL and MySQL every query also runs inside a READ ONLY transaction, so writes are rejected by the database itself even if a query slips past the guard.
  • Only SELECT and WITH statements pass; writes, DDL, and data-modifying CTEs are rejected.
  • A single statement per call; the row cap is enforced even when a query supplies its own larger LIMIT (default 1000 rows).
  • Each PostgreSQL and MySQL query is bounded by a per-query timeout (statement_timeout / max_execution_time), so a runaway or expensive query cannot pin the database.
  • System catalogs and credential tables (information_schema, pg_authid, sqlite_master, …) are not queryable; schema discovery goes through the tools.
  • Restricted columns can be hidden entirely: the model cannot see them in the schema, query them, or receive them in results.
  • Tables can be restricted with an allow-list or block-list; blocked tables are invisible and unqueryable.
  • Columns can be masked instead of hidden: they stay visible but values come back partially redacted (e.g. a***@site.com).
  • Expensive queries can be rejected up front by an EXPLAIN cost estimate, and callers can be rate-limited per minute.
  • The connection pool size is capped, so dbridge cannot exhaust the database's connections.
Config

Every setting has three sources, in increasing precedence: a JSON file (DBRIDGE_CONFIG), environment variables, then CLI flags. So you can drop the JSON file entirely and set only what you need:

npx -y dbridge-mcp "postgresql://user:pass@host/db" --max-rows 200 --statement-timeout-ms 3000 --masked-columns email,iban

DBRIDGE_MAX_ROWS=200 DBRIDGE_REQUIRE_SSL=true npx -y dbridge-mcp "postgresql://user:pass@host/db"

Or keep everything in one place: point DBRIDGE_CONFIG at a JSON file (see dbridge.config.example.json for a full template). Every field is optional:

{

"maxRows": 500, "hiddenColumns": ["ssn", "password_hash"], "maskedColumns": ["iban", { "column": "email", "strategy": "email" }], "allowedTables": ["products", "sales", "customers"], "blockedTables": ["employees", "audit_log"], "statementTimeoutMs": 5000, "maxCost": 100000, "rateLimitPerMin": 60, "maxPoolSize": 5, "connectionTimeoutMs": 10000, "requireSsl": true, "schemas": ["public", "reporting"], "auditLog": true }

FieldCLI flag / env varDefaultPurpose
maxRows--max-rows / DBRIDGE_MAX_ROWS1000Hard cap on rows returned per query, enforced even over a larger LIMIT.
hiddenColumns--hidden-columns / DBRIDGE_HIDDEN_COLUMNS[]Columns hidden from the schema, queries, and results.
maskedColumns--masked-columns / DBRIDGE_MASKED_COLUMNS[]Columns whose values are redacted in results (see below).
maxCellChars--max-cell-chars / DBRIDGE_MAX_CELL_CHARS0Truncate any string cell longer than this; 0 disables.
maxResultBytes--max-result-bytes / DBRIDGE_MAX_RESULT_BYTES0Cap the total serialized result size, dropping trailing rows; 0 disables.
allowedTables--allowed-tables / DBRIDGE_ALLOWED_TABLES[]If non-empty, only these tables are exposed.
blockedTables--blocked-tables / DBRIDGE_BLOCKED_TABLES[]Tables that are always hidden and unqueryable.

| statementTimeoutMs | --statement-timeout-ms / DBRIDGE_STATEMENT_TIMEOUT_MS | 10000 | Per-query timeout (PostgreSQL statement_timeout, MySQL max_execution_time

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx