For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.

Install the MongoDB Database Tools

Download from the MongoDB Download Center. To install with a package manager, select your operating system and package management method in the following steps.

Operating System
Package Management

The Database Tools include the following binaries:

Binary Import / Export

    mongodump

Creates a binary export of the contents of a mongod database.

Restores data from a mongodump database dump into a mongod or mongos.

    bsondump

Converts BSON dump files into JSON.

Data Import / Export

Imports content from an Extended JSON, CSV, or TSV export file.

Produces a JSON or CSV export of data stored in a mongod instance.

Diagnostic Tools

    mongostat

Provides a quick overview of the status of a currently running mongod or mongos instance.

    mongotop

Provides an overview of the time a mongod instance spends reading and writing data.

GridFS Tools

Supports manipulating files stored in your MongoDB instance in GridFS objects.

Every release artifact of the Database Tools contains a Software Bill of Materials (SBOM) report and a static analysis report. Both reports are JSON files named after the artifact that contains them:

  • The SBOM report uses the CycloneDX format and ends with .cdx.json.

  • The static analysis report uses the SARIF format and ends with .sarif.json.

For operating system packages, reports are installed with the package's documentation. For example, mongodb-database-tools_100.20.1_amd64.deb installs them to:

  • /usr/share/doc/mongodb-database-tools/mongodb-database-tools_100.20.1_amd64.deb.cdx.json

  • /usr/share/doc/mongodb-database-tools/mongodb-database-tools_100.20.1_amd64.deb.sarif.json

For archives, reports are located at the top level of the archive. For example, mongodb-database-tools-ubuntu2404-x86_64-100.20.1.tgz contains:

  • mongodb-database-tools-ubuntu2404-x86_64-100.20.1.tgz.cdx.json

  • mongodb-database-tools-ubuntu2404-x86_64-100.20.1.tgz.sarif.json

After you install the Database Tools, use the following tools to work with your MongoDB data: