Speak your language.
MongoDB wire protocol support lets you connect with familiar drivers and tools.
MONGODB COMPATIBLEA document database with a familiar language
and an independent spirit.
MongoDB compatible. Built in Go. Run it as a server or bring the engine right into your app.
go install github.com/mammothengine/mammoth/cmd/mammoth@v0.1.0-betaYour documents deserve a capable home.
One cohesive engine, from connection
to the storage layer.
MongoDB wire protocol support lets you connect with familiar drivers and tools.
MONGODB COMPATIBLEA write-optimized LSM engine, write-ahead log and sorted tables underneath every document.
LSM-TREE STORAGERun as a standalone database, or embed the Go API directly inside your application.
SERVER + EMBEDDEDFamiliar document operations meet a purpose-built storage foundation. Every layer has a job. Every piece works together.
Look inside the engineOne engine. Two ways in.
Wire protocol or direct Go access.
Keep the expressive queries.
Choose a different foundation.
// A document model that feels familiar.
db.ideas.insertOne({
name: "The next big thing",
builtWith: "mammoth",
ready: true
});
db.ideas.find({ ready: true });{ name: "The next big thing",
builtWith: "mammoth", ready: true }Examples explain the API; no database runs in your browser.Replication and sharding packages for exploring distributed deployments.
Multi-document transactions and snapshot isolation in the engine.
Change streams and TTL indexes for reactive, time-sensitive applications.
Prometheus metrics, health probes and structured logs for operations.
An evolving, prerelease engine. Validate driver compatibility and distributed behavior for your workload. Read the current boundaries
Install the engine. Start a local server.
Bring your favorite MongoDB client.
Build the published beta with the Go toolchain.
go install github.com/mammothengine/mammoth/cmd/mammoth@v0.1.0-betaA local listener. A directory you control.
mammoth serve --bind 127.0.0.1 --port 27017 --data-dir ./dataUse mongosh or your application’s MongoDB driver.
mongosh mongodb://127.0.0.1:27017Mammoth is an open-source, MongoDB-compatible document database written in Go. Use its standalone server with MongoDB clients, or access the engine directly with its embedded Go API.
Compatibility is a goal, not a promise of complete parity. The project implements the MongoDB wire protocol and a growing set of commands. Validate the exact driver versions, operators and operational features your application uses.
Yes. The Go embed package opens a database directory directly, without a server or wire-protocol connection. See the embedded guide for the API and a source-backed example. Read the embedded guide →
Start by evaluating the beta against your workload. Configure authentication and TLS, protect management listeners, test restore procedures, and read the source and deployment guide. The repository’s README, VERSION and release metadata differ; the site does not claim a stable production release.
The repository’s LICENSE file specifies Apache License 2.0. That file is authoritative; the README’s older MIT description is inconsistent with it.