Best MCP Servers for Databases (2026)

A data-ranked shortlist of the 12 strongest MCP servers for databases — every entry links to its full page with copy-paste configs for Claude Desktop, Claude Code, Cursor, VS Code and Windsurf. List compiled 2026-10-28; rankings refresh as the underlying data updates.

How entries are picked: An entry is eligible only if it meets at least one of: 10+ GitHub stars, 100+ monthly npm/PyPI downloads, or a verified official/reference tier on its brand page; entries meeting none of the three are excluded, as are archived repositories. Eligible entries are ranked by a score built from: GitHub stars — multiplied by 10 when the entry has a verified official/reference tier, so official status counts as ten times the community traction rather than a flat bonus; maintenance recency (last push); and npm/PyPI downloads where available. Two tie-break rules keep the list honest: when the same repository is shared by several listings, its star count does not contribute to ranking (the shared figure would otherwise swamp independent projects), and when several implementations share a product name, only the highest-scoring one is listed — the others stay in the directory. Data comes from the public MCP Registry (description, install method), GitHub repository stats and package download counts — no editorial scoring, no paid inclusion, and sponsorship never affects these lists.

MCP official reference implementations

These entries sit outside the ranking: they are the Model Context Protocol steering group's own reference implementations for this scenario. They are not scored, they do not affect the order below, and archived ones are marked as such with a maintained alternative where one exists.

  • Listed under archived servers in the steering group's README; the code now lives in modelcontextprotocol/servers-archived.

    Maintained alternative: crystaldba/postgres-mcp ↗ — A maintained local PostgreSQL server; our Postgres page documents it as the community-recommended local option.

  • Listed under archived servers in the steering group's README; the code now lives in modelcontextprotocol/servers-archived.

    No maintained replacement is named by the MCP steering group for this one; the archived code remains available in servers-archived.

  • RedisArchived upstreamSource on GitHub ↗

    Listed under archived servers in the steering group's README; the code now lives in modelcontextprotocol/servers-archived.

    Maintained alternative: Redis MCP Server (YawLabs) ↗ — A community implementation listed in this directory; it is not published or endorsed by Redis. Page in this directory

#1

DBHub

Officialby bytebase

Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite

⭐ 3,667 starsLast push: 2026-10-13License: MITRepository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/dbhub"
      ],
      "env": {
        "DSN": "<YOUR_DSN>",
        "DB_PASSWORD": "<YOUR_DB_PASSWORD>"
      }
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add --env DSN=<YOUR_DSN> --env DB_PASSWORD=<YOUR_DB_PASSWORD> dbhub -- npx -y @bytebase/dbhub
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/dbhub"
      ],
      "env": {
        "DSN": "<YOUR_DSN>",
        "DB_PASSWORD": "<YOUR_DB_PASSWORD>"
      }
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/dbhub"
      ],
      "env": {
        "DSN": "<YOUR_DSN>",
        "DB_PASSWORD": "<YOUR_DB_PASSWORD>"
      }
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/dbhub"
      ],
      "env": {
        "DSN": "<YOUR_DSN>",
        "DB_PASSWORD": "<YOUR_DB_PASSWORD>"
      }
    }
  }
}
Keys / environment: DSN · DB_PASSWORD
#2

Supabase

Officialby supabase-community

Manage a Supabase project — run SQL, apply migrations, inspect tables and work with branches and edge functions.

⭐ 2,959 starsLast push: 2026-10-17License: Apache-2.0Repository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest"
      ]
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add supabase -- npx -y @supabase/mcp-server-supabase@latest
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest"
      ]
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "supabase": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest"
      ]
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest"
      ]
    }
  }
}

MCP Toolbox for Databases enables your agent to connect to your database.

⭐ 16,676 starsLast push: 2026-10-17License: Apache-2.0Repository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "genai-toolbox": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0"
      ]
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add genai-toolbox -- docker run -i --rm us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "genai-toolbox": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0"
      ]
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "genai-toolbox": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0"
      ]
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "genai-toolbox": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:0.31.0"
      ]
    }
  }
}
#4

Elasticsearch

Officialby elastic

Query and explore Elasticsearch indices from your AI assistant — search, mappings and aggregations.

⭐ 719 starsLast push: 2026-10-16License: Apache-2.0Repository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@elastic/mcp-server-elasticsearch"
      ]
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add elasticsearch -- npx -y @elastic/mcp-server-elasticsearch
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@elastic/mcp-server-elasticsearch"
      ]
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@elastic/mcp-server-elasticsearch"
      ]
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@elastic/mcp-server-elasticsearch"
      ]
    }
  }
}
#5

Supabase

by supabase

MCP server for interacting with the Supabase platform

⭐ 2,959 starsLast push: 2026-10-17License: Apache-2.0Repository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "mcp-1103": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase"
      ],
      "env": {
        "SUPABASE_ACCESS_TOKEN": "<YOUR_SUPABASE_ACCESS_TOKEN>"
      }
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add --env SUPABASE_ACCESS_TOKEN=<YOUR_SUPABASE_ACCESS_TOKEN> mcp-1103 -- npx -y @supabase/mcp-server-supabase
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "mcp-1103": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase"
      ],
      "env": {
        "SUPABASE_ACCESS_TOKEN": "<YOUR_SUPABASE_ACCESS_TOKEN>"
      }
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "mcp-1103": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase"
      ],
      "env": {
        "SUPABASE_ACCESS_TOKEN": "<YOUR_SUPABASE_ACCESS_TOKEN>"
      }
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "mcp-1103": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase"
      ],
      "env": {
        "SUPABASE_ACCESS_TOKEN": "<YOUR_SUPABASE_ACCESS_TOKEN>"
      }
    }
  }
}
Keys / environment: SUPABASE_ACCESS_TOKEN
#6

ClickHouse

by ClickHouse

Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB.

⭐ 889 starsLast push: 2026-10-15License: Apache-2.0240,897/mo downloadsRepository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "mcp-clickhouse": {
      "command": "uvx",
      "args": [
        "mcp-clickhouse"
      ],
      "env": {
        "CLICKHOUSE_HOST": "<YOUR_CLICKHOUSE_HOST>",
        "CLICKHOUSE_USER": "<YOUR_CLICKHOUSE_USER>",
        "CLICKHOUSE_PASSWORD": "<YOUR_CLICKHOUSE_PASSWORD>"
      }
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add --env CLICKHOUSE_HOST=<YOUR_CLICKHOUSE_HOST> --env CLICKHOUSE_USER=<YOUR_CLICKHOUSE_USER> --env CLICKHOUSE_PASSWORD=<YOUR_CLICKHOUSE_PASSWORD> mcp-clickhouse -- uvx mcp-clickhouse
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "mcp-clickhouse": {
      "command": "uvx",
      "args": [
        "mcp-clickhouse"
      ],
      "env": {
        "CLICKHOUSE_HOST": "<YOUR_CLICKHOUSE_HOST>",
        "CLICKHOUSE_USER": "<YOUR_CLICKHOUSE_USER>",
        "CLICKHOUSE_PASSWORD": "<YOUR_CLICKHOUSE_PASSWORD>"
      }
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "mcp-clickhouse": {
      "command": "uvx",
      "args": [
        "mcp-clickhouse"
      ],
      "env": {
        "CLICKHOUSE_HOST": "<YOUR_CLICKHOUSE_HOST>",
        "CLICKHOUSE_USER": "<YOUR_CLICKHOUSE_USER>",
        "CLICKHOUSE_PASSWORD": "<YOUR_CLICKHOUSE_PASSWORD>"
      }
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "mcp-clickhouse": {
      "command": "uvx",
      "args": [
        "mcp-clickhouse"
      ],
      "env": {
        "CLICKHOUSE_HOST": "<YOUR_CLICKHOUSE_HOST>",
        "CLICKHOUSE_USER": "<YOUR_CLICKHOUSE_USER>",
        "CLICKHOUSE_PASSWORD": "<YOUR_CLICKHOUSE_PASSWORD>"
      }
    }
  }
}
Keys / environment: CLICKHOUSE_HOST · CLICKHOUSE_USER · CLICKHOUSE_PASSWORD
#7

Mindwtr

by dongdongbh

Task automation via SQLite, desktop Local API, or Mindwtr Cloud; read-only by default.

⭐ 2,278 starsLast push: 2026-10-18License: AGPL-3.0Repository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "mindwtr": {
      "command": "npx",
      "args": [
        "-y",
        "mindwtr-mcp"
      ],
      "env": {
        "MINDWTR_MCP_CLOUD_TOKEN": "<YOUR_MINDWTR_MCP_CLOUD_TOKEN>",
        "MINDWTR_MCP_API_TOKEN": "<YOUR_MINDWTR_MCP_API_TOKEN>"
      }
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add --env MINDWTR_MCP_CLOUD_TOKEN=<YOUR_MINDWTR_MCP_CLOUD_TOKEN> --env MINDWTR_MCP_API_TOKEN=<YOUR_MINDWTR_MCP_API_TOKEN> mindwtr -- npx -y mindwtr-mcp
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "mindwtr": {
      "command": "npx",
      "args": [
        "-y",
        "mindwtr-mcp"
      ],
      "env": {
        "MINDWTR_MCP_CLOUD_TOKEN": "<YOUR_MINDWTR_MCP_CLOUD_TOKEN>",
        "MINDWTR_MCP_API_TOKEN": "<YOUR_MINDWTR_MCP_API_TOKEN>"
      }
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "mindwtr": {
      "command": "npx",
      "args": [
        "-y",
        "mindwtr-mcp"
      ],
      "env": {
        "MINDWTR_MCP_CLOUD_TOKEN": "<YOUR_MINDWTR_MCP_CLOUD_TOKEN>",
        "MINDWTR_MCP_API_TOKEN": "<YOUR_MINDWTR_MCP_API_TOKEN>"
      }
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "mindwtr": {
      "command": "npx",
      "args": [
        "-y",
        "mindwtr-mcp"
      ],
      "env": {
        "MINDWTR_MCP_CLOUD_TOKEN": "<YOUR_MINDWTR_MCP_CLOUD_TOKEN>",
        "MINDWTR_MCP_API_TOKEN": "<YOUR_MINDWTR_MCP_API_TOKEN>"
      }
    }
  }
}
Keys / environment: MINDWTR_MCP_CLOUD_TOKEN · MINDWTR_MCP_API_TOKEN
#8

Discogs

Referenceby cswkim

MCP Server for Discogs

⭐ 128 starsLast push: 2026-10-05License: MIT10,377,167/mo downloadsRepository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "discogs": {
      "command": "npx",
      "args": [
        "-y",
        "args"
      ]
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add discogs -- npx -y args
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "discogs": {
      "command": "npx",
      "args": [
        "-y",
        "args"
      ]
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "discogs": {
      "command": "npx",
      "args": [
        "-y",
        "args"
      ]
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "discogs": {
      "command": "npx",
      "args": [
        "-y",
        "args"
      ]
    }
  }
}
#9

Mcp

by keboola

Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...

⭐ 85 starsLast push: 2026-10-16License: MIT9,221/mo downloadsRepository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "mcp-519": {
      "command": "uvx",
      "args": [
        "keboola-mcp-server"
      ]
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add mcp-519 -- uvx keboola-mcp-server
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "mcp-519": {
      "command": "uvx",
      "args": [
        "keboola-mcp-server"
      ]
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "mcp-519": {
      "command": "uvx",
      "args": [
        "keboola-mcp-server"
      ]
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "mcp-519": {
      "command": "uvx",
      "args": [
        "keboola-mcp-server"
      ]
    }
  }
}
#10

Schemagate

by ashishsinha1602

Identity-scoped schema selection for text-to-SQL. Returns only the tables the caller may read.

⭐ 104 starsLast push: 2026-10-17License: Apache-2.07,019/mo downloadsRepository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "schemagate": {
      "command": "uvx",
      "args": [
        "schemagate"
      ],
      "env": {
        "SCHEMAGATE_DATABASE_URL": "<YOUR_SCHEMAGATE_DATABASE_URL>"
      }
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add --env SCHEMAGATE_DATABASE_URL=<YOUR_SCHEMAGATE_DATABASE_URL> schemagate -- uvx schemagate
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "schemagate": {
      "command": "uvx",
      "args": [
        "schemagate"
      ],
      "env": {
        "SCHEMAGATE_DATABASE_URL": "<YOUR_SCHEMAGATE_DATABASE_URL>"
      }
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "schemagate": {
      "command": "uvx",
      "args": [
        "schemagate"
      ],
      "env": {
        "SCHEMAGATE_DATABASE_URL": "<YOUR_SCHEMAGATE_DATABASE_URL>"
      }
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "schemagate": {
      "command": "uvx",
      "args": [
        "schemagate"
      ],
      "env": {
        "SCHEMAGATE_DATABASE_URL": "<YOUR_SCHEMAGATE_DATABASE_URL>"
      }
    }
  }
}
Keys / environment: SCHEMAGATE_DATABASE_URL
#11

GeoLens

by geolens-io

Read-only access to a self-hosted GeoLens spatial catalog: datasets, features, maps, sandboxed SQL.

⭐ 277 starsLast push: 2026-10-18License: Apache-2.01,135/mo downloadsRepository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "geolens": {
      "command": "uvx",
      "args": [
        "geolens-mcp"
      ],
      "env": {
        "GEOLENS_INSTANCE": "<YOUR_GEOLENS_INSTANCE>",
        "GEOLENS_API_KEY": "<YOUR_GEOLENS_API_KEY>",
        "GEOLENS_TOKEN": "<YOUR_GEOLENS_TOKEN>"
      }
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add --env GEOLENS_INSTANCE=<YOUR_GEOLENS_INSTANCE> --env GEOLENS_API_KEY=<YOUR_GEOLENS_API_KEY> --env GEOLENS_TOKEN=<YOUR_GEOLENS_TOKEN> geolens -- uvx geolens-mcp
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "geolens": {
      "command": "uvx",
      "args": [
        "geolens-mcp"
      ],
      "env": {
        "GEOLENS_INSTANCE": "<YOUR_GEOLENS_INSTANCE>",
        "GEOLENS_API_KEY": "<YOUR_GEOLENS_API_KEY>",
        "GEOLENS_TOKEN": "<YOUR_GEOLENS_TOKEN>"
      }
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "geolens": {
      "command": "uvx",
      "args": [
        "geolens-mcp"
      ],
      "env": {
        "GEOLENS_INSTANCE": "<YOUR_GEOLENS_INSTANCE>",
        "GEOLENS_API_KEY": "<YOUR_GEOLENS_API_KEY>",
        "GEOLENS_TOKEN": "<YOUR_GEOLENS_TOKEN>"
      }
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "geolens": {
      "command": "uvx",
      "args": [
        "geolens-mcp"
      ],
      "env": {
        "GEOLENS_INSTANCE": "<YOUR_GEOLENS_INSTANCE>",
        "GEOLENS_API_KEY": "<YOUR_GEOLENS_API_KEY>",
        "GEOLENS_TOKEN": "<YOUR_GEOLENS_TOKEN>"
      }
    }
  }
}
Keys / environment: GEOLENS_INSTANCE · GEOLENS_API_KEY · GEOLENS_TOKEN
#12

skillmem

by liza-studio

Skill memory for coding agents: learn, recall, reinforce, decay. Local SQLite, no API key.

⭐ 9 starsLast push: 2026-10-17License: Apache-2.04,269/mo downloadsRepository ↗Full page & details →

Install with your client

Claude Desktopconfig JSON
Claude Desktop
{
  "mcpServers": {
    "skillmem": {
      "command": "uvx",
      "args": [
        "skillmem"
      ]
    }
  }
}
Claude CodeCLI command
Claude Code
claude mcp add skillmem -- uvx skillmem
Cursorconfig JSON
Cursor
{
  "mcpServers": {
    "skillmem": {
      "command": "uvx",
      "args": [
        "skillmem"
      ]
    }
  }
}
VS Codeconfig JSON
VS Code
{
  "servers": {
    "skillmem": {
      "command": "uvx",
      "args": [
        "skillmem"
      ]
    }
  }
}
Windsurfconfig JSON
Windsurf
{
  "mcpServers": {
    "skillmem": {
      "command": "uvx",
      "args": [
        "skillmem"
      ]
    }
  }
}

Other best-of lists

Sources & last verified

  • ▸ Server descriptions, categories and install methods: the public MCP Registry (modelcontextprotocol.io) as of 2026-10-28.
  • ▸ Stars, last-push dates and licenses: GitHub repository API, fetched per entry's own repository on 2026-10-28.
  • ▸ Download counts: npm and PyPI public APIs where a package is listed.
  • ▸ Official / Reference labels follow MCPNav's verified brand table (each verified against the publisher's own repository and documentation).

Last verified: 2026-10-28. Entries change as the underlying data changes; archived repositories are excluded.