TOOLS
MongoDB for Visual Studio Code
The essential VS Code extension for MongoDB. Build, query, and manage your data without ever leaving your editor.
Accelerate development from idea to code
Skip the boilerplate and stay focused on your application logic. Instantly convert any playground query into ready-to-use code for popular languages like Node.js, Python, Java, C#, and more. For complex tasks, just describe the command you need in natural language.
Your AI-powered MongoDB assistant
Generate complex aggregations and queries just by describing what you need in plain English. Our GitHub Copilot integration, powered by MongoDB MCP Server, translates your natural language directly into the correct syntax, saving you time on documentation and complex commands.
MongoDB Playgrounds
Generate complex queries with natural language
Deploy Atlas with Terraform
Manage your infrastructure as code (IaC). Our extension provides a ready-to-use snippet from the Atlas Terraform Provider to configure your Atlas resources.
Learning hub
Tutorials, videos, and guides to help you master the VS Code extension.FAQ
The primary benefit is keeping your entire development workflow within a single environment. Instead of switching to a separate database GUI, you can connect to clusters, browse collections, and inspect documents right next to your application code. This integration eliminates context switching, which helps you maintain focus and improves developer productivity.
MongoDB playgrounds are interactive, JavaScript-based environments inside the extension for prototyping and running commands. They provide a rich editor experience with syntax highlighting and intelligent autocomplete for shell commands, operators, and even your own field names. This makes them a safe and powerful way to build and test complex aggregations or CRUD operations.
Yes, the extension can instantly convert queries and aggregation pipelines from your playgrounds into production-ready code. It supports a wide range of popular programming languages, including Node.js, Python, Java, C#, Go, and more, providing the correct boilerplate for each. This feature accelerates development by bridging the gap between prototyping and implementation.
The extension integrates with GitHub Copilot to allow you to generate queries using plain English. You can describe the data you need, and the AI will translate your request into the correct MongoDB query syntax, for anything from simple finds to complex aggregations. This is enabled by MongoDB MCP Server.
Once you connect to a deployment, the extension adds a dedicated tree view to the VS Code sidebar. From this view, you can expand your cluster to see a list of all your databases. Expanding a database reveals its collections, and clicking on a collection opens a new tab in the editor, allowing you to browse all the documents within it.
Get the MongoDB extension for Visual Studio Code
- Manage MongoDB without leaving your IDE
- Rapidly prototype queries & aggregations
- Generate queries from natural language
- Instantly generate application code
- Direct Shell access