#4141st of 354 in Backends, databases and hosting

mongo-go-driver

Official MongoDB driver for Go, with a BSON package

Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Releases and problems feed (RSS)

Stars
8.5k
License
Apache-2.0
Last commit
Nov 2026
Last release
Nov 2026
Language
Go
Stars, last 29 weeks+74
2 May 2026: 8,475 stars9 May 2026: 8,475 stars16 May 2026: 8,477 stars23 May 2026: 8,478 stars30 May 2026: 8,480 stars6 Jun 2026: 8,484 stars13 Jun 2026: 8,490 stars20 Jun 2026: 8,492 stars27 Jun 2026: 8,495 stars4 Jul 2026: 8,499 stars11 Jul 2026: 8,501 stars18 Jul 2026: 8,503 stars25 Jul 2026: 8,506 stars1 Aug 2026: 8,508 stars8 Aug 2026: 8,511 stars15 Aug 2026: 8,512 stars22 Aug 2026: 8,516 stars29 Aug 2026: 8,518 stars5 Sept 2026: 8,524 stars12 Sept 2026: 8,525 stars19 Sept 2026: 8,526 stars26 Sept 2026: 8,527 stars3 Oct 2026: 8,528 stars10 Oct 2026: 8,528 stars17 Oct 2026: 8,530 stars24 Oct 2026: 8,531 stars31 Oct 2026: 8,536 stars7 Nov 2026: 8,538 stars14 Nov 2026: 8,544 stars21 Nov 2026: 8,549 stars

8,475 on 2 May 20268,549 on 21 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

MongoDB is hiring: 422 open roles

Overview

Go client library for MongoDB, installed as a Go module (go.mongodb.org/mongo-driver/v2). It provides a mongo.Client with Database and Collection handles, cursors, a bson package, and network compression via snappy, zlib or zstd. Version 2.0 is current, and a migration guide covers upgrading from 1.x.

Who it is for: Go developers building services on MongoDB

Strengths

  • Maintained by MongoDB; follows semantic versioning with a v2.0 migration guide
  • Supports snappy, zlib and zstd network compression, negotiated with the server
  • Connect does not block on server discovery; Ping checks reachability explicitly
  • Includes its own bson package, so no extra serialization dependency

Weaknesses

  • Requires Go 1.25 or higher; only the last two Go minor versions are supported
  • Needs MongoDB 4.4 or newer; older servers are unsupported
  • Running the driver test suite requires Go 1.26 or higher
  • Upgrading from 1.x to 2.0 involves breaking changes and a migration step

What it needs

  • no GPU
  • Docker
  • Needs MongoDB 4.4+

What changed

  1. v2.10.1 ↗ (opens in a new tab)Security fix

    CVE-2026-129934, CVE-2026-129935, GHSA-3C2M-3GH6-65RX, GHSA-29QR-P9GM-XFVF. “Go Driver versions before 2.10.1 (this release) are affected by a security issue related to credential exposure in connection string parse errors (CVE-2026-129934). Users are encouraged to upgrade to…”

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Also in Backends, databases and hosting

See all 354
Also in Backends, databases and hosting
RankProjectScore
#39casdoorSelf-hosted SSO and identity provider with web console Live demo ↗ (opens in a new tab)15k starsApache-2.0known advisory in latest version87 out of 100
#40node-mongodb-nativeOfficial MongoDB driver for Node.js with TypeScript types10.2k starsApache-2.087 out of 100
#42nocodbSpreadsheet-style web UI and REST API on top of SQL databases65.6k starscustom license86 out of 100
#43payloadNext.js-native headless CMS and app framework with a React admin panel46k stars+563 (+1.2%) in 30 daysMIT86 out of 100
#44symfonyPHP web and console framework with a set of reusable components31.5k stars+296 (+0.9%) in 30 daysMIT86 out of 100