BlogFind out what you missed at MongoDB.local London 2024, including MongoDB 8.0! Learn more >>

Tools

MongoDB for VS Code. Build Without Leaving Your IDE.

Build applications and work with your data in MongoDB directly from your VS Code environment.

Download Now
Read documentation
Thumbnail image for the demo video

MongoDB for VS Code Extension Demo Video

See the MongoDB for VS Code Extension in action! Learn how to navigate your data in MongoDB, build queries and aggregations, and export them to popular programming languages, prototype with playgrounds, and more.

MongoDB Participant for GitHub Copilot

Now in public preview, enhance your Copilot experience with the MongoDB Participant that helps generate accurate queries based on collection schemas, convert and test queries to and from programming languages, and quickly get answers from documentation right within the MongoDB for VS Code Extension.
Install MongoDB Participant for GitHub Copilot
Illustration of the robot standing on a smartphone screen.

Navigate your MongoDB data

Connect to a MongoDB cluster, navigate through your databases and collections, get a quick overview of your schema and indexes, and see the documents in your collections.
An example of a MongoDB or Atlas cluster.
An example of a MongoDB playground

MongoDB Playgrounds

The best way to prototype your CRUD operations and MongoDB commands:

  • Edit and run your playgrounds to see the results immediately
  • MongoDB syntax highlighting
  • Intelligent autocomplete for commands, operators and database, collection, and field names
  • Stage snippets to create aggregations quickly

Quick access to the MongoDB Shell

Launch the MongoDB Shell from the command palette to quickly connect to the same cluster you have active in VS Code.

An example of the MongoDB Shell connecting to a cluster in VS Code.
An illustration of automated snippets

Automate Atlas configuration with Terraform

Do you manage your infrastructure with Terraform? With MongoDB for VS Code, you can easily leverage the MongoDB Atlas Terraform Provider via a snippet to set up and configure your Atlas resources.

Export to language

Export your query or aggregation (including driver-specific language) to your programming language of choice. Current languages supported in include Node.js, Python, Java, C#, and Ruby.

An example of exporting a MongoDB query to Java

Resources

Ready to get started?

Download the extension from the Visual Studio Marketplace and get started working with MongoDB from within your VS Code environment.
Download NowDocumentation
Database illustration