Need help with compass?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

442 Stars 61 Forks Other 13.4K Commits 40 Opened issues


The GUI for MongoDB.

Services available


Need anything else?

Contributors list

MongoDB Compass

The MongoDB GUI.

Aggregation Pipeline Builder Tab in Compass


Running Compass locally requires Node.js and npm:

  • Node.js
    : ^12.4.0
  • npm
    : >=6.13.0
npm install
npm start [compass|compass-readonly|compass-isolated]


Current Plugin API Version: 3.0.0

Majority of Compass' functionality lives in various plugins outside the main repo. This repo just brings them all together. All external plugins are tagged via the compass-plugin topic in the mongodb-js organisation. There are also various compass-tools and compass-ui-tools packages that help put together the application.

Plugins can be added to Compass by requiring them as a dependency in package.json, and by adding their installed location to the distribution plugin list also in the package.json. Plugin's

field has to match Compass'. Currently it's at

Example of adding a dependency:

npm i -S @mongodb-js/[email protected]

And in package.json:

"distributions": {
  "plugin-prefix": "@mongodb-js/compass",
  "default": "compass",
  "compass": {
    "name": "mongodb-compass",
    "plugins": [
      "node_modules/@mongodb-js/compass-aggregations", // add compass-aggregations
      // rest of the plugins required for this distribution
    "styles": [
  // other distribution config

Plugin Roles

Compass determines functionality of a plugin based on its registered Role. There are a few mains ones that we use:

  • Instance.Tab
    - Display as tabs in the instance context of the app. For example, server-status-plugin.
  • Database.Tab
    - Display as tabs in the database context of the app. compass-collections-ddl is registered as a
    , for example.
  • Collection.Tab
    - Display as sub tabs in the collection context of the app. A good example of this is the compass-crud.
  • Global.Modal
    - Will open as modal dialogs in any context of the app. These can be separate plugins entirely, or part of an existing plguin that does something else. For example, compass-aggregations is an
    , but also registers a
  • Collection.ScopedModal
    - Will open as a modal scoped in the collection context. compass-import-export, for example, registers 2
    s - one for import and the other for export.

Creating a New Plugin

We use a template to create new plugins. It comes set up with packages we might need to be using, and an electron environment to debug and test the plugin. The template is managed by khaos

npm i -g khaos
khaos create mongodb-js/compass-plugin ./my-plugin


For issues, please create a ticket in our JIRA Project.

For contributing, please refer to

Is there anything else you’d like to see in Compass? Let us know by submitting suggestions in out feedback forum.



We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.