MongoDB license history

Database·Last verified 2026-11-06·Confidence: High

Changed from AGPL-3.0-only to SSPL-1.0 starting with 4.0.4 on 2018-10-16.

Versions before 4.0.4 remain under AGPL-3.0-only.

Self-hosting
Allowed
Offering as a managed service (SaaS)
Restricted
Commercial impact: Restricted

This is our summary of the license text and may contain errors or omissions. Check the original sources before you decide. Disclaimer and corrections → · Spot an error? Report it

What changed

MongoDB Community Server moved from AGPL-3.0 to SSPL-1.0 for every release after 2018-10-16, announced on 2018-10-16. On the 4.0 line the first SSPL-1.0 release is 4.0.4. Releases up to 4.0.3 remain under AGPL-3.0.

License timeline

2018-10-16

From 4.0.4

Restricted
Self-hosting: Allowed
Offering as a managed service (SaaS): Restricted

All Community Server releases after 2018-10-16, including patch releases of earlier lines, are under SSPL-1.0. On the 4.0 line, 4.0.3 is the last AGPL-3.0 release and 4.0.4 is the first SSPL-1.0 release, per the repository license files.

Verified 2026-11-06·Confidence: High

Originally released under AGPL-3.0-only

For reference only. Not legal advice. How a license applies depends on your use; the license text and your counsel decide. Methodology and disclaimer →

Forks and alternatives

Get alerts for MongoDB

We email you if MongoDB changes its license again.

Check the box above to show the Google sign-in button.