Now in Public Preview: The MongoDB for IntelliJ Plugin

Rutuja Rajwade

The MongoDB for IntelliJ plugin empowers Java developers to build and ship applications quickly and confidently by enhancing the Database Explorer experience in the IntelliJ IDEA. After first announcing the plugin in private preview at .local London in the fall of 2024, we’ve partnered with our friends at JetBrains to release a new and improved experience in public preview. Using the MongoDB for IntelliJ plugin, developers can analyze their application code alongside their database, accelerating query development, validating accuracy, and highlighting anti-patterns with proactive performance insights.

What’s in the MongoDB for IntelliJ plugin?

As part of the public preview, we’re committed to ensuring that the MongoDB for IntelliJ plugin not only meets developers' technical requirements but also paves the way for a seamless developer experience with MongoDB Atlas. The MongoDB for IntelliJ plugin Public Preview offers developers the following capabilities:

  • Field-level autocompletion for Java queries - Auto-suggests field names from MongoDB collections as developers write queries.

  • Schema and type validation - Surfaces inline warnings when query values don’t match the expected field type based on the collection schema, and validates that a field exists in your collection’s schema.

  • Java query execution in IntelliJ console - Allows developers to test Java queries with a single click without needing to switch tools or translate syntax.

  • Proactive anti-pattern detection - Identifies potential performance issues (such as a query missing an index) and provides inline warnings and documentation links.

  • Spring and Java driver support - Supports query syntax across popular Java patterns, criteria API, and aggregation patterns.

  • Code smarter with your AI - Plugin-generated linting insights help your in-IDE AI assistant detect and resolve code issues.

Figure 1. Code smarter with your AI.
Screenshot of the AI assistant detecting and resolving code.

Benefits of using the official MongoDB for IntelliJ plugin

Java development often involves working with complex, evolving data models, making MongoDB’s flexible document model an ideal choice for Java applications' data layer. The plugin provides developers with a unified experience for building with MongoDB directly inside IntelliJ, enabling faster and more focused development.

By eliminating the need to switch between IntelliJ and external tools, the plugin streamlines query development and testing workflows. Features like field-level autocomplete and inline schema validation reduces errors before runtime, allowing developers to build and validate MongoDB queries with confidence and speed. Whether writing queries with the MongoDB Java driver, Spring Data, or aggregation pipelines, the plugin provides context-aware suggestions and real-time feedback that accelerate development.

Additionally, the plugin proactively flags common MongoDB query anti-patterns—such as missing indexes or inefficient operators—within your line of code, helping teams catch performance issues before they hit production. With the ability to test queries directly in the IntelliJ MongoDB console and view execution metadata like query plans and durations, the plugin brings performance awareness and code correctness to where developers actually write the code for their applications.

How to get started with the MongoDB for IntelliJ plugin

You can get started using the MongoDB for IntelliJ plugin through the JetBrains marketplace.

Questions? Feedback? Please post on our community forums or through UserVoice. We value your input as we continue to develop a compelling offering for the Java community.