# @testcontainers/mongodb

> MongoDB module for Testcontainers

Latest version **12.1.0** (published 2026-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @testcontainers/mongodb
pnpm add @testcontainers/mongodb
yarn add @testcontainers/mongodb
bun add @testcontainers/mongodb
```

## Health

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

Positive: has types; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 12.1.0 |
| Published | 2026-08-04 |
| First published | 2023-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2612 |
| Maintainers | cristianrgreco |
| Keywords | mongodb, testing, docker, testcontainers |

## Links

- npm: https://www.npmjs.com/package/@testcontainers/mongodb
- Repository: https://github.com/testcontainers/testcontainers-node
- Homepage: https://github.com/testcontainers/testcontainers-node#readme
- Issues: https://github.com/testcontainers/testcontainers-node/issues
- npm.io page: https://npm.io/package/@testcontainers/mongodb

## Dependencies (2)

- [testcontainers](https://npm.io/package/testcontainers.md) ^12.1.0
- [compare-versions](https://npm.io/package/compare-versions.md) ^6.1.1

## 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

- 12.1.0 (latest) — 2026-08-04
- 12.0.4 — 2026-06-29
- 12.0.3 — 2026-06-17
- 12.0.2 — 2026-06-12
- 12.0.1 — 2026-05-27
- 12.0.0 — 2026-05-19
- 11.14.0 — 2026-04-08
- 11.13.0 — 2026-03-17
- 11.12.0 — 2026-02-17
- 11.11.0 — 2025-12-27
- 11.10.0 — 2025-12-09
- 11.9.0 — 2025-11-27
- 11.8.1 — 2025-11-11
- 11.8.0 — 2025-11-05
- 11.7.2 — 2025-10-22
- … 65 more at https://npm.io/package/@testcontainers/mongodb/versions

## README

# Testcontainers

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=116414510&machine=standardLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=EastUs)

[![Test](https://github.com/testcontainers/testcontainers-node/actions/workflows/checks.yml/badge.svg?branch=main)](https://github.com/testcontainers/testcontainers-node/actions/workflows/checks.yml)
[![npm version](https://badge.fury.io/js/testcontainers.svg)](https://www.npmjs.com/package/testcontainers)
[![npm version](https://img.shields.io/npm/dm/testcontainers.svg)](https://www.npmjs.com/package/testcontainers)

![Testcontainers Banner](https://github.com/testcontainers/testcontainers-node/raw/main/docs/site/logo.png)

## [📖 Documentation](https://node.testcontainers.org/)

## License

See [LICENSE](https://github.com/testcontainers/testcontainers-node/blob/main/LICENSE).

## Copyright

Copyright (c) 2018 - 2025 Cristian Greco and other authors.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for how to contribute to this repo.

See [contributors](https://github.com/testcontainers/testcontainers-node/graphs/contributors/) for all contributors.

---

Join our [Slack workspace](https://slack.testcontainers.org/) | [Testcontainers OSS](https://java.testcontainers.org/) | [Testcontainers Cloud](https://www.testcontainers.cloud/)

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