Skip to content
MCP server

MCP DB Connect

MCP server for Oracle, MSSQL, PostgreSQL, MySQL, SQLite, MongoDB, and Qdrant vector…

Install
Pricing
Open source
Runs
Locally or Remotely
Version
0.1.21
Listing updated
4 days ago

About MCP DB Connect

MCP DB Connect is an open-source MCP server for databases. It can run locally on your machine or as a hosted remote server.

MCP server for Oracle, MSSQL, PostgreSQL, MySQL, SQLite, MongoDB, and Qdrant vector search access.

Install

Run in a terminal

claude mcp add mcp-db-connect --env MCP_DB_CONFIG='<MCP_DB_CONFIG>' -- npx -y mcp-db-connect

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-db-connect": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-db-connect"
      ],
      "env": {
        "MCP_DB_CONFIG": "<MCP_DB_CONFIG>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-db-connect": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-db-connect"
      ],
      "env": {
        "MCP_DB_CONFIG": "<MCP_DB_CONFIG>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-db-connect": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-db-connect"
      ],
      "env": {
        "MCP_DB_CONFIG": "<MCP_DB_CONFIG>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "mcp-db-connect": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-db-connect"
      ],
      "env": {
        "MCP_DB_CONFIG": "<MCP_DB_CONFIG>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-db-connect": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-db-connect"
      ],
      "env": {
        "MCP_DB_CONFIG": "<MCP_DB_CONFIG>"
      }
    }
  }
}

Configuration

  • MCP_DB_CONFIGFull mcp-db-connect config (security + connections) as YAML or JSON. When set, file-based config discovery is skipped entirely.
  • MCP_DB_CONFIGFull mcp-db-connect config (security + connections) as YAML or JSON. When set, file-based config discovery is skipped entirely.

Pricing

Open source

MCP DB Connect FAQ

Is MCP DB Connect free?

Yes. MCP DB Connect is open source, so you can use and self-host it for free.

How do I add MCP DB Connect to Claude Code?

Run this command in your terminal: claude mcp add mcp-db-connect --env MCP_DB_CONFIG='<MCP_DB_CONFIG>' -- npx -y mcp-db-connect

What are the best alternatives to MCP DB Connect?

The closest alternatives to MCP DB Connect are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Midplane.

Alternatives to MCP DB Connect

  1. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  2. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  3. MCP server for searching the Claude Code Ultimate Guide from any MCP client

    Runs locally
    • Open source
    • 6.5K GitHub stars
    • AI models and LLM tooling
  4. Local-first long-term memory layer for AI agents, served over MCP

    Not checked yet
    • 5 tools
    • Remote
    • Open source
    • 1.3K GitHub stars
    • Knowledge and memory
  5. Midplane

    MCP server

    Postgres gateway for AI agents with table grants, column masking and approval for writes

    Runs locally
    • Open source
    • 5 GitHub stars
    • Databases
  6. note1

    MCP server

    MCP server giving AI assistants search and summaries across your note1 meetings

    • 4 tools
    • Remote
    • Free trial
    • 1 GitHub star
    • Productivity