Universal DB MCP

by Anarkh-Lee• 940•• Scanned•Claim this listing•Request removal

通用数据库 MCP 连接器:支持 MySQL、PostgreSQL、Oracle、MongoDB 等 17 种数据库,支持 Claude Desktop、Cursor、Windsurf、VS Code、ChatGPT 等 50+ 平台,用自然语言查询和分析数据

Universal DB MCP is an open-source mcp server by Anarkh-Lee, written mainly in TypeScript, with 940 GitHub stars and the MIT license. Its code was last updated Mar 17, 2026. The latest npm release is universal-db-mcp 2.14.0, published Mar 17, 2026, with 104 downloads last week.

Scan summary: scanned Nov 5, 2026 at commit dc338cd. Seen able to run shell commands, connect to databases. Scan policy

How to install Universal DB MCP

Built from the start command in the project's README: npx universal-db-mcp --type mysql --host localhost --port 3306 --user root --password your_password --database your_database. Check the README for required keys or settings.

Claude Code · Terminal
claude mcp add universal-db-mcp -- npx universal-db-mcp --type mysql --host localhost --port 3306 --user root --password your_password --database your_database
Claude Desktop · claude_desktop_config.json
{
  "mcpServers": {
    "universal-db-mcp": {
      "command": "npx",
      "args": [
        "universal-db-mcp",
        "--type",
        "mysql",
        "--host",
        "localhost",
        "--port",
        "3306",
        "--user",
        "root",
        "--password",
        "your_password",
        "--database",
        "your_database"
      ]
    }
  }
}
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "universal-db-mcp": {
      "command": "npx",
      "args": [
        "universal-db-mcp",
        "--type",
        "mysql",
        "--host",
        "localhost",
        "--port",
        "3306",
        "--user",
        "root",
        "--password",
        "your_password",
        "--database",
        "your_database"
      ]
    }
  }
}
VS Code · Terminal
code --add-mcp '{"name":"universal-db-mcp","command":"npx","args":["universal-db-mcp","--type","mysql","--host","localhost","--port","3306","--user","root","--password","your_password","--database","your_database"]}'

What Universal Db MCP can touch

  • Run shell commandsListed as a tool: execute_query
  • Run dynamic codeNot seen in this scan
  • Read or write filesNot seen in this scan
  • Read environment and secretsNot seen in this scan
  • Control a web browserNot seen in this scan
  • Connect to databasesListed as a tool: execute_query
  • Read or send messagesNot seen in this scan
  • Touch money or tradingNot seen in this scan
  • Connect to the internetNo connections seen while running

"Not seen" means our checks did not find it, and the tool may still do it. Covers commit dc338cd, Nov 5, 2026. See the scan policy.

Before you install Universal Db MCP

AgenticMart scanned Universal Db MCP on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.

What it can access

  • An MCP server is a program your AI app starts and talks to. A local one runs with your user's permissions: it can see the files, environment variables and network your account can.
  • Based on its description and topics, it likely needs to connect to a database.

Before you install

  1. Give it a read-only database user unless it must write.
  2. Pin the version you reviewed instead of always installing the latest release.
  3. Read the tool list or scripts before the first run, and keep approval prompts on for actions that write, send or delete.
  • Maintained by Anarkh-Lee on GitHub, 940 stars and 90 forks. Popularity is not proof of safety.
  • Last code change: Mar 17, 2026.
  • Open-source license: MIT.

Tools Universal Db MCP exposes (9)

Listed by the server itself during our scan of commit dc338cd.

  • execute_query

    执行 SQL 查询或数据库命令。支持 SELECT、JOIN、聚合等查询操作。如果启用了写入模式,也可以执行 INSERT、UPDATE、DELETE 等操作。

  • get_schema

    获取数据库结构信息,包括所有 Schema 中用户可访问的表名、列名、数据类型、主键、索引等元数据。在执行查询前调用此工具可以帮助理解数据库结构。结果会被缓存以提高性能。

  • get_table_info

    获取指定表的详细信息,包括列定义、索引、预估行数等。用于深入了解某个表的结构。

  • clear_cache

    清除 Schema 缓存。当数据库结构发生变化(如新增表、修改列)时,可以调用此工具清除缓存。

  • get_enum_values

    获取指定列的所有唯一值。用于了解 status、type、category 等枚举类型列的所有可能值,帮助生成准确的 WHERE 条件。例如:获取 orders.status 列的所有状态值(pending, shipped, delivered 等)。

  • get_sample_data

    获取表的示例数据(已自动脱敏)。用于了解数据格式,如日期格式(2024-01-01 vs 20240101)、ID格式(UUID vs 自增)、金额精度等。敏感数据(手机号、邮箱、身份证等)会自动脱敏保护隐私。

  • connect_database

    连接到数据库。支持动态指定数据库类型和连接参数,无需重启服务。如果当前已有连接,会自动断开旧连接再建立新连接。支持的数据库类型:mysql, postgres, redis, oracle, dm, sqlserver, mongodb, sqlite, kingbase, gaussdb, oceanbase, tidb, clickhouse, polardb, vastbase, highgo, goldendb。

  • disconnect_database

    断开当前数据库连接。断开后需要重新调用 connect_database 才能执行查询。

  • get_connection_status

    获取当前数据库连接状态。返回是否已连接、数据库类型、地址、数据库名、权限模式等信息。

Universal Db MCP is an open-source mcp server by Anarkh-Lee, written mainly in TypeScript. 通用数据库 MCP 连接器:支持 MySQL、PostgreSQL、Oracle、MongoDB 等 17 种数据库,支持 Claude Desktop、Cursor、Windsurf、VS Code、ChatGPT 等 50+ 平台,用自然语言查询和分析数据

At a glance

Stars
940
Forks
90
Language
TypeScript
License
MIT
Created
Jan 2026
Last update
Mar 17, 2026
Type
MCP Server
Price
Free

Questions about Universal Db MCP

What is Universal Db MCP?

通用数据库 MCP 连接器:支持 MySQL、PostgreSQL、Oracle、MongoDB 等 17 种数据库,支持 Claude Desktop、Cursor、Windsurf、VS Code、ChatGPT 等 50+ 平台,用自然语言查询和分析数据

Who maintains Universal Db MCP?

Universal Db MCP is maintained by Anarkh-Lee on GitHub (Anarkh-Lee/universal-db-mcp). AgenticMart lists it from public repository data.

Is Universal Db MCP safe to use?

AgenticMart scanned Universal Db MCP on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.

What license does Universal Db MCP use?

It is published under the MIT license.

Universal DB MCP alternatives

View more →

Similar mcp servers in Database Management, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
Universal DB MCP (this page)
Anarkh-Lee
940MITMar 17, 2026Scanned, no flagged issues
Codebase Memory MCP
DeusData
48kMITNov 1, 2026Scanned, see report
Xerj
xerj-org
19kApache-2.0Nov 1, 2026Scanned, no flagged issues
MCP Toolbox
googleapis
17kApache-2.0Nov 1, 2026Scanned, no flagged issues
Nightingale
ccfos
13kApache-2.0Oct 30, 2026Scanned, no flagged issues
Dbhub
bytebase
3.8kMITOct 26, 2026Scanned, no flagged issues