Open-source MCP servers for databases (2026)
MCP servers for databases with public source code you can read, self-host and extend. Here are the top 25 of 29 from the AgentScout directory.
Quick answer: the top picks on this list, ranked by GitHub stars and listing maturity, are PrivateGPT, Chroma and Dbx, out of 25 tools listed below. At a glance: 25 open-source, 25 free or freemium and 25 local or self-hosted across 25 link-checked tools (last verified ).
Verified on : every tool link on this page was checked by our daily link check. No paid placements.
Ranked comparison (top 10)
| # | Tool | Pricing | Best for | Open source | Runs locally | GitHub stars |
|---|---|---|---|---|---|---|
| 1 | Open source | build an agent, connect tools via MCP | Yes | Self-hosted | 57,620 | |
| 2 | Open source + cloud | research the web, give agents memory | Yes | Self-hosted | 29,609 | |
| 3 | Open source + cloud | control a computer, connect tools via MCP | Yes | Self-hosted | 28,251 | |
| 4 | Open source + cloud | data & analytics | Yes | Self-hosted | 21,938 | |
| 5 | Open source + cloud | data & analytics | Yes | Self-hosted | 18,020 | |
| 6 | Open source | connect tools via MCP | Yes | Self-hosted | 16,762 | |
| 7 | Open source + cloud | write code | Yes | Self-hosted | 13,268 | |
| 8 | Open source + cloud | research the web, give agents memory | Yes | Self-hosted | 11,816 | |
| 9 | Open source + cloud | automate workflows | Yes | Self-hosted | 10,420 | |
| 10 | Open source + cloud | research the web, automate workflows | Yes | Self-hosted | 9,263 |
Updated
How we picked and ranked: tools are matched by category, the pricing each maker states and what each tool says it does. They are ranked by GitHub stars as recorded on each listing (link checks 2026-11-01); tools without a tracked repo follow, by listing maturity. No paid placements.

1. PrivateGPT
Open-source API layer that turns local models into private AI applications, with RAG, tools, skills, MCP and text-to-SQL on any OpenAI-compatible server.
Pricing (as stated): Open source · Mature

2. Chroma
Open-source search and vector database widely used for agent memory and RAG.
Pricing (as stated): Open source + cloud · Mature

3. Dbx
25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker.
Pricing (as stated): Open source + cloud · Mature

4. Teable
AI spreadsheet and database for business with built-in agents.
Pricing (as stated): Open source + cloud · Mature

5. WrenAI
Generative BI for agents: governed text-to-SQL with a semantic context layer.
Pricing (as stated): Open source + cloud · Mature

6. MCP Toolbox for Databases
Open-source MCP server from Google for connecting agents to databases.
Pricing (as stated): Open source · Mature

7. InsForge
Open-source backend platform that gives coding agents a database, auth and storage.
Pricing (as stated): Open source + cloud · Mature

8. LanceDB
Open-source multimodal vector database for search, RAG and agent memory.
Pricing (as stated): Open source + cloud · Mature

9. Electric
Sync engine and agent platform that keeps data in sync between Postgres, apps and agents in real time.
Pricing (as stated): Open source + cloud · Mature

10. Activeloop
Deep Lake, a multimodal database for AI that stores vectors, images, text and video so agents and RAG apps can search and retrieve them.
Pricing (as stated): Open source + cloud · Mature

11. DBHub
Database MCP server for Postgres, MySQL, SQL Server and others from Bytebase.
Pricing (as stated): Open source · Active

12. Postgres MCP Pro
Postgres MCP server with index tuning, explain plans, health checks and safe SQL execution for agents.
Pricing (as stated): Free and open source (MIT) · Active

13. seekdb
AI-native search database for agent storage combining vector, text and structured data.
Pricing (as stated): Open source · Active

14. Butterbase
Open-source backend-as-a-service. Postgres, auth, storage, functions, AI gateway, MCP
Pricing (as stated): Open source · Active

15. Supabase MCP
Supabase's MCP server for managing databases, migrations and projects.
Pricing (as stated): Open source · Active

16. Carbon
Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server.
Pricing (as stated): Open source + cloud · Active

17. Proton
The Fastest Unified Streaming SQL Engine in a Single C++ Binary. Millisecond latency.
Pricing (as stated): Open source + cloud · Active

18. pg-aiguide
Timescale's MCP server with PostgreSQL docs and best practices for agents.
Pricing (as stated): Open source · Active

19. Helix Foundry
Connects Postgres, MySQL, S3, Stripe, GitHub, Linear and uploaded documents, lets an agent draft an ontology you review and version, then loads it into HelixDB as one graph you can explore and query with answers.
Pricing (as stated): Open source + cloud · Active

20. Qdrant MCP Server
Official Qdrant MCP server that lets agents store and retrieve memories and documents in the Qdrant vector database.
Pricing (as stated): Open source · Active

21. Mysql MCP Server
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Pricing (as stated): Open source + cloud · Active

22. MongoDB MCP Server
MongoDB's official MCP server for querying databases and managing Atlas.
Pricing (as stated): Open source · Active

23. StackQL
SQL engine with an MCP server for querying and provisioning cloud resources.
Pricing (as stated): Open source · Active

24. Cayu
Cayu is an open-source Python framework for building and running domain-specific, long-horizon agents on a durable runtime. Sessions survive restarts and redeploys from SQLite or Postgres stores, tool policies can require human approval before side effects, spend caps are checked before each model call, and timers, background tasks, subagents and forks cover longer multi-agent work. It is Apache 2.0 licensed.
Pricing (as stated): Open source · Active

25. ClickHouse MCP
Official ClickHouse MCP server for querying and exploring ClickHouse databases.
Pricing (as stated): Open source · Active
FAQ
What are the best open-source MCP servers for databases?
Ranked by tracked GitHub stars, the top open-source MCP servers for databases in our directory are PrivateGPT, Chroma, Dbx, Teable, WrenAI. Stars measure popularity, not fit, so compare a few against your own task.
How many open-source MCP servers for databases does AgentScout list?
29 tools match. This page shows the top 25. Pricing mix on this page: Open source (13), Open source + cloud (12).
How much do these tools cost?
Pricing is what each maker states on their site. Open-source tools are free to self-host but may need a paid model API key or offer paid cloud plans; freemium tools have a free plan with limits. Check each official site.
Where can I see every tool for working with databases?
Our task page lists all 35 tools we match to working with databases.
Related: All tools for working with databases · MCP servers (11) · memory & RAG (6) · data & analytics (4) · agent infra (2)
By role: For data analysts · For data engineers
All popular searches · AI agents by role · Free tools
Best-of lists: OpenViking alternatives · All best lists
Related categories: MCP servers · Memory & RAG · Data & analytics
Facts come from our directory listings; pricing is as each maker states it and can change. Check official sites before you choose.