> /v1/alternatives/mongodb
Open source alternatives to MongoDB[007]
MongoDB is a document database storing JSON-like records with flexible schemas, sharding and the managed Atlas cloud service. Below are 7 self-hostable open source alternatives, ranked by GitHub popularity.
TiDB
TiDB is an open-source, cloud-native, distributed, MySQL-compatible database
★ STARS
40.1k
⑂ FORKS
6.2k
Turso
The Open Contribution Fork of SQLite
★ STARS
16.7k
⑂ FORKS
486
Convex
The open-source reactive database for app developers
★ STARS
11.5k
⑂ FORKS
706
Instant
Instant is the best backend for AI-coded apps. You get auth, permissions, storage, presence, and streams — everything you need to ship apps your users will love.
★ STARS
10.2k
⑂ FORKS
351
Activeloop
Database for AI
★ STARS
9.1k
⑂ FORKS
709
Memgraph
High-performance open-source in-memory graph database for GraphRAG, AI memory, agentic AI, and real-time graph analytics. Cypher-compatible, built in C++.
★ STARS
4.0k
⑂ FORKS
222
SlateDB
A cloud native embedded storage engine built on object storage.
★ STARS
3.0k
⑂ FORKS
228
// EDITOR'S TAKE
Nothing here is a drop-in for MongoDB's wire protocol, so choose by what you actually used it for. Convex and Instant come closest to the developer experience of schemaless documents with live sync to clients, TiDB is the move if you outgrew Mongo and want distributed SQL with strong consistency, and Memgraph only fits if your data was really a graph all along.
// FREQUENTLY ASKED
What is the best open source MongoDB alternative?
TiDB is the most popular open source MongoDB alternative by GitHub stars (40,064 stars). The other 6 options are ranked above.
Are these MongoDB alternatives self-hostable?
Yes — every project listed here is open source and runs on your own infrastructure. Click into a project to see its license, stars, language, and current health status.
Are they free?
All projects shown are free and open source. Check each project's license page for the terms — most are MIT, Apache 2.0, or AGPL.
// PART OF THESE COLLECTIONS