MongoDB EventMongoDB.local SF, Jan 15: See the speaker lineup & ship your AI vision faster. Use WEB50 to save 50% >
AnnouncementLearn why MongoDB was named a Leader in the 2025 Gartner® Magic Quadrant™ Learn more >

TOOLS

MongoDB for Visual Studio Code

The essential VS Code extension for MongoDB. Build, query, and manage your data without ever leaving your editor.

Download NowExplore the docs
An illustration of computer monitor with a code.

Code and data, side-by-side

Browse your databases, collections, and documents, and test your queries and aggregations right next to your application code. By keeping your workflow inside Visual Studio Code, you can maintain focus and dramatically improve productivity.

Learn more
Code and data, side-by-side.
Accelerate development from idea to code.

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.

Learn more

Power and flexibility, combined

Seamlessly switch between an interactive playground for safely building queries with instant, visual feedback and the raw power of MongoDB Shell for advanced commands. You get the right tool for any task, all within a single, unified environment.

Learn more
Power and flexibility, combined
Your AI-powered MongoDB assistant

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.

Learn more

Your MongoDB workflow, right inside VS Code

From running a quick query to prototyping a complex aggregation, see how the extension streamlines common tasks without switching windows.

MongoDB Playgrounds

MongoDB Playgrounds are JavaScript environments where you can prototype queries, aggregations, and MongoDB commands with helpful syntax highlighting.

Learn more
JavaScript
JSON response

Generate complex queries with natural language

Describe the query you need in plain English and let our GitHub Copilot integration generate the code for you.

Learn more
Natural Language
Generated JavaScript

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.

Learn more
Terraform

VS Code use cases

View all use cases

Learning hub

Tutorials, videos, and guides to help you master the VS Code extension.

FAQ

Get the MongoDB extension for Visual Studio Code

Install the extension and start working with your data in minutes.
Get It For FreeRegister now
GET STARTED TODAY
  • Manage MongoDB without leaving your IDE
  • Rapidly prototype queries & aggregations
  • Generate queries from natural language
  • Instantly generate application code
  • Direct Shell access