Remote OpenClaw Blog
Best Database MCP Servers in 2026
8 min read ·
DBHub by Bytebase is the best database MCP server in 2026: with 3,032 GitHub stars as of July 2026, it is the most-starred genuine database server in the Remote OpenClaw directory's 704-server Databases category, and it connects an AI agent to PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite through one gateway. If you run a single engine, a dedicated server usually beats a gateway, which is why the seven picks below cover Postgres, MongoDB, Supabase, ClickHouse, Redis, and Neon individually, each ranked by GitHub stars with a verified install command.
How We Ranked the Best Database MCP Servers
Database MCP servers are Model Context Protocol servers that let an AI agent query and manage a database through natural language instead of hand-written SQL. This list ranks them by GitHub stars inside the Remote OpenClaw Databases category, verified against each repository on July 4, 2026, and picks one clear winner per engine so the list reads as a starter kit rather than a pile of near-duplicates.
One filtering note: the raw star leaderboard in the Databases category includes tools like knowledge-base scrapers and code-graph indexers that are not really databases. We removed those so every entry below is a server whose job is talking to an actual database engine. For a workflow-focused companion, see our database management MCP roundup.
The 8 Best Database MCP Servers in 2026
These eight servers cover universal SQL access, Postgres, MySQL, MongoDB, Supabase, ClickHouse, Redis, and Neon. Install commands were verified against each repository's README in July 2026.
1. DBHub - one server, five SQL engines
DBHub (3,032 stars) is a universal database gateway that exposes PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite through a single MCP endpoint, so one install covers most stacks. You point it at a database with a standard connection string (DSN). Directory page: bytebase/dbhub.
claude mcp add dbhub -- npx -y @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:pass@localhost:5432/dbname?sslmode=disable"
2. Postgres MCP Pro - deep PostgreSQL tuning
Postgres MCP Pro (2,965 stars) goes past schema browsing with index tuning that simulates hypothetical indexes via the hypopg extension, EXPLAIN plan review, and database health checks. Its access-mode flag lets you lock it to read-only for safer production use. Full walkthrough in our Postgres MCP server guide; directory page: crystaldba/postgres-mcp.
claude mcp add postgres -- uvx postgres-mcp --access-mode=unrestricted
3. MongoDB MCP Server - the official document-database pick
The official MongoDB MCP Server (1,064 stars) reads collections, runs aggregations, and manages Atlas clusters from chat, covering the biggest NoSQL engine that DBHub does not. Point it at a connection string with the MDB_MCP_CONNECTION_STRING environment variable. Directory page: mongodb-js/mongodb-mcp-server.
claude mcp add mongodb -- npx -y mongodb-mcp-server
4. Supabase MCP Server - Postgres plus platform APIs
Supabase MCP Server (827 stars) runs SQL with risk assessment, manages schema migrations with versioning, and calls the Supabase Management and Auth Admin APIs, all with built-in safety controls. It needs your project ref and database password set as environment variables. See our Supabase MCP guide; directory page: alexander-zuev/supabase-mcp-server.
claude mcp add supabase -- uvx supabase-mcp-server
5. ClickHouse MCP - analytics at column-store speed
The official ClickHouse MCP (810 stars) runs read-only analytical queries against ClickHouse and also ships chDB support for in-process OLAP, which suits agents that need to summarize large event tables. Directory page: ClickHouse/mcp-clickhouse.
claude mcp add clickhouse -- uvx mcp-clickhouse
6. Neon MCP - serverless Postgres over a remote endpoint
The official Neon MCP Server (612 stars) manages serverless Postgres projects, branches, and migrations, and it runs as a hosted remote server at https://mcp.neon.tech/mcp with OAuth, so there is nothing local to install and no API key to paste. Directory page: neondatabase/mcp-server-neon.
claude mcp add --transport http neon https://mcp.neon.tech/mcp
7. Redis MCP - keys, caches, and vectors
The official Redis MCP (539 stars) reads and writes strings, hashes, streams, and vector indexes, which is useful when your agent needs to inspect a cache or session store rather than a relational table. Directory page: redis/mcp-redis.
claude mcp add redis -- uvx --from redis-mcp-server@latest redis-mcp-server --url redis://localhost:6379/0
8. AWS Database Servers - DynamoDB, Aurora, and more
For managed AWS engines, the awslabs/mcp monorepo (9,377 stars across the whole project) ships dedicated servers for DynamoDB, Aurora, DocumentDB, and other data stores, each published to PyPI and run with your AWS credentials. Directory page: awslabs/mcp.
uvx awslabs.dynamodb-mcp-server@latest
Comparison Table: Best Database MCP Servers at a Glance
The table below compares all eight picks on engine coverage, stars, and hosting model, with star counts current as of July 4, 2026.
| Rank | Server | Best for | Stars (Jul 2026) | Credentials | Runs |
|---|---|---|---|---|---|
| 1 | DBHub | Any SQL engine | 3,032 | Connection string | Local or Docker |
| 2 | Postgres MCP Pro | Postgres tuning | 2,965 | Connection string | Local or Docker |
| 3 | MongoDB MCP | Document DB | 1,064 | Connection string | Local |
| 4 | Supabase MCP | Supabase projects | 827 | Project ref + password | Local |
| 5 | ClickHouse MCP | Analytics | 810 | Host + credentials | Local |
| 6 | Neon MCP | Serverless Postgres | 612 | OAuth | Remote |
| 7 | Redis MCP | Cache and vectors | 539 | Redis URL | Local |
| 8 | AWS Database Servers | DynamoDB, Aurora | 9,377 (project) | AWS credentials | Local |
How to Choose a Database MCP Server
Pick a universal gateway when your stack mixes engines, and a dedicated server when it does not. DBHub is the fastest way to give an agent read access across a mixed SQL environment, but a single-engine tool like Postgres MCP Pro exposes engine-specific superpowers, in this case index tuning and EXPLAIN analysis, that a generic gateway cannot.
Match the transport to your setup, too. Remote servers like Neon use OAuth and need no local process, which is convenient but routes queries through a vendor endpoint. Local servers keep the connection inside your machine but require you to manage the connection string and credentials yourself. For anything touching production, start read-only: Postgres MCP Pro, DBHub, and the AWS servers all support restricted or read-only modes.
Whichever you choose, add it through the standard MCP flow. Our Claude Code MCP servers guide covers scopes and environment variables, and the full cross-category ranking lives in Best MCP Servers in 2026.
Limitations and Tradeoffs
A database MCP server is only as safe as the credentials you give it. An agent with write access can drop tables or leak rows through prompt injection, so scope the connection to a read-only role and a single schema, and treat every server as untrusted code until you have reviewed it. Our guide on securing MCP server connections covers credential scoping and read-only modes in depth.
Stars measure popularity, not safety or freshness. The AWS monorepo's 9,377 stars belong to dozens of servers, not one, and a 500-star server updated last week can be a better bet than a 5,000-star project abandoned a year ago, which is why the table pairs stars with what each server actually connects to. When a count reflects a whole project rather than its MCP endpoint, we say so.
Related Guides
- Best MCP Servers for Database Management in 2026
- Postgres MCP Server: Setup and Query Guide
- Supabase MCP Server: Connect Claude to Supabase
- Best MCP Servers in 2026: The Complete Ranked List
Go deeper
The operator playbooks
Production-ready PDF guides for OpenClaw and Hermes Agent — $19.99 each.
Skills for this topic
Browse all skills →Frequently Asked Questions
What is the best database MCP server in 2026?
DBHub by Bytebase is the best overall database MCP server in 2026, with 3,032 GitHub stars as of July 2026, because it connects an AI agent to PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite through one gateway. For a single engine, a dedicated server is often better: Postgres MCP Pro leads Postgres with index tuning, and the official MongoDB MCP
Is there an official MCP server for Postgres, MySQL, or MongoDB?
MongoDB, Redis, ClickHouse, and Neon all publish official MCP servers, and they are the picks used above. Postgres and MySQL have no single official server, so the community leaders are Postgres MCP Pro for Postgres and DBHub, which speaks MySQL among five SQL engines. All of them are listed in our Databases MCP directory .
Are database MCP servers safe to connect to production?
Database MCP servers can be safe in production only if you scope their credentials tightly. Give the server a read-only role limited to one schema, use restricted or read-only mode where the server supports it (Postgres MCP Pro and DBHub both do), and review the source before installing. Our MCP security guide explains credential scoping.
How do I install a database MCP server in Claude Code?
Run claude mcp add <name> -- <command> for a local server, for example claude mcp add postgres -- uvx postgres-mcp --access-mode=unrestricted , or claude mcp add --transport http <name> <url> for a remote one like Neon. Our Claude Code MCP guide covers scopes and environment variables.
Which database MCP server needs no local install?
The Neon MCP Server needs no local install because it runs as a hosted remote endpoint at https://mcp.neon.tech/mcp with OAuth, so there is no process to run and no API key to paste. Add it with claude mcp add --transport http neon https://mcp.neon.tech/mcp .





