Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>DocumentDBNew to Visual Studio Code? Get it now.
DocumentDB

DocumentDB

Microsoft

microsoft.com
|
30,971 installs
| (8) | Free
DocumentDB GUI and MongoDB GUI for Azure DocumentDB, DocumentDB and MongoDB (including Atlas): connect, query and manage your data, in the cloud or locally.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DocumentDB extension for Visual Studio Code

The 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:

Azure DocumentDB DocumentDB MongoDB
Azure DocumentDB and Azure Cosmos DB for MongoDB (RU), with Microsoft Entra ID sign-in The open-source DocumentDB engine: on your laptop, on a VM or in Kubernetes MongoDB Atlas, self-hosted MongoDB, and any other database that speaks the MongoDB API

DocumentDB extension for Visual Studio Code: the Collection View with a query, autocompletion and results in a table

Connect in Seconds, Wherever Your Data Lives

  • No database yet? Select Set up DocumentDB Local and the extension starts DocumentDB in Docker or Podman for you, with a persistent volume, generated credentials and optional sample data. Choose your container engine in Configure; no docker run or podman run command to assemble. Learn more
  • On Azure? Browse your Azure DocumentDB clusters and Azure Cosmos DB for MongoDB (RU) accounts across accounts, tenants and subscriptions, and sign in with Microsoft Entra ID or a managed identity. They also show up in the Azure Resources view. Learn more
  • On MongoDB Atlas? Sign in with an Atlas service account or API key and pick a cluster from your organizations and projects instead of copying endpoints. Learn more
  • In Kubernetes? DocumentDB clusters on AKS, EKS, GKE, kind, minikube or Docker Desktop are found from your kubeconfig, and port forwarding is handled for you. Learn more
  • Anything else? Paste a connection string. Keep all your connections organized in folders.

See What You Have

The 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.

Cluster Dashboard with connection status, storage and document metrics, and a filterable database inventory

Query Your Data, Your Way

Three 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.

  • Collection View (shown at the top): build a query with filter, project and sort editors, and browse results as a Table, a Tree or JSON. Create, edit and delete documents in place.
  • Interactive Shell: show dbs, use <db>, persistent variables, syntax highlighting and tab completion with ghost text, right in a VS Code terminal.
  • Query Playground: write JavaScript in .documentdb.js files and run each block with its own Run button. Keep the queries you want to reuse next to your code.

Interactive Shell with syntax highlighting and tab completion

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 It

Whether 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.

Query Insights streaming an AI summary and index recommendations

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.

AI recommendations require the GitHub Copilot extension. The extension sends the query shape and execution statistics, not your documents.

Bring Your Data With You

Copy 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 in three steps: copy the source collection, paste it into the target, and choose how to handle conflicts

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 Extensible

Everything 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.

Prerequisites

No 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.

Telemetry

VS 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 telemetry.telemetryLevel setting to off. Learn more in our FAQ.

Feedback Collection

The extension proactively asks for user feedback and provides feedback entry points in the UI. Feedback collection follows VS Code's telemetry.feedback.enabled setting, which organizations can also enforce through the EnableFeedback policy.

To disable feedback, set telemetry.feedback.enabled to false. This hides the survey invitation, the in-product feedback buttons, and the DocumentDB: Give Feedback command. Telemetry about the survey is additionally subject to telemetry.telemetryLevel.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft