# mongodb/mongo-go-driver

The Official Golang driver for MongoDB

Repository: https://github.com/mongodb/mongo-go-driver
Canonical: https://ross.abutalabs.com/products/mongo-go-driver
Homepage: https://www.mongodb.com/docs/drivers/go/current/
Language: Go
License: Apache-2.0
License Family: permissive
Topics: database, driver, go, golang, golang-library, mongodb
Last push: 2026-08-26T15:33:25+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 3493, "days_push": 7, "days_rel": 9, "gap_med": 13, "n_releases_24m": 30}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8538, forks 939 (observed 2026-08-28T04:10:23.396858+00:00)

## What it is
The official MongoDB driver for Go, providing a mongo client, BSON serialization, and CRUD/aggregation APIs for MongoDB 4.4+. It is actively maintained by MongoDB and follows semantic versioning, currently at major version 2.

## Use cases
- connect to mongodb from a go application
- insert and query documents in mongodb using golang
- run mongodb aggregations from go
- store and retrieve bson documents in go
- use mongodb atlas with a go backend
- build a rest api backed by mongodb in go

## When to choose
- you are building a Go application or service that uses MongoDB or Atlas
- you want an officially supported, semver-versioned driver with BSON support
- you need CRUD, aggregation, sessions, and authentication against MongoDB 4.4+

## When to avoid
- you use a database other than MongoDB or a compatible document store
- you are not working in Go
- you need an ORM with schema migrations rather than a raw driver

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database, serialization
- domain: databases, backend, developer-tools
- platform: go, cross-platform
- tags: mongodb, bson, official-driver, nosql, go-library

## Member repositories
- mongodb/mongo-go-driver (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:23.396858+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:26:20.775848+00:00, confidence not recorded.
  - readme: https://github.com/mongodb/mongo-go-driver (fetched 2026-08-28T04:10:23.396858+00:00, sha 4e805356fa91)
  - homepage: https://www.mongodb.com/docs/drivers/go/current/ (fetched 2026-08-29T08:26:57.592371+00:00, sha 9360d149571b)
  - site_page: https://www.mongodb.com/docs/atlas (fetched 2026-08-29T08:26:57.603173+00:00, sha f312e042649e)
  - site_page: https://www.mongodb.com/docs/manual (fetched 2026-08-29T08:26:57.604896+00:00, sha 6a4548d2a71b)
  - site_page: https://www.mongodb.com/docs/tools-and-connectors (fetched 2026-08-29T08:26:57.606441+00:00, sha ca512e9beb86)
  - site_page: https://www.mongodb.com/docs/drivers (fetched 2026-08-29T08:26:57.608075+00:00, sha 194534c44bc5)
  - site_page: https://www.mongodb.com/docs/atlas/architecture/current/solutions-library (fetched 2026-08-29T08:26:57.609720+00:00, sha 0dfd723aadd5)
  - site_page: https://www.mongodb.com/company/newsroom (fetched 2026-08-29T08:26:57.611571+00:00, sha e3f69e7b7c0c)
  - site_page: https://www.mongodb.com/company/partners (fetched 2026-08-29T08:26:57.614496+00:00, sha 342527daf5e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
