drio
Open app

Multi Database MCP Server

Source

A powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.

Catalog onlyCatalog onlySTDIO

Overview

DB MCP Server is a high-performance implementation of the Database Model Context Protocol (DB MCP) designed to facilitate seamless integration between database operations and client applications like VS Code and Cursor.

To use DB MCP Server, clone the repository, configure the environment variables, and run the server either locally or using Docker. Integrate it with client applications by configuring the appropriate settings.

  • Flexible transport layer with Server-Sent Events (SSE) - JSON-RPC based messaging for interoperability - Dynamic tool registry for runtime tool management - First-class support for VS Code and Cursor - Sophisticated session management and error handling - Performance optimized for high throughput
  1. Integrating database operations with code editors like VS Code.
  2. Executing SQL queries with enhanced error reporting and validation.
  3. Managing database sessions and transactions efficiently.

Add to your AI client

Use these steps to connect Multi Database MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "db-mcp-server-freepeak": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-db-mcp-server-freepeak"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "db-mcp-server-freepeak": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-db-mcp-server-freepeak"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "db-mcp-server-freepeak": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-db-mcp-server-freepeak"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "db-mcp-server-freepeak": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-db-mcp-server-freepeak"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "db-mcp-server-freepeak": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-db-mcp-server-freepeak"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "db-mcp-server-freepeak": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-db-mcp-server-freepeak"
      ]
    }
  }
}

FAQ

Can DB MCP Server be used with any database?

Yes, it supports MySQL and PostgreSQL, and can be extended for other databases.

Is DB MCP Server free to use?

Yes, it is open-source and licensed under the MIT License.

How can I contribute to DB MCP Server?

You can contribute by forking the repository, creating a feature branch, and submitting a pull request.

Multi Database MCP Server — MCP Registry