Skip to content

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 Verified
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 Verified
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 Verified
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

Verified
by atarkowska

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

database Python stdio
1
View

SmartDB MCP

Verified
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

Verified
by yugui923

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

database Python stdio
1
View

MCP Server Mysql

Verified
by benborla

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

database JavaScript stdio
1.4k
View

Arcadedb

Verified
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

Verified
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

Verified
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

Verified
by f4ww4z

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

database JavaScript stdio
154
View

MCP Libsql

Verified
by Xexr

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

database TypeScript stdio
20
View

PostgreSQL MCP Server

Verified
by neverinfamous

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

database TypeScript stdio
5
View

PostgreSQL MCP Server

Verified
by neverinfamous

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

database TypeScript stdio
5
View

Read Only Local Mysql MCP Server

Verified
by hovecapital

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

database JavaScript stdio
4
View

Mysql MCP

Verified
by neverinfamous

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

database TypeScript stdio
3
View

Migrationpilot

Verified
by mickelsamuel

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

database TypeScript stdio
2
View

Read Only Local Postgres MCP Server

Verified
by hovecapital

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

database JavaScript stdio
1
View

DB MCP (SQLite MCP Server)

Verified
by neverinfamous

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

database TypeScript stdio
1
View

Postgres Scout MCP

Verified
by bluwork

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

database TypeScript stdio
View

FAQ

What are the best MCP servers for Database?

We reviewed 2805 MCP servers and selected 20 top picks for Database. Our top recommendation is Genai Toolbox.

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?

Every server in our directory is safety-rated. Look for the safety badge on each server card — green means verified safe, yellow means use with caution.

Browse Other Topics

Not sure where to start?

Try a Starter Pack — pre-built server collections for common roles.

Browse Starter Packs