MongoDB Node Driver
Official Node.js driver for MongoDB providing query builders and connection management.
Databases, ORMs and clients npm Apache-2.0
Used in agent projects
86
0.7% of 12,697 public repos built with AI coding agents
Rank in databases, orms and clients
#12 of 30
by use in those projects
Downloads
15.3M
npm, last 7 days, mongodb
GitHub stars
10.2K
last push Oct 9, 2026
How MongoDB Node Driver is used
MongoDB Node Driver is a dependency in 86 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.7%), #12 of 30 in databases, orms and clients. The most used alternative there is Prisma. Projects that use it most often also use dotenv (52.3%), Mongoose (30.2%), Axios (33.7%).
Often used with MongoDB Node Driver
| dotenv | 52.3% of MongoDB Node Driver projects · 3.3× more than average |
|---|---|
| Mongoose | 30.2% of MongoDB Node Driver projects · 27.0× more than average |
| Axios | 33.7% of MongoDB Node Driver projects · 3.4× more than average |
| Express | 26.7% of MongoDB Node Driver projects · 4.1× more than average |
| Next.js | 47.7% of MongoDB Node Driver projects · 2.1× more than average |
| cors | 24.4% of MongoDB Node Driver projects · 7.3× more than average |
| Framer Motion | 34.9% of MongoDB Node Driver projects · 2.6× more than average |
| Tailwind Merge | 38.4% of MongoDB Node Driver projects · 2.3× more than average |
By coding agent
| Claude Code | 0.6% of projects set up for it |
|---|---|
| GitHub Copilot | 0.6% of projects set up for it |
| Cursor | 0.5% of projects set up for it |
Share of public repos configured for each agent that list MongoDB Node Driver as a dependency.
Install
| Package | npm install mongodb |
|---|---|
| Main stacks | TypeScript / JavaScript (41), Next.js (39), Python (4), Other (1) |
| Example projects | cin12211/orca-q, Bike4Mind/bike4mind, ourzora/zora-token, bryantanjw/pascal-client-v1, NillionNetwork/secretvaults-ts |
Alternatives to MongoDB Node Driver
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Prisma npm Modern ORM with intuitive schema, migrations, and type-safe database queries. |
381 (3.0%) | 19M | 23 | Apache-2.0 |
| pg npm PostgreSQL client for Node.js with pure JavaScript and libpq API compatibility. |
372 (2.9%) | 63.4M | 13.2K | MIT |
| Drizzle ORM npm TypeScript ORM for SQL databases with type safety and zero-runtime overhead. |
323 (2.5%) | 27.2M | 36K | Apache-2.0 |
| Drizzle Kit npm CLI migration tool for Drizzle ORM that auto-generates SQL migrations intelligently. |
309 (2.4%) | 22.3M | 36K | MIT |
| SQLAlchemy pypi Python SQL toolkit and object-relational mapper for database abstraction. |
250 (2.0%) | 85.7M | 12.2K | — |
| better-sqlite3 npm Fastest and simplest SQLite library for Node.js with synchronous API. |
162 (1.3%) | 11.3M | 7,513 | MIT |
| psycopg2 pypi Popular PostgreSQL adapter for Python with full database access and query execution. |
143 (1.1%) | 50.7M | 3,656 | LGPL with exceptions |
| Mongoose npm MongoDB object modeling library providing schema validation and query building. |
142 (1.1%) | 6.6M | 27.5K | MIT |