DocumentDB extension for Visual Studio CodeThe free, open-source DocumentDB GUI and MongoDB GUI for VS Code. Connect to your databases, explore your data, run and tune queries, and move collections around, all without leaving your editor. One extension for all three:
Connect in Seconds, Wherever Your Data Lives
See What You HaveThe first question on any cluster is "what's in here?" The Cluster Dashboard answers it on one page: whether you're connected, the round-trip time, and an inventory of every database and collection with its storage size, index size and document count. Sort and filter the list, drill into a database, or create and delete databases and collections right there.
Query Your Data, Your WayThree connected ways to work with the same query, and one click moves it between them. All three know your data's schema, so field names, operators and values are suggested as you type.
Nothing to install: the shell and query runtime are bundled with the extension, reuse your connection (including Entra ID sign-in), and work the same on Windows, macOS and Linux. Find Out Why a Query Is Slow, and Fix ItWhether you wrote a query yourself or an AI agent suggested it, you want to know how it runs. Query Insights explains it in three steps: the query plan, then execution statistics with a simple Good, Fair or Poor rating, and then optional AI recommendations from GitHub Copilot that explain what's happening and suggest changes you can apply directly.
Index management sits right next to it, so understanding a query and fixing it happen in the same place. See which indexes are used and which are not, create standard, wildcard and vector indexes with a guided form, and hide an index to check the impact before you delete it.
Bring Your Data With YouCopy a collection the way you copy files: right-click it and select Copy Collection…, then right-click a database on the same cluster or any other and select Paste Collection…. A collection from MongoDB Atlas, Azure or a shared development cluster can land in your DocumentDB Local instance in a few clicks. If the target already has documents, you decide what happens with duplicates, and the indexes can come along too.
Copy and paste is built for development and small to medium datasets. For large production migrations, use a dedicated migration service. You can also import JSON files and export documents, query results or entire collections. Open Source and ExtensibleEverything happens in the open on GitHub: the roadmap, the discussions and every change. Your bug reports, ideas and pull requests shape the extension. Other extensions can plug in as Service Discovery providers for more clouds, or as data migration providers. PrerequisitesNo external tools or runtimes are required to connect to an existing database. Setting up DocumentDB Local requires Docker (Docker Engine or Docker Desktop) or Podman, with a CLI available to the VS Code extension host and an engine running Linux containers. See the setup requirements. TelemetryVS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you don't wish to send usage data to Microsoft, you can set the Feedback CollectionThe extension proactively asks for user feedback and provides feedback entry points in the UI. Feedback collection follows VS Code's To disable feedback, set License |




