Skip to content

Best-of MCP topic

Best MCP Servers for Database

Top MCP servers for connecting AI agents to SQL and NoSQL databases. Query data, inspect schemas, and manage databases safely.

20 servers · Updated 2026 · From 2805 reviewed

Top Picks

#1 Genai Toolbox Scan found nothing
13,424 stars

Open source MCP server specializing in easy, fast, and secure tools for Databases.

Tools (12)

execute_sql (postgres-sql)execute_sql (alloydb)execute_sql (cloud-sql-postgres/mysql/sqlserver)execute_sql (bigquery)execute_sql (spanner)execute_query (firestore)execute_sql (mysql/postgresql/sqlite)execute_query (mongodb)execute_cypher (neo4j)execute_command (redis/valkey)execute_sql (snowflake/bigquery/clickhouse)list_tables

Compatibility

Claude CodeMCP-compatible; supports stdio and HTTP transports usable with Claude Code
Tested
CursorStandard MCP config supported; no explicit Cursor documentation
Partial
VS CodeStandard MCP config supported; no explicit VS Code documentation
Partial
WindsurfStandard MCP config supported; not explicitly documented
Partial
Claude DesktopMCP protocol supported; Claude Desktop config should work via stdio or HTTP
Partial
#2 DBHub Scan found nothing
2,323 stars

Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB

Compatibility

Claude CodeFull support
Tested
CursorFull support
Tested
VS CodeFull support via Copilot
Tested
WindsurfFull support
Tested
Claude DesktopFull support
Tested

Install

Claude Code

claude mcp add dbhub -- npx -y dbhub
#3 MCP Datalink Scan found nothing
1 stars

MCP server for secure database access (PostgreSQL, MySQL, SQLite) with parameterized queries and schema inspection

Compatibility

Claude CodeFull support
Tested
CursorFull support
Tested
VS CodeFull support via Copilot
Tested
WindsurfFull support
Tested
Claude DesktopFull support
Tested

Install

All Database Servers

Fastmcp Sqltools

Scan found nothing
by atarkowska

A MCP server provides SQL database access with support for PostgreSQL, MySQL, and SQLite.

database Python stdio
claude mcp add fastmcp-sqltools -- uvx fastmcp-sqltools
1
View

SmartDB MCP

Scan found nothing
by wenb1n-dev

A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optimization, and more. Compatible with mainstream databases including MySQL, PostgreSQL, SQL Server, MariaDB, Dameng, and Oracle. Supports Streamable HTTP, SSE, and STDIO; integrates OAuth 2.0; and is designed for easy customization and extension by developers.

database Python stdio
110
View

DB Connect MCP

Scan found nothing
by yugui923

Multi-database MCP server for PostgreSQL, MySQL, and ClickHouse

database Python stdio
claude mcp add db-connect-mcp -- uvx db-connect-mcp
1
View

MCP Server Mysql

Scan found nothing
by benborla

MySQL database integration in NodeJS with configurable access controls and schema inspection

database JavaScript stdio
1.4k
View

Arcadedb

Scan found nothing
by ArcadeData Official

Built-in MCP server for ArcadeDB, a multi-model database (graph, document, key-value, time-series, vector) with SQL, Cypher, Gremlin, and MongoDB QL support.

database Java stdio
739
View

Planetscale MCP Server

Scan found nothing
by planetscale

The PlanetScale CLI includes an MCP server that provides AI tools direct access to your PlanetScale databases.

database Go stdio
647
View

Mysql MCP Server Pro

Scan found nothing
by wenb1n-dev

Supports SSE, STDIO; not only limited to MySQL's CRUD functionality; also includes database exception analysis capabilities; controls database permissions based on roles; and makes it easy for developers to extend tools with customization

database Python stdio
291
View

MCP Mysql Server

Scan found nothing
by f4ww4z

Node.js-based MySQL database integration that provides secure MySQL database operations

database JavaScript stdio
154
View

MCP Libsql

Scan found nothing
by Xexr

Production-ready MCP server for libSQL databases with comprehensive security and management tools.

database TypeScript stdio
20
View

PostgreSQL MCP Server

Scan found nothing
by neverinfamous

PostgreSQL MCP server with 203 tools, connection pooling, HTTP/SSE, OAuth 2.1, and tool filtering

database TypeScript stdio
claude mcp add postgresql-mcp -- npx -y postgres-mcp
5
View

PostgreSQL MCP Server

Scan found nothing
by neverinfamous

Enterprise PostgreSQL MCP server with 63 tools, 10 resources, 10 prompts for AI-native operations

database TypeScript stdio
claude mcp add neverinfamous-postgres-mcp -- npx -y postgres-mcp-server
5
View

Read Only Local Mysql MCP Server

Scan found nothing
by hovecapital

MCP server for read-only MySQL database queries in Claude Desktop

database JavaScript stdio
claude mcp add read-only-local-mysql-mcp-server -- npx -y read-only-local-mysql-mcp-server
4
View

Mysql MCP

Scan found nothing
by neverinfamous

Enterprise-grade MySQL MCP Server with OAuth 2.0, 106 tools, and Docker deployment

database TypeScript stdio
claude mcp add mysql-mcp -- npx -y mysql-mcp
3
View

Migrationpilot

Scan found nothing
by mickelsamuel

83 rules to catch dangerous PostgreSQL migrations before production. Lock analysis + auto-fix.

database TypeScript stdio
claude mcp add migrationpilot -- npx -y migrationpilot
2
View

Read Only Local Postgres MCP Server

Scan found nothing
by hovecapital

MCP server for read-only PostgreSQL database queries in Claude Desktop

database JavaScript stdio
claude mcp add read-only-local-postgres-mcp-server -- npx -y read-only-local-postgres-mcp-server
1
View

DB MCP (SQLite MCP Server)

Scan found nothing
by neverinfamous

SQLite MCP server with OAuth 2.1, HTTP/SSE, 122 tools, and smart tool filtering

database TypeScript stdio
claude mcp add db-mcp -- npx -y db-mcp
1
View

Postgres Scout MCP

Scan found nothing
by bluwork

Scout your PostgreSQL databases with AI - safety features, monitoring, and data quality

database TypeScript stdio
claude mcp add postgres-scout-mcp -- npx -y postgres-scout-mcp
View

FAQ

What are the best MCP servers for Database?

These are the 20 highest-signal Database servers from a directory of 2805, ranked by stars, maintenance recency and what our automated scan returned. Nobody here has used them: this is a sort, not a review. Genai Toolbox is top of the list.

How do I install these MCP servers?

Each server page includes one-click install commands for Claude Code, Cursor, and VS Code. Click on any server above to see its install instructions.

Are these MCP servers safe to use?

No. 2,316 of the 2,805 servers here were shallow-cloned and put through five keyword searches in March 2026; 489 were never scanned at all. A green badge means those five searches matched nothing, which is not the same as safe — a grep cannot follow a variable or tell you what a server does once it is running. Read what the scan actually checks at /mcp/security, and read the source before you run anything.

Use the shortlist, then open a concrete workflow

Best-of pages are useful for narrowing options. The next practical move is a specific server detail page or a focused browser-first tool route.