BlogInnovate for the AI Era: Get the latest MongoDB.local NYC 2025 news and updates! Read the blog >
NewModernize 2-3x faster with MongoDB’s AI-powered Application Modernization Platform. Learn more >
NewSearch & Vector Search now in public preview for Community Edition Read the blog >

MongoDB Supported Languages

Get Started Free

C

Even with many other high-level programming languages, C remains a strong choice for legacy and modern applications because of its performance and support for new features.

  • Most major operating systems—like Windows, Mac, and Linux—are powered by C.
  • C is also used for embedded systems, gaming animations, and many more real-world use cases.

Learn how you can connect MongoDB and C applications using the official driver, libmongoc.

C logo image
C++ logo image

C++

Did you know MongoDB is written in C++? C++ is one of the fastest languages compared to other high-level languages like Python. C++, therefore, is widely used for search engines, IoT, and GUI-based applications. MongoDB provides an official driver to write C++ applications using the mongocxx driver.

C#

MongoDB and C# are a natural fit. Many developers love C# as a modern, type-safe, object-oriented programming language that compiles quickly. The MongoDB C# (.NET) official driver makes it easy to interact with data on MongoDB from any C# application, and our Atlas Device SDK for Unity is also popular. C# developers may also be interested in our .NET Analyzer, which makes it easy to understand and troubleshoot queries and aggregations directly inside Visual Studio and other tools, or in the MongoDB Provider for Entity Framework Core (EF Core), which allows developers to build modern applications using familiar EF Core APIs and design patterns.

C# logo image
Go logo image

Go

Go is a language that offers high performance and great memory management features. It’s used in large projects for the cloud, such as Kubernetes, because of its efficient concurrency handling.

Its data-friendly syntax, used with MongoDB’s flexible schema, makes a powerful combination to build high-performance applications.

You can get started with the MongoDB Go driver by following the Golang and MongoDB tutorial from our website.

Java

Java is known as the “write once, run anywhere” language because of its support for multiple platforms. This allows using MongoDB with Java to be a natural fit. Java’s object can map directly to MongoDB documents when using the native driver. In addition to the native driver, we also encourage the exploration of Spring data’s MongoDB integration. You can find out how to get started with this tutorial.

Java logo image
Kotlin logo image

Kotlin

Kotlin is a cross-platform language that interoperates fully with Java and the JVM, and can be used both for Android development and for server-side. Mobile developers can use the Atlas Device SDK for Kotlin, and server-side Kotlin developers can use the Kotlin Driver. To get started with Kotlin, refer to the Developer Center.

Node.js

Node.js renders JavaScript code outside of a browser, which enables software developers to build desktop applications and web servers. Node.js is built on Google Chrome’s V8 JavaScript engine and uses an event-driven, non-blocking I/O model.

It’s often used with MongoDB and other JavaScript front-end languages, such as Angular, to form the MEAN stack, or React, to form the MERN stack.

Using Node.js with MongoDB is a natural choice for JavaScript developers due to the JSON-like syntax that MongoDB uses.

MongoDB can support users utilizing our nodeJS driver (which is actually written in typescript!), Mongoose, the Prisma.io ORM, and others.

Node.js logo image
PHP logo image

PHP

PHP is a server-side scripting language that’s used to build dynamic web pages and websites. Even with the presence of many other feature-rich languages, PHP still holds a strong place because of its gentle learning curve and welcoming community. PHP applications can be securely connected to different databases, including MongoDB.

Combined with MongoDB, PHP applications are highly scalable, robust, and offer high performance.

In addition to the MongoDB PHP driver, many libraries and framework extensions are available to help developers get started even more quickly, including the MongoDB Laravel framework integration, officially developed and maintained by MongoDB.

Python

Python is one of the most popular languages for data-intensive tasks and data science because of the many libraries for statistics, machine learning, and AI-related tasks. Python is also very easy to learn, with human-readable syntax and a large community full of resources for beginners.

MongoDB is a great fit for Python developers, whether you’re building a web application, conducting data analysis, or focused on operations. This is because Python stores data in a dictionary format, which is similar to the JSON-like format in which MongoDB stores data. Python also can parse JSON data using built-in methods in a single step. This makes data retrieval and storage faster and more efficient.

Connect MongoDB to Python applications using the official driver pymongo for basic and advanced CRUD (create, read, update, delete) operations, and use pymongoarrow to export MongoDB data to pandas dataframes, numpy arrays, csv, and parquet files.

Additionally, streamline your development with our Full Stack FastAPI App Generator available on our GitHub repository, offering an app skeleton to significantly reduce project setup time for a production grade web application.

Python logo image
Ruby logo image

Ruby

Ruby has been around since the mid-1990s, but really became popular for web developers in the early 2000s with the release of the Rails framework. The language is mostly known for its elegant syntax, which makes it easy to read in a natural way.

MongoDB has a native Ruby driver that follows that same paradigm, along with an official ORM (ODM) called Mongoid. It provides an efficient way to map Ruby objects to MongoDB entities. Find out how to build a Ruby on Rails application with MongoDB in this tutorial.

Rust

Rust provides memory safety and supports concurrent programming.

Rust is a low-level programming language with high performance, memory safety, and concurrency. Rust is most often used with MongoDB to write game engines and embedded applications.

Rust is strictly typed, whereas MongoDB has a flexible schema, and users can experience both via our serde integration.

Read our introduction to MongoDB and Rust to learn more about how to use the MongoDB Rust driver to build scalable and high performance applications.

Rust logo image
Scala logo image

Scala

Scala is an all-purpose language used for data processing, web development, and distributed computing. It’s used by data engineers and software developers alike. To process huge datasets, data engineers and data scientists often use Scala along with Apache Spark.

By using Scala with a NoSQL or document database like MongoDB, you can build scalable data-intensive applications with ease thanks to  MongoDB’s powerful features, including aggregation pipeline and real-time analytics.

The MongoDB Scala driver provides official support for Scala applications. Using Scala and MongoDB for Spark-based projects, developers can build faster applications and perform advanced real-time analytics and machine learning.

Swift

Swift is a powerful language for both mobile and server-side development. MongoDB allows Swift developers to have the best of both worlds: Use our Atlas Device SDK for Swift for mobile or use our Swift driver with Vapor to develop cross-platform web and mobile applications. An example application can be found here on our Github.

Swift logo image

FAQs

Get started with Atlas today

Get started in seconds. Our free clusters come with 512 MB of storage so you can play around with sample data and get oriented with our platform.
Try FreeContact sales
GET STARTED WITH:
  • 125+ regions worldwide
  • Sample data sets
  • Always-on authentication
  • End-to-end encryption
  • Command line tools