# mongodb-memory-server

> MongoDB Server for testing (auto-download latest version). The server will allow you to connect your favourite ODM or client library to the MongoDB Server and run parallel integration tests isolated from each other.

Latest version **11.2.0** (published 2026-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install mongodb-memory-server
pnpm add mongodb-memory-server
yarn add mongodb-memory-server
bun add mongodb-memory-server
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 11.2.0 |
| Published | 2026-05-28 |
| First published | 2017-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=20.19.0 |
| Dependencies | 2 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2844 |
| Maintainers | nodkz, hasezoey |
| Keywords | mongodb, mongoose, mock, stub, mockgoose, mongodb-prebuilt, mongomem |

## Links

- npm: https://www.npmjs.com/package/mongodb-memory-server
- Repository: https://github.com/typegoose/mongodb-memory-server
- Issues: https://github.com/typegoose/mongodb-memory-server/issues
- npm.io page: https://npm.io/package/mongodb-memory-server

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [mongodb-memory-server-core](https://npm.io/package/mongodb-memory-server-core.md) 11.2.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 11.2.0 (latest) — 2026-05-28
- 11.3.0-beta.3 (beta) — 2026-09-09
- 10.4.3 (old/10.x) — 2025-12-23
- 9.5.0 (old/9.x) — 2024-11-01
- 8.16.1 (old/8.x) — 2024-07-13
- 7.6.3 (old/7.x) — 2021-11-07
- 11.3.0-beta.2 — 2026-09-03
- 11.3.0-beta.1 — 2026-07-20
- 11.1.0 — 2026-04-29
- 11.0.1 — 2025-12-23
- 10.4.2 — 2025-12-15
- 11.0.0 — 2025-12-15
- 11.0.0-beta.4 — 2025-12-15
- 11.0.0-beta.3 — 2025-12-04
- 10.4.1 — 2025-12-04
- … 364 more at https://npm.io/package/mongodb-memory-server/versions

## README

# mongodb-memory-server

[![Node.js CI](https://github.com/typegoose/mongodb-memory-server/workflows/Node.js%20CI/badge.svg)](https://github.com/typegoose/mongodb-memory-server/actions/workflows/tests.yml?query=workflow%3A%22Node.js+CI%22)
[![NPM version](https://img.shields.io/npm/v/mongodb-memory-server.svg)](https://www.npmjs.com/package/mongodb-memory-server)
[![Downloads stat](https://img.shields.io/npm/dt/mongodb-memory-server.svg)](http://www.npmtrends.com/mongodb-memory-server)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![TypeScript compatible](https://img.shields.io/badge/typescript-compatible-brightgreen.svg)](https://www.typescriptlang.org)
[![codecov.io](https://codecov.io/github/typegoose/mongodb-memory-server/coverage.svg?branch=master)](https://codecov.io/github/typegoose/mongodb-memory-server?branch=master)
[![Backers on Open Collective](https://opencollective.com/mongodb-memory-server/backers/badge.svg)](#backers)
[![Sponsors on Open Collective](https://opencollective.com/mongodb-memory-server/sponsors/badge.svg)](#sponsors)
[![mongodb-memory-server](https://snyk.io/advisor/npm-package/mongodb-memory-server/badge.svg)](https://snyk.io/advisor/npm-package/mongodb-memory-server)

Main default package which downloads mongod binary to `./node_modules/.cache` directory on package install.

[Full README with avaliable options and examples](https://github.com/typegoose/mongodb-memory-server)

---
_Source: https://npm.io/package/mongodb-memory-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
