Best MCP servers for databases (2026)
MCP servers that let Claude, Cursor, Codex and other MCP clients query and manage databases: Postgres, MySQL, MongoDB, Redis, ClickHouse, DuckDB, Neo4j and hosted platforms like Supabase, Neon and PlanetScale. Here are the 16 we list, ranked.
How we ranked them: each server here is listed in our MCP servers category and its listing says it does this job. We order them by the GitHub stars recorded on each listing, then visitor star ratings, then the most recent code push to the repo, then listing maturity. Servers without a tracked public repo come last. Links checked 2026-10-21. No paid placements.
The 16 MCP servers for databases, ranked

1. MCP Toolbox for Databases
MCP serversOpen source★ 16,669 GitHub starsOpen-source MCP server from Google for connecting agents to databases.
Pricing (as stated): Open source · Mature · Last code push 2026-10-19

2. DBHub
MCP serversOpen source★ 3,664 GitHub starsDatabase MCP server for Postgres, MySQL, SQL Server and others from Bytebase.
Pricing (as stated): Open source · Active · Last code push 2026-10-13

3. Postgres MCP Pro
MCP serversOpen source★ 3,403 GitHub starsPostgres MCP server with index tuning, explain plans, health checks and safe SQL execution for agents.
Pricing (as stated): Open source · Active · Last code push 2026-08-16

4. Supabase MCP
MCP serversOpen source★ 2,955 GitHub starsSupabase's MCP server for managing databases, migrations and projects.
Pricing (as stated): Open source · Active · Last code push 2026-10-20

5. MongoDB MCP Server
MCP serversOpen source★ 1,143 GitHub starsMongoDB's official MCP server for querying databases and managing Atlas.
Pricing (as stated): Open source · Active · Last code push 2026-10-19

6. StackQL
MCP serversOpen source★ 1,070 GitHub starsSQL engine with an MCP server for querying and provisioning cloud resources.
Pricing (as stated): Open source · Active · Last code push 2026-10-19

7. Neo4j MCP
MCP serversOpen source★ 988 GitHub starsNeo4j MCP servers for querying graphs, managing Aura instances and graph memory.
Pricing (as stated): Open source · Active · Last code push 2026-09-09

8. ClickHouse MCP
MCP serversOpen source★ 888 GitHub starsOfficial ClickHouse MCP server for querying and exploring ClickHouse databases.
Pricing (as stated): Open source · Active · Last code push 2026-10-15

9. Neon MCP
MCP serversOpen source★ 652 GitHub starsNeon's official MCP server for managing Postgres projects, branches and queries.
Pricing (as stated): Open source · Active · Last code push 2026-10-15

10. Redis MCP Server
MCP serversOpen source★ 637 GitHub starsRedis' official MCP server for working with data in Redis through natural language.
Pricing (as stated): Open source · Active · Last code push 2026-10-20

11. dbt MCP
MCP serversOpen source★ 609 GitHub starsdbt Labs' MCP server that gives AI agents context and tools for dbt Core, dbt Fusion and dbt Platform projects.
Pricing (as stated): Open source · Active · Last code push 2026-10-20

12. MotherDuck MCP
MCP serversOpen source★ 531 GitHub starsMotherDuck's MCP server that lets AI assistants run SQL on local DuckDB files, S3-hosted databases and MotherDuck.
Pricing (as stated): Open source · Active · Last code push 2026-10-07

13. Appwrite MCP
MCP serversOpen source + cloud★ 73 GitHub starsAppwrite's official MCP servers, so agents can manage Appwrite databases, users, storage and functions and look up Appwrite docs while building your backend.
Pricing (as stated): Open source + cloud · Active · Last code push 2026-10-20

14. Upstash MCP
MCP serversOpen source★ 60 GitHub starsUpstash's MCP server for managing Redis and other Upstash resources.
Pricing (as stated): Open source · Active · Last code push 2026-09-01

15. Aiven MCP
MCP serversSee site★ 28 GitHub starsAiven's MCP server for provisioning PostgreSQL, managing Apache Kafka and deploying apps from your AI assistant.
Pricing (as stated): See site · Active · Last code push 2026-10-20

16. PlanetScale MCP
MCP serversFreemium★ 5 GitHub starsPlanetScale's MCP server for databases, branches, schemas and query insights.
Pricing (as stated): Freemium · Active · Last code push 2026-10-11
Filter these live in the directory: MCP servers matching “database”, sorted by GitHub stars. You can add pricing and open-source filters there.
How to choose
- Start with the official server for the database you already run (Supabase, Neon, MongoDB, Redis, ClickHouse and others publish their own), then look at multi-database servers like MCP Toolbox for Databases or DBHub if you need several engines.
- Give the agent a read-only database user or a branch/staging copy first. Several of these servers can run writes and migrations.
- Check what the server exposes: plain SQL execution, schema browsing, or admin actions such as creating projects and branches.
- Only connect servers you trust: an MCP server can read and act on whatever its credentials allow.
FAQ
What are the best MCP servers for databases?
Ranked by tracked GitHub stars, then visitor ratings and recent code activity, the top MCP servers for databases in our directory are MCP Toolbox for Databases, DBHub, Postgres MCP Pro, Supabase MCP, MongoDB MCP Server. Stars show popularity, not fit, so try two or three on your own setup.
Are there free MCP servers for databases?
14 of the 16 servers here are listed as open source. Pricing on this page, as each maker states it: Open source (13), Open source + cloud (1), See site (1), Freemium (1). Open-source servers can still need a paid account with the service they connect to.
How does AgentScout rank these MCP servers?
By the GitHub stars recorded on each listing, then visitor star ratings, then the most recent code push to the repo, then listing maturity. Servers without a tracked public repo come after those with one. There are no paid placements.
Which apps can use these MCP servers?
Any MCP client: Claude Desktop, Claude Code, Cursor, Codex, VS Code with Copilot, Windsurf and others. Each server's own docs give the exact config; our free MCP config builder can write the JSON for you.
Related tasks
Web search and scraping · Code, issues and CI · Monitoring and incidents · Gateways and registries · Productivity and team apps · Marketing, SEO and analytics · All MCP servers by task
More: All 230 MCP servers · Free MCP servers · For Claude Code · For Cursor · MCP config builder
Facts come from our directory listings and each project's GitHub repo; pricing is as each maker states it and can change. Missing a server? Submit it free.