A VS Code extension to connect to MongoDB and Atlas, navigate databases, inspect schemas, and prototype queries with playgrounds.
MongoDB for VS Code is an official Visual Studio Code extension that allows developers to connect to MongoDB and MongoDB Atlas directly from their editor. It provides tools to navigate databases and collections, inspect schemas, edit documents, and prototype queries using MongoDB Playgrounds. The extension integrates database workflows into the development environment, reducing context switching.
Developers and data engineers who use MongoDB and work in Visual Studio Code, particularly those building applications with MongoDB databases who need to interact with data and prototype queries during development.
It offers a seamless, integrated experience for MongoDB within VS Code, with features like intelligent autocomplete, query translation to multiple languages, and Copilot integration, making it a powerful tool for productivity and database management.
Connect to MongoDB and Atlas and directly from your VS Code environment, navigate your databases and collections, inspect your schema and use playgrounds to prototype queries and aggregations.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
MongoDB Playgrounds provide a built-in environment with syntax highlighting and intelligent autocomplete for MongoDB Shell API and field names, allowing rapid development and testing of queries without leaving VS Code.
The extension can translate queries and aggregations from playgrounds into languages like Python, Java, and Node.js, streamlining integration into application code based on the README's export feature.
Edit MongoDB documents directly in VS Code editor tabs and save changes back to the database, mimicking standard file editing workflows for straightforward data manipulation.
With Copilot integration, developers can use natural language via the @MongoDB participant to generate queries, leveraging schema to reduce hallucinations and offering code actions to run or open in playgrounds.
Shell integration requires the mongosh binary to be installed and in the system PATH, adding setup complexity and potential compatibility issues, as noted in the README's requirements.
Enabling full autocomplete in playgrounds requires tweaking global VS Code settings like editor.quickSuggestions, which can degrade performance or interfere with other extensions, as admitted in the documentation.
Playground files use JavaScript syntax, which overrides custom MongoDB highlighting, with no easy fix except disabling semantic highlighting—a workaround that affects the entire editor theme.