# MongoDB Ruby Driver

> MongoDB's official Ruby driver

Source: https://talira.ai/catalog/mongodb-ruby-driver-9g75dqb6
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / drivers](https://talira.ai/categories/libraries/databases/drivers), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: Apache-2.0[^1][^2]
- Pricing: Free and open source[^1][^2]
- Pricing notes: Free and open source (Apache-2.0); commercial support is available through the MongoDB Support Portal.
- Free tier: yes[^1][^2]
- Supports: [SemVer](https://talira.ai/standards/semver.md)[^1]
- Backed by: [MongoDB](https://talira.ai/orgs/mongodb.md)

The MongoDB Ruby Driver is MongoDB's officially supported driver for connecting Ruby applications to [MongoDB](https://talira.ai/catalog/mongodb-bnayk648.md) and querying and changing its data. It supports Ruby 2.7 to 3.3 and JRuby 9.3 to 9.4, follows semantic versioning, and signs each release after 2.20.0 with the team's GPG key so you can verify the gem. Install it from RubyGems as mongo.

## Links

- GitHub: https://github.com/mongodb/mongo-ruby-driver
- Docs: https://www.mongodb.com/docs/ruby-driver/current/

## Problems it solves

- connect my Ruby app to a MongoDB database
- query and update MongoDB documents from Ruby
- use MongoDB from a JRuby application

## Features

- officially supported by MongoDB
- supports Ruby 2.7 to 3.3 and JRuby 9.3 to 9.4
- GPG-signed releases
- semantic versioning

## Limitations

- Only the most recent minor release of the driver is officially supported.[^1]

## Trust

Overall: 0.56 out of 1.
Signals: maintenance 0.77, adoption 0.63, momentum 0.27, community 0.93, backing 0.30, extensibility 0.00.

- last commit 10 days ago
- 26 commits in the last 90 days
- latest release v2.26.2 10 days ago
- 1.4k GitHub stars
- 211 contributors
- backed by MongoDB

## Related

- Works with [MongoDB](https://talira.ai/catalog/mongodb-bnayk648.md)

## Alternatives

- [mysql2](https://talira.ai/catalog/mysql2-r38appf6.md): Fast MySQL and MariaDB client library for Ruby, binding to libmysqlclient
- [pg](https://talira.ai/catalog/pg-z86bax29.md): The Ruby interface to PostgreSQL

## Sources

[^1]: https://github.com/mongodb/mongo-ruby-driver/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/mongodb/mongo-ruby-driver/blob/master/LICENSE (checked 29 Nov 2026)
