Notices: This section not yet converted to new layout. Download stats are rolling back out.

This is not the latest version of MongoDB (Install) available.

MongoDB (Install)


Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.
  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.
Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

This package was approved by moderator Pauby on 2/8/2019.

MongoDB (from "humongous") is a scalable, high-performance, open source NoSQL database written in C++.

MongoDB stores data using a flexible document data model that is similar to JSON. Documents contain one or more fields, including arrays, binary data and sub-documents. Fields can vary from document to document. This flexibility allows development teams to evolve the data model rapidly as their application requirements change.

Developers access documents through rich, idiomatic drivers available in all popular programming languages. Documents map naturally to the objects in modern languages, which allows developers to be extremely productive. Typically, there’s no need for an ORM layer.

Package Parameters

The following package parameters can be set:

  • /dataPath: - where MongoDB stores its database files - defaults to "$env:ProgramData\MongoDB\data\db"
  • /logPath: - where MongoDB stores its logs - defaults to "$env:ProgramData\MongoDB\log"

To pass parameters, use --params "''" (e.g. choco install packageID [other options] --params="'/ITEM:value /ITEM2:value2 /FLAG_BOOLEAN'").
To have choco remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades.

Please Note: This is an automatically updated package. If you find it is
out of date by more than a day or two, please contact the maintainer(s) and
let them know the package is no longer updating correctly.

To install MongoDB (Install), run the following command from the command line or from PowerShell:

C:\> choco install mongodb.install --version 4.0.6

To upgrade MongoDB (Install), run the following command from the command line or from PowerShell:

C:\> choco upgrade mongodb.install --version 4.0.6


  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop';
    $toolsDir       = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $url64          = ''
    $checksum64     = 'aeb91f88930c77828c45f6aa41ad8219a8bb7c90c1a3c308b92329afc907cb1c'
    $checksumType64 = 'sha256'
    $silentArgs     = 'ADDLOCAL="Server,ServerService,Router,Client,MonitoringTools,ImportExportTools,MiscellaneousTools" /qn /norestart'
    $dataPath       = "$env:PROGRAMDATA\MongoDB\data\db"
    $logPath        = "$env:PROGRAMDATA\MongoDB\log"
    # Allow the user to specify the data and log path, falling back to sensible defaults
    $pp = Get-PackageParameters
    if($pp.dataPath) {
        $dataPath = $pp.dataPath
    if($pp.logPath) {
        $logPath = $pp.logPath
    # Create directories
    New-Item -ItemType Directory $dataPath -ErrorAction SilentlyContinue
    New-Item -ItemType Directory $logPath -ErrorAction SilentlyContinue
    $silentArgs += " MONGO_DATA_PATH=`"$dataPath`" "
    $silentArgs += " MONGO_LOG_PATH=`"$logPath`" "
    $packageArgs = @{
      packageName    = $env:ChocolateyPackageName
      unzipLocation  = $toolsDir
      fileType       = 'msi'
      url64bit      = $url64
      checksum64    = $checksum64
      checksumType64= $checksumType64
      softwareName   = 'MongoDB *'
      silentArgs     = $silentArgs
      validExitCodes = @(0,3010)
    Install-ChocolateyPackage @packageArgs
    # start the service
    Start-Service -Name MongoDB -ErrorAction SilentlyContinue
    # service status
    if((Get-Service -Name MongoDB).Status -ne "Running") {
      Write-Warning "  * MongoDB service is currenty not running, this could be due to an required reboot of one of the dependencies"

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.


Package Maintainer(s)

Software Author(s)

  • MongoDB Inc


MongoDB Inc


Release Notes

Version History

Version Downloads Last updated Status
MongoDB (Install) 4.0.9 2249 Tuesday, April 16, 2019 approved
MongoDB (Install) 4.0.8 1178 Friday, March 29, 2019 approved
MongoDB (Install) 4.0.7 382 Monday, March 25, 2019 approved
MongoDB (Install) 4.0.6 2285 Thursday, February 7, 2019 approved
MongoDB (Install) 4.0.5 1959 Thursday, December 20, 2018 approved
MongoDB (Install) 4.0.4 619 Monday, December 10, 2018 approved
MongoDB (Install) 3.6.3 3182 Thursday, March 8, 2018 approved
MongoDB (Install) 3.6.2 574 Wednesday, February 21, 2018 approved
MongoDB (Install) 3.6.0 17320 Tuesday, December 19, 2017 approved
Show More

Discussion for the MongoDB (Install) Package

Ground rules:

  • This discussion is only about MongoDB (Install) and the MongoDB (Install) package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or MongoDB (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus uses cookies to enhance the user experience of the site.