About Universal DB MCP
Universal DB MCP is an MCP server published by Anarkh-Lee in the Data category: 通用数据库 MCP 连接器:支持 MySQL、PostgreSQL、Oracle、MongoDB 等 17 种数据库,支持 Claude Desktop、Cursor、Windsurf、VS Code、ChatGPT 等 50+ 平台,用自然语言查询和分析数据. Conduid read 9 tools from its source: clear_cache, connect_database, disconnect_database, execute_query, get_connection_status, get_enum_values and 3 more. It is published to npm as universal-db-mcp and starts with npx.
The repository has 944 stars and 90 forks, is licensed MIT, and its last commit was on 17 Mar 2026. The latest release is v2.14.0 (17 Mar 2026): [2.14.0] - 2026 新增 MCP stdio 模式动态数据库连接 - 支持在对话中动态连接/切换数据库,无需写死配置 新增 3 个 MCP Tool: connect_database:动态连接数据库,支持全部 17 种数据库类型,已有连接时自动断开旧连接 disconnect_database:断开当前数据库连接 get_… It follows v2.13.0 (17 Mar 2026), and the 5 most recent releases go back to v2.10.1 (10 Mar 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include data.
Install
Claude Codeclaude mcp add universal-db-mcp -- npx universal-db-mcp --type mysql --host localhost --port 3306 --user root --password your_password --database your_database
Runnpx universal-db-mcp --type mysql --host localhost --port 3306 --user root --password your_password --database your_database
From sourcegit clone https://github.com/Anarkh-Lee/universal-db-mcp
Security checks
Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 47 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- package-lock.json
Pattern matches on the source text of 47 files: places to read, not proof of what the code does at run time.
Releases
v2.14.0v2.14.0 - 🚀 新增 MCP stdio 模式动态数据库连接 · 17 Mar 2026[2.14.0] - 2026 新增 MCP stdio 模式动态数据库连接 - 支持在对话中动态连接/切换数据库,无需写死配置 新增 3 个 MCP Tool: `connect_database`:动态连接数据库,支持全部 17 种数据库类型,已有连接时自动断开旧连接 `disconnect_database`:断开当前数据库连接 `get_connection_status`:查看当前连接状态(类型、地址、权限模式、缓存状态) `--type`… v2.13.0v2.13.0 - 🚀 修复 stdio MCP server 在客户端(如 Codex CLI)关闭会话后进程挂起的问题 · 17 Mar 2026[2.13.0] - 2026 修复 stdio 进程优雅退出 - 修复 stdio MCP server 在客户端(如 Codex CLI)关闭会话后进程挂起的问题 问题表现:Codex CLI 执行 `/exit` 后终端提示符不返回,必须手动 `Ctrl+C` 根因:未监听 `process.stdin` 的 `end`/`close` 事件;`stop()` 方法未调用 `server.close()` 释放 transport 资源 修复方案:… v2.12.0v2.12.0 - 🚀 新增 多 Schema 支持 · 16 Mar 2026<html> <body> 变化点 | 之前 | 现在 | -- | -- get_schema 返回的表 | 只有默认 Schema 的表 | 所有用户 Schema 的表 非默认 Schema 表的命名 | 不可见 | schema.table_name 格式(如 analytics.events) 默认 Schema 表的命名 | users | users(不变) 查询非默认 Schema 的表 | 不支持 | 使用 schema.table_name 格式即可(如… v2.11.0v2.11.0 - 🚀 连接稳定性增强 · 12 Mar 2026[2.11.0] - 2026 改进 连接稳定性增强 - 全面升级数据库连接管理,彻底解决 `Can't add new command when connection is in closed state` 错误 连接池化 - 12 个网络数据库适配器从单连接升级为连接池 MySQL 系列(MySQL、TiDB、OceanBase、PolarDB、GoldenDB):使用 `mysql2` 连接池,配置 `enableKeepAlive` +… v2.10.1v2.10.1 - 🚀 修改文档中sqllite错误的参数信息 · 10 Mar 2026修改文档中sqllite错误的参数信息 file-path修改为--file
README
The repository's README runs to about 3.0K words, fetched 3 days ago. The original in the repository is authoritative.
Read full README