M

Multidb MCP

by chenshiyilisha · io.github.chenshiyilisha/multidb-mcp

Enables AI clients to safely access and query Dameng DM8, SQL Server, and MySQL/MariaDB databases through MCP, with read-only defaults, explicit multi-connection routing, query timeouts, audit logging, and row limits.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-chenshiyilisha-multidb-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "multidb-mcp"
      ],
      "env": {
        "MULTIDB_DB_TYPE": "dameng",
        "MULTIDB_HOST": "<VALUE>",
        "MULTIDB_PORT": "<VALUE>",
        "MULTIDB_USER": "<VALUE>",
        "MULTIDB_PASSWORD": "<YOUR_VALUE>",
        "MULTIDB_SCHEMA": "<VALUE>",
        "MULTIDB_READ_ONLY": "true",
        "MULTIDB_CONNECTIONS": "<YOUR_VALUE>",
        "MSSQL_ENCRYPT": "true",
        "MSSQL_TRUST_CERT": "true",
        "MULTIDB_MAX_ROWS": "1000",
        "MULTIDB_SLOW_QUERY_MS": "1000",
        "MULTIDB_QUERY_TIMEOUT_MS": "30000"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-chenshiyilisha-multidb-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "multidb-mcp"
      ],
      "env": {
        "MULTIDB_DB_TYPE": "dameng",
        "MULTIDB_HOST": "<VALUE>",
        "MULTIDB_PORT": "<VALUE>",
        "MULTIDB_USER": "<VALUE>",
        "MULTIDB_PASSWORD": "<YOUR_VALUE>",
        "MULTIDB_SCHEMA": "<VALUE>",
        "MULTIDB_READ_ONLY": "true",
        "MULTIDB_CONNECTIONS": "<YOUR_VALUE>",
        "MSSQL_ENCRYPT": "true",
        "MSSQL_TRUST_CERT": "true",
        "MULTIDB_MAX_ROWS": "1000",
        "MULTIDB_SLOW_QUERY_MS": "1000",
        "MULTIDB_QUERY_TIMEOUT_MS": "30000"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-chenshiyilisha-multidb-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "multidb-mcp"
      ],
      "env": {
        "MULTIDB_DB_TYPE": "dameng",
        "MULTIDB_HOST": "<VALUE>",
        "MULTIDB_PORT": "<VALUE>",
        "MULTIDB_USER": "<VALUE>",
        "MULTIDB_PASSWORD": "<YOUR_VALUE>",
        "MULTIDB_SCHEMA": "<VALUE>",
        "MULTIDB_READ_ONLY": "true",
        "MULTIDB_CONNECTIONS": "<YOUR_VALUE>",
        "MSSQL_ENCRYPT": "true",
        "MSSQL_TRUST_CERT": "true",
        "MULTIDB_MAX_ROWS": "1000",
        "MULTIDB_SLOW_QUERY_MS": "1000",
        "MULTIDB_QUERY_TIMEOUT_MS": "30000"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-chenshiyilisha-multidb-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "multidb-mcp"
      ],
      "env": {
        "MULTIDB_DB_TYPE": "dameng",
        "MULTIDB_HOST": "<VALUE>",
        "MULTIDB_PORT": "<VALUE>",
        "MULTIDB_USER": "<VALUE>",
        "MULTIDB_PASSWORD": "<YOUR_VALUE>",
        "MULTIDB_SCHEMA": "<VALUE>",
        "MULTIDB_READ_ONLY": "true",
        "MULTIDB_CONNECTIONS": "<YOUR_VALUE>",
        "MSSQL_ENCRYPT": "true",
        "MSSQL_TRUST_CERT": "true",
        "MULTIDB_MAX_ROWS": "1000",
        "MULTIDB_SLOW_QUERY_MS": "1000",
        "MULTIDB_QUERY_TIMEOUT_MS": "30000"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-chenshiyilisha-multidb-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "multidb-mcp"
      ],
      "env": {
        "MULTIDB_DB_TYPE": "dameng",
        "MULTIDB_HOST": "<VALUE>",
        "MULTIDB_PORT": "<VALUE>",
        "MULTIDB_USER": "<VALUE>",
        "MULTIDB_PASSWORD": "<YOUR_VALUE>",
        "MULTIDB_SCHEMA": "<VALUE>",
        "MULTIDB_READ_ONLY": "true",
        "MULTIDB_CONNECTIONS": "<YOUR_VALUE>",
        "MSSQL_ENCRYPT": "true",
        "MSSQL_TRUST_CERT": "true",
        "MULTIDB_MAX_ROWS": "1000",
        "MULTIDB_SLOW_QUERY_MS": "1000",
        "MULTIDB_QUERY_TIMEOUT_MS": "30000"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-chenshiyilisha-multidb-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "multidb-mcp"
      ],
      "env": {
        "MULTIDB_DB_TYPE": "dameng",
        "MULTIDB_HOST": "<VALUE>",
        "MULTIDB_PORT": "<VALUE>",
        "MULTIDB_USER": "<VALUE>",
        "MULTIDB_PASSWORD": "<YOUR_VALUE>",
        "MULTIDB_SCHEMA": "<VALUE>",
        "MULTIDB_READ_ONLY": "true",
        "MULTIDB_CONNECTIONS": "<YOUR_VALUE>",
        "MSSQL_ENCRYPT": "true",
        "MSSQL_TRUST_CERT": "true",
        "MULTIDB_MAX_ROWS": "1000",
        "MULTIDB_SLOW_QUERY_MS": "1000",
        "MULTIDB_QUERY_TIMEOUT_MS": "30000"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
MULTIDB_DB_TYPE Yes Database type: dameng, sqlserver, or mysql. Default: dameng
MULTIDB_HOST Yes Database host.
MULTIDB_PORT Yes Database port. Defaults: Dameng 5236, SQL Server 1433, MySQL 3306.
MULTIDB_USER Yes Database account username.
MULTIDB_PASSWORD secret Yes Database account password.
MULTIDB_SCHEMA Yes Schema for Dameng, or database name for SQL Server / MySQL.
MULTIDB_READ_ONLY No true for read-only, false for writable. Default: true
MULTIDB_CONNECTIONS secret No JSON array of connection objects for multiple connections. Each object contains fields such as name, type, host, port, user, password, schema, and readOnly.
MSSQL_ENCRYPT No Set to false to disable encryption for SQL Server. Default: true
MSSQL_TRUST_CERT No Set to false to disable trusting self-signed server certificates for SQL Server. Default: true
MULTIDB_MAX_ROWS No Maximum number of rows returned per query. Default: 1000
MULTIDB_SLOW_QUERY_MS No Slow query threshold in milliseconds; queries exceeding it are marked slow=true in audit logs. Default: 1000
MULTIDB_QUERY_TIMEOUT_MS No Hard query timeout in milliseconds; 0 means no limit. Default: 30000

Similar servers