Free

MongoDB playground

A MongoDB 8.0 server with a database workbench.

1 machine
  • 60-minute sessions
  • Start again any time
  • Wiped when you finish

What you get

  • A running MongoDB 8.0 server
  • mongosh in the terminal
  • A database workbench in VS Code
  • Root access on the machine

Things to try in mongosh

  • mongosh

    Open the shell

  • db.users.insertMany([{ name: 'Sara', age: 30 }, { name: 'Omar', age: 22 }])

    Insert documents

  • db.users.find({ age: { $gt: 25 } })

    Query with a filter

  • db.users.createIndex({ age: 1 })

    Build an index

  • db.users.find({ age: { $gt: 25 } }).explain('executionStats')

    See whether the query used the index

About this playground

The MongoDB playground gives you a machine with a MongoDB 8.0 server running, and VS Code with a database workbench. Insert documents, query with filters, build indexes and check their effect with explain, from mongosh or the workbench. You have root access, and the machine is deleted when the session ends.

Frequently asked questions

Is there a free online MongoDB playground?

Yes. With a free account you open a real MongoDB 8.0 server in your browser, for 60-minute sessions. When one ends you can start another straight away.

Is this MongoDB Atlas?

No. It is a MongoDB server running on a machine of your own with root access, so you control all of it.

Is there anything besides mongosh?

Yes. A database workbench in VS Code for browsing collections and writing queries.

Is my data saved?

No. The machine is deleted when the session ends. Keep your scripts in Git to run them again.