# mongodb/mongo-ruby-driver

The Official MongoDB Ruby Driver

Repository: https://github.com/mongodb/mongo-ruby-driver
Canonical: https://ross.abutalabs.com/products/mongo-ruby-driver
Homepage: https://www.mongodb.com/docs/ruby-driver
Language: Ruby
License: Apache-2.0
License Family: permissive
Topics: mongodb, mongodb-driver, ruby, ruby-on-rails, nosql
Last push: 2026-08-19T07:17:12+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 82, longevity 100
- inputs: {"age_days": 6439, "days_push": 14, "days_rel": 42, "gap_med": 66.5, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1431, forks 535 (observed 2026-08-28T04:04:42.416621+00:00)

## What it is
The officially supported Ruby driver for MongoDB, distributed as the 'mongo' gem. It provides connectivity and CRUD operations against MongoDB Atlas and self-hosted MongoDB clusters, supporting Ruby 2.7-3.3 and JRuby 9.3-9.4.

## Use cases
- connect to mongodb from ruby
- use mongodb with ruby on rails
- query a nosql database in ruby
- store documents in mongodb from a ruby app
- jruby mongodb driver
- official mongodb client for ruby

## When to choose
- you need the officially supported and maintained MongoDB client for Ruby
- you want guaranteed compatibility with MongoDB Atlas and self-hosted clusters
- you need signed, verified releases with GPG signatures

## When to avoid
- you use a language other than Ruby or JRuby
- you need an ODM like Mongoid rather than a low-level driver
- you target a non-MongoDB document database like DocumentDB or Cosmos DB without checking compatibility

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database
- domain: databases, backend, web-development
- platform: ruby, jvm
- tags: mongodb, nosql, official-driver, ruby-on-rails, gem

## Member repositories
- mongodb/mongo-ruby-driver (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:42.416621+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-30T04:37:07.930496+00:00, confidence not recorded.
  - readme: https://github.com/mongodb/mongo-ruby-driver (fetched 2026-08-28T04:04:42.416621+00:00, sha 2940cdeab785)
  - homepage: https://www.mongodb.com/docs/ruby-driver (fetched 2026-08-29T11:48:46.448155+00:00, sha 33ba29f8d9c3)
  - site_page: https://www.mongodb.com/docs/atlas (fetched 2026-08-29T11:48:46.461052+00:00, sha f312e042649e)
  - site_page: https://www.mongodb.com/docs/manual (fetched 2026-08-29T11:48:46.462813+00:00, sha 6a4548d2a71b)
  - site_page: https://www.mongodb.com/docs/tools-and-connectors (fetched 2026-08-29T11:48:46.464325+00:00, sha 7c907d21d3d3)
  - site_page: https://www.mongodb.com/docs/drivers (fetched 2026-08-29T11:48:46.465824+00:00, sha 194534c44bc5)
  - site_page: https://www.mongodb.com/docs/atlas/architecture/current/solutions-library (fetched 2026-08-29T11:48:46.467490+00:00, sha 0dfd723aadd5)
  - site_page: https://www.mongodb.com/company/newsroom (fetched 2026-08-29T11:48:46.469163+00:00, sha e3f69e7b7c0c)
  - site_page: https://www.mongodb.com/company/partners (fetched 2026-08-29T11:48:46.471540+00:00, sha 342527daf5e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
