MultiDB MCP

● Active

io.github.chenshiyilisha/multidb-mcp

MCP server for Dameng (DM8), SQL Server, and MySQL — read-only by default, granular write perms

Connect this server

One click to install, or copy the config below. Suits: Claude Desktop · Cursor.

Add to Cursor Add to VS CodeClaude Desktop / Claude Code: paste the config below.

Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):

{
  "mcpServers": {
    "multidb-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "multidb-mcp@0.2.1"
      ],
      "env": {
        "MULTIDB_DB_TYPE": "<your MULTIDB_DB_TYPE>",
        "MULTIDB_HOST": "<your MULTIDB_HOST>",
        "MULTIDB_PORT": "<your MULTIDB_PORT>",
        "MULTIDB_USER": "<your MULTIDB_USER>",
        "MULTIDB_PASSWORD": "<your MULTIDB_PASSWORD>",
        "MULTIDB_SCHEMA": "<your MULTIDB_SCHEMA>",
        "MULTIDB_CONNECTIONS": "<your MULTIDB_CONNECTIONS>"
      }
    }
  }
}
One line, from the terminal
Claude Code
claude mcp add --env MULTIDB_DB_TYPE='<your MULTIDB_DB_TYPE>' --env MULTIDB_HOST='<your MULTIDB_HOST>' --env MULTIDB_PORT='<your MULTIDB_PORT>' --env MULTIDB_USER='<your MULTIDB_USER>' --env MULTIDB_PASSWORD='<your MULTIDB_PASSWORD>' --env MULTIDB_SCHEMA='<your MULTIDB_SCHEMA>' --env MULTIDB_CONNECTIONS='<your MULTIDB_CONNECTIONS>' --transport stdio multidb-mcp -- npx -y multidb-mcp@0.2.1
OpenAI Codex CLI
codex mcp add multidb-mcp --env MULTIDB_DB_TYPE='<your MULTIDB_DB_TYPE>' --env MULTIDB_HOST='<your MULTIDB_HOST>' --env MULTIDB_PORT='<your MULTIDB_PORT>' --env MULTIDB_USER='<your MULTIDB_USER>' --env MULTIDB_PASSWORD='<your MULTIDB_PASSWORD>' --env MULTIDB_SCHEMA='<your MULTIDB_SCHEMA>' --env MULTIDB_CONNECTIONS='<your MULTIDB_CONNECTIONS>' -- npx -y multidb-mcp@0.2.1
VS Code
code --add-mcp '{"name":"multidb-mcp","type":"stdio","command":"npx","args":["-y","multidb-mcp@0.2.1"],"env":{"MULTIDB_DB_TYPE":"<your MULTIDB_DB_TYPE>","MULTIDB_HOST":"<your MULTIDB_HOST>","MULTIDB_PORT":"<your MULTIDB_PORT>","MULTIDB_USER":"<your MULTIDB_USER>","MULTIDB_PASSWORD":"<your MULTIDB_PASSWORD>","MULTIDB_SCHEMA":"<your MULTIDB_SCHEMA>","MULTIDB_CONNECTIONS":"<your MULTIDB_CONNECTIONS>"}}'

Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.

Environment variables
  • MULTIDB_DB_TYPErequiredDatabase type: dameng, sqlserver, or mysql
  • MULTIDB_HOSTrequiredDatabase host
  • MULTIDB_PORTrequiredDatabase port (e.g. 5236 for Dameng, 1433 for SQL Server, 3306 for MySQL)
  • MULTIDB_USERrequiredDatabase user
  • MULTIDB_PASSWORDrequiredsecretDatabase password
  • MULTIDB_SCHEMArequiredSchema name for Dameng, or database name for SQL Server / MySQL
  • MULTIDB_CONNECTIONSsecretOptional JSON array for multiple connections (overrides single-connection vars, contains credentials)

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Databases
Version
0.2.1
Registry
active
Published
Nov 21, 2026
Listed in:Official MCP registry ↗how this is checked

Is it safe? Is it maintained?

Serverdex check: Dec 4, 2026

Looks healthy: MultiDB MCP is maintained, open source.

Maintained
Active
Last commit 14 days ago (Nov 21, 2026), 0 open issues.
Official registry
Active
Published as io.github.chenshiyilisha/multidb-mcp in the official MCP registry, version 0.2.1.
Source
Open source, MIT
Public repository under the MIT licence, 0 stars, 0 forks.
Runs
On your machine
A local npm package started by your client; it can reach whatever your user account can.
Credentials
7 required
Declared environment variables: MULTIDB_DB_TYPE, MULTIDB_HOST, MULTIDB_PORT, MULTIDB_USER…. They stay on your machine; the config on this page shows where each goes.
Owner
Unclaimed
Nobody has claimed this page yet; the data above comes from the registry, GitHub and the live check.

Facts only: last commit and licence from GitHub, the entry's status from the official registry, credentials from the live check. Not a code audit — run the security scan on the endpoint yourself.

A

Grade A · Production-ready

Maintenance & production-readiness — 80/100 from the six repository signals below. A comparable rollup, not a code audit.

  • Recent commits+30/30

    Last commit 14 days ago.

  • Open licence+15/15

    MIT on GitHub.

  • Documentation+15/15

    The repository ships a README.

  • Adoption0/20

    0 GitHub stars.

  • Registry status+12/12

    Active in the official MCP registry.

  • Product surface+8/8

    Has a homepage or a published package/endpoint.

Own this server? Add the grade badge — it links back here

<a href="https://serverdex.io/server/io-github-chenshiyilisha-multidb-mcp?utm_source=report-badge"><img src="https://serverdex.io/server/io-github-chenshiyilisha-multidb-mcp/report-badge.svg" alt="MultiDB MCP — Serverdex Report Card A" height="22"></a>

Compare every server's grade on best-maintained MCP servers.

On GitHub

read Dec 4, 2026
Stars
0
Forks
0
Last push
Nov 21, 2026
License
MIT

JavaScriptclaudedamengdatabasedm8mcpmcp-servermodel-context-protocolmysqlsqlsqlservertypescript

From the README

multidb-mcp 一个轻量的 MCP Server,让 AI 客户端(WorkBuddy、Claude Code、Cursor、Cline 等)通过 MCP 协议安全地访问 达梦数据库(DM8)、SQL Server 和 MySQL / MariaDB。对话里直接说"列出表""查一下某张表",AI 就会调用工具执行,不用手动复制 SQL 切工具。 特性 • 三库支持:达梦(官方 dmdb 驱动)+ SQL Server(mssql 驱动)+ MySQL(mysql2 驱动),同一套统一工具接口。 • npx 一行启动:无需手动装驱动、建环境,客户端配置里写 npx multidb-mcp 即可。 • 连接池复用 + 连接自愈:每个连接懒加载、池常驻;达梦单连接每次执行前用驱动原生 ping() 探活,数据库重启/空闲断连时自动重建;读语句遇连接丢失会安全重试一次,写语句绝不重放(防重复写)。 • 查询超时:统一的硬超时(JS 层 Promise.race),慢查询不会卡死 MCP 的 stdio 循环。 • 审计日志:每次工具调用输出结构化 JSON 到 stderr(工具名、连接、耗时、行数、是否慢查询、是否写尝试),便于排查与合规。 • 安全默认 + 细粒度写权限:默认只读,只允许 SELECT / SHOW / DESCRIBE / EXPLAIN / WITH;需要写入时,可对每条连接单独开启 INSERT / UPDATE / DELETE / DDL 四类权限(哪一类为 true 才放行哪一类);多语句注入拦截;标识符白名单校验;list_connections 绝不外泄密码。 • 参数化查询:execute_sql 支持 ? 占位符 + params 绑定,由三库原生驱动执行,从根本上防注入(占位符数量自动校验)。 • MCP 规范对齐:实现三大原语(Tools / Resources / Prompts);成功调用同时返回文本镜像与符合 outputSchema 的 structuredContent;失败调用返回 isError: true + 结构化错误(code / category / recoverable / suggestion),LLM 可据此自我纠错;工具带 annotations 提示。 • 多连接显式路由:配置多个连接时,不传连接名会报错并返回连接目录,避免 LLM 静默查错库(dev/prod 搞混)。 • 查询治理:maxRows 行数上限 + maxResultBytes 体积上限 + maxQueryLength 长度上限,三重防止结果集/语句失控。 • 结果脱敏:按列名正则匹配,对每一行(含 SELECT *)执行 fixed / null / partial 脱敏,防止 PII / 密钥泄露给模型;非法规则 fail-closed(拒绝启动)。 • 凭据脱敏:错误信息和审计日志中的密码、用户、主机、连接串自动打码,不回显给模型或日志。 • 优雅关闭:SIGINT / SIGTERM / stdio 断开时释放所有连接池,不泄漏连接。 提供的工具 提供的资源(Resources) 除工具外,还暴露只读上下文资源,让客户端/LLM 无需调用工具即可读取真实元数据,先"看懂库"再写 SQL: 读取失败(如库不可达、标识符非法)时返回结构化错误(code/category/suggestion),且同样经过凭据脱敏,不会泄漏连接信息。 提供的提示词(Prompts)…

Read the full README on GitHub →

The most-starred Databases servers in the index, with their live-check result.

ServerStarsLast pushLive check
Dbx31,377Nov 2026Local / not checked
MCP Toolbox for Databases17,062Dec 2026Local / not checked
MCP Toolbox for Databases17,062Dec 2026Local / not checked
Finance Database9,702Nov 2026Working
DBHub4,064Dec 2026Local / not checked

MultiDB MCP: questions people ask

Is MultiDB MCP a remote or a local MCP server?
According to its entry in the official MCP registry, MultiDB MCP ships as a local package (npm) that your client starts on your machine.
Does MultiDB MCP need an API key?
Its registry entry declares 7 required environment variables: MULTIDB_DB_TYPE, MULTIDB_HOST, MULTIDB_PORT, MULTIDB_USER…. The config on this page shows where each goes.
Is MultiDB MCP safe to use?
Looks healthy: MultiDB MCP is maintained, open source. In detail — maintained: Active; official registry: Active; source: Open source, MIT; runs: On your machine; credentials: 7 required. Serverdex check of Dec 4, 2026. This is a reading of the repository, the registry entry and the live check, not a code audit; run the Serverdex security scan on the endpoint before trusting it with real data.
Is MultiDB MCP still maintained?
Active: the repository's last commit 14 days ago. Last push Nov 21, 2026, 0 GitHub stars, MIT licence. Read from GitHub on Dec 4, 2026.
How do I add MultiDB MCP to Claude, Cursor or VS Code?
Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
Browse all Databases →

Add the badge to your site

Show visitors that MultiDB MCP is listed here — it’s also the link we check for a free listing.

MultiDB MCP — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-chenshiyilisha-multidb-mcp?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="MultiDB MCP — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![MultiDB MCP — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-chenshiyilisha-multidb-mcp?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.

Add to CursorAdd to VS CodeOpen in Claude Code

Install buttons — for your README

[![Add to Cursor](https://serverdex.io/brand/install-cursor.svg)](https://serverdex.io/install/cursor/io-github-chenshiyilisha-multidb-mcp) [![Add to VS Code](https://serverdex.io/brand/install-vscode.svg)](https://serverdex.io/install/vscode/io-github-chenshiyilisha-multidb-mcp) [![Open in Claude Code](https://serverdex.io/brand/install-claude-code.svg)](https://serverdex.io/install/claude-code/io-github-chenshiyilisha-multidb-mcp)

One click opens Cursor or VS Code with this server's config prefilled; the Claude Code button lands on the one-line command. The links point at Serverdex, so when your config changes the buttons keep working.

Install buttons — HTML for your docs

<a href="https://serverdex.io/install/cursor/io-github-chenshiyilisha-multidb-mcp"><img src="https://serverdex.io/brand/install-cursor.svg" alt="Add to Cursor — via Serverdex" width="140" height="28"></a>
<a href="https://serverdex.io/install/vscode/io-github-chenshiyilisha-multidb-mcp"><img src="https://serverdex.io/brand/install-vscode.svg" alt="Add to VS Code — via Serverdex" width="147" height="28"></a>
<a href="https://serverdex.io/install/claude-code/io-github-chenshiyilisha-multidb-mcp"><img src="https://serverdex.io/brand/install-claude-code.svg" alt="Open in Claude Code — via Serverdex" width="180" height="28"></a>

Same buttons as plain links for a docs page or website.

Prefer a live badge with the score, stars and live check? Score badge (links to a page that explains the number and back to this listing).